|
72 | 72 | "description": "Key Vault SKU to deploy. The default is 'premium'" |
73 | 73 | } |
74 | 74 | }, |
75 | | - "attestationUrl": { |
| 75 | + "attestationImage": { |
76 | 76 | "type": "string", |
77 | | - "defaultValue": "https://skrattestation.azurewebsites.net/", |
| 77 | + "defaultValue": "keyvault-mock-attestation:latest", |
78 | 78 | "metadata": { |
79 | | - "description": "Test attestation service for Secure Key Release" |
| 79 | + "description": "The container image name and tag to use for the attestation mock service." |
80 | 80 | } |
81 | 81 | } |
82 | 82 | }, |
83 | 83 | "variables": { |
| 84 | + "attestationFarm": "[concat(parameters('baseName'), 'farm')]", |
| 85 | + "attestationSite": "[concat(parameters('baseName'), 'site')]", |
| 86 | + "attestationUri": "[concat('DOCKER|azsdkengsys.azurecr.io/', parameters('attestationImage'))]", |
84 | 87 | "kvApiVersion": "2019-09-01", |
85 | 88 | "kvName": "[parameters('baseName')]", |
86 | 89 | "hsmApiVersion": "2021-04-01-preview", |
|
246 | 249 | "properties": { |
247 | 250 | "publicAccess": "None" |
248 | 251 | } |
| 252 | + }, |
| 253 | + { |
| 254 | + |
| 255 | + "type": "Microsoft.Web/serverfarms", |
| 256 | + "apiVersion": "2020-12-01", |
| 257 | + "name": "[variables('attestationFarm')]", |
| 258 | + "condition": "[parameters('enableHsm')]", |
| 259 | + "location": "[parameters('location')]", |
| 260 | + "kind": "linux", |
| 261 | + "sku": { |
| 262 | + "name": "B1" |
| 263 | + }, |
| 264 | + "properties": { |
| 265 | + "reserved": true |
| 266 | + } |
| 267 | + }, |
| 268 | + { |
| 269 | + |
| 270 | + "type": "Microsoft.Web/sites", |
| 271 | + "apiVersion": "2020-12-01", |
| 272 | + "name": "[variables('attestationSite')]", |
| 273 | + "condition": "[parameters('enableHsm')]", |
| 274 | + "dependsOn": [ |
| 275 | + "[resourceId('Microsoft.Web/serverfarms', variables('attestationFarm'))]" |
| 276 | + ], |
| 277 | + "location": "[parameters('location')]", |
| 278 | + "properties": { |
| 279 | + "httpsOnly": true, |
| 280 | + "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('attestationFarm'))]", |
| 281 | + "siteConfig": { |
| 282 | + "name": "[variables('attestationSite')]", |
| 283 | + "alwaysOn": true, |
| 284 | + "linuxFxVersion": "[variables('attestationUri')]", |
| 285 | + "appSettings": [ |
| 286 | + { |
| 287 | + "name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE", |
| 288 | + "value": "false" |
| 289 | + } |
| 290 | + ] |
| 291 | + } |
| 292 | + } |
249 | 293 | } |
250 | 294 | ], |
251 | 295 | "outputs": { |
|
280 | 324 | }, |
281 | 325 | "AZURE_KEYVAULT_ATTESTATION_URL": { |
282 | 326 | "type": "string", |
283 | | - "value": "[parameters('attestationUrl')]" |
| 327 | + "value": "[format('https://{0}/', reference(variables('attestationSite')).defaultHostName)]" |
284 | 328 | } |
285 | 329 | } |
286 | 330 | } |
0 commit comments