2020-12-11 04:02:57 +03:00
|
|
|
{
|
|
|
|
"$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."
|
|
|
|
}
|
|
|
|
},
|
2021-11-15 21:21:11 +03:00
|
|
|
"storageEndpointSuffix": {
|
|
|
|
"type": "string",
|
|
|
|
"defaultValue": "core.windows.net",
|
|
|
|
"metadata": {
|
|
|
|
"description": "The url suffix to use when accessing the storage data plane."
|
|
|
|
}
|
|
|
|
},
|
2020-12-11 04:02:57 +03:00
|
|
|
"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')]",
|
2021-11-15 21:21:11 +03:00
|
|
|
"location": "[parameters('location')]"
|
2020-12-11 04:02:57 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "Microsoft.Attestation/attestationProviders",
|
|
|
|
"apiVersion": "2020-10-01",
|
|
|
|
"name": "[variables('isolatedTenantName')]",
|
|
|
|
"location": "[parameters('location')]",
|
|
|
|
"properties": "[variables('PolicySigningCertificates')]"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"outputs": {
|
2021-11-15 21:21:11 +03:00
|
|
|
"ATTESTATION_STORAGE_ENDPOINT_SUFFIX": {
|
|
|
|
"type": "string",
|
|
|
|
"value": "[parameters('storageEndpointSuffix')]"
|
|
|
|
},
|
2020-12-11 04:02:57 +03:00
|
|
|
"ATTESTATION_ISOLATED_URL": {
|
|
|
|
"type": "string",
|
|
|
|
"value": "[variables('isolatedUri')]"
|
|
|
|
},
|
|
|
|
"ATTESTATION_AAD_URL": {
|
|
|
|
"type": "string",
|
|
|
|
"value": "[variables('aadUri')]"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|