-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathManagedIdentity.json
30 lines (30 loc) · 1.02 KB
/
ManagedIdentity.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"identityName": {
"defaultValue": "[concat('id-', uniqueString(resourceGroup().id))]",
"type": "String",
"metadata": {
"description": "Name of the user assigned identity"
}
},
"resourceTag":{"type":"string"}
},
"variables": {},
"resources": [
{
"type": "Microsoft.ManagedIdentity/userAssignedIdentities",
"apiVersion": "2018-11-30",
"name": "[parameters('identityName')]",
"tags":{"Quality":"[parameters('resourceTag')]"},
"location": "[resourceGroup().location]"
}
],
"outputs": {
"ObjectId": {
"type": "string",
"value": "[reference(concat('Microsoft.ManagedIdentity/userAssignedIdentities/', parameters('identityName')), '2018-11-30', 'Full').identity.principalId]"
}
}
}