зеркало из
1
0
Форкнуть 0
azure-sdk-for-python/sdk/attestation/test-resources.json

82 строки
2.4 KiB
JSON

{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"baseName": {
"type": "string",
"defaultValue": "[resourceGroup().name]",
"metadata": {
"description": "The base resource name."
}
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "The location of the resource. By default, this is the same as the resource group."
}
},
"storageEndpointSuffix": {
"type": "string",
"defaultValue": "core.windows.net",
"metadata": {
"description": "The url suffix to use when accessing the storage data plane."
}
},
"isolatedSigningCertificate": {
"type": "string",
"defaultValue": ""
},
"locationShortName": {
"type": "string",
"defaultValue": ""
}
},
"variables": {
"isolatedTenantName": "[concat('py', concat(parameters('baseName'), 'iso'))]",
"aadTenantName": "[concat('py', concat(parameters('baseName'), 'aad'))]",
"isolatedUri": "[format('https://{0}.{1}.attest.azure.net', variables('isolatedTenantName'), parameters('locationShortName'))]",
"aadUri": "[format('https://{0}.{1}.attest.azure.net', variables('aadTenantName'), parameters('locationShortName'))]",
"PolicySigningCertificates": {
"PolicySigningCertificates": {
"keys": [
{
"kty": "RSA",
"use": "sig",
"x5c": [ "[parameters('isolatedSigningCertificate')]" ]
}
]
}
}
},
"resources": [
{
"type": "Microsoft.Attestation/attestationProviders",
"apiVersion": "2020-10-01",
"name": "[variables('aadTenantName')]",
"location": "[parameters('location')]"
},
{
"type": "Microsoft.Attestation/attestationProviders",
"apiVersion": "2020-10-01",
"name": "[variables('isolatedTenantName')]",
"location": "[parameters('location')]",
"properties": "[variables('PolicySigningCertificates')]"
}
],
"outputs": {
"ATTESTATION_STORAGE_ENDPOINT_SUFFIX": {
"type": "string",
"value": "[parameters('storageEndpointSuffix')]"
},
"ATTESTATION_ISOLATED_URL": {
"type": "string",
"value": "[variables('isolatedUri')]"
},
"ATTESTATION_AAD_URL": {
"type": "string",
"value": "[variables('aadUri')]"
}
}
}