Skip to content

Instantly share code, notes, and snippets.

@jessebarocio

jessebarocio/uai-deploy.json Secret

Created Oct 2, 2020
Embed
What would you like to do?
An ARM template for deploying a User assigned managed identity
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"identityName": {
"type": "string",
"defaultValue": "[concat('uai-', uniqueString(resourceGroup().id))]",
"metadata": {
"description": "The name of the identity resource"
}
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.ManagedIdentity/userAssignedIdentities",
"name": "[parameters('identityName')]",
"apiVersion": "2018-11-30",
"location": "[resourceGroup().location]"
}
],
"outputs": {
"identityClientId": {
"type": "string",
"value": "[reference(resourceID('Microsoft.ManagedIdentity/userAssignedIdentities/',parameters('identityName')), '2018-11-30').clientId]"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment