Last active
June 25, 2019 16:31
-
-
Save Tapanila/408c89d23be51c15fb835433a267da4e to your computer and use it in GitHub Desktop.
ARM Gist Testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"keyvaultName": { | |
"type": "string" | |
}, | |
"location": { | |
"type": "string" | |
}, | |
"tenantId": { | |
"type": "string" | |
}, | |
"appServiceName": { | |
"type": "string" | |
} | |
}, | |
"resources": [ | |
{ | |
"name": "[parameters('keyVaultName')]", | |
"type": "Microsoft.KeyVault/vaults", | |
"apiVersion": "2018-02-14", | |
"location": "[parameters('location')]", | |
"properties": { | |
"enabledForTemplateDeployment": true, | |
"tenantId": "[parameters('tenantId')]", | |
"sku": { | |
"family": "A", | |
"name": "standard" | |
}, | |
"accessPolicies": [ | |
{ | |
"objectId": "[reference(ResourceId('Microsoft.Web/sites', parameters('appServiceName')), '2018-02-01', 'Full').identity.principalId]", | |
"tenantId": "[parameters('tenantId')]", | |
"permissions": { | |
"secrets": "GET" | |
} | |
} | |
] | |
} | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"appService": { | |
"type": "object" | |
}, | |
"location": { | |
"type": "string" | |
} | |
}, | |
"resources": [ | |
{ | |
"type": "Microsoft.Web/serverfarms", | |
"apiVersion": "2017-08-01", | |
"kind": "linux", | |
"name": "[parameters('appService').planName]", | |
"location": "[parameters('location')]", | |
"dependsOn": [], | |
"sku": { | |
"name": "[parameters('appService').sku]" | |
}, | |
"properties": { | |
"reserved": true | |
} | |
}, | |
{ | |
"type": "Microsoft.Web/sites", | |
"apiVersion": "2016-08-01", | |
"kind": "app", | |
"name": "[parameters('appService').name]", | |
"location": "[parameters('location')]", | |
"identity": { | |
"type": "SystemAssigned" | |
}, | |
"properties": { | |
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('appService').planName)]", | |
"siteConfig": | |
{ | |
"linuxFxVersion": "[concat('DOCKER|', parameters('appService').dockerImageName)]" | |
} | |
}, | |
"dependsOn": [ | |
"[resourceId('Microsoft.Web/serverfarms', parameters('appService').planName)]" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment