-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploymentScriptDeployment.json
70 lines (70 loc) · 2.11 KB
/
deploymentScriptDeployment.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"subscriptionId": {
"type": "String"
},
"resourceGroups": {
"type": "String"
},
"LM_Company_name": {
"type": "String"
},
"managedIdentity": {
"type": "String",
"metadata": "Please provide the id of a User Defined Managed Identity with User Access Administrator role"
},
"forceUpdateTag": {
"defaultValue": "[utcNow()]",
"type": "string",
"metadata": "Please do not edit this setting"
}
},
"variables": {
"templateBaseUri": "https://raw.githubusercontent.com/choudharypooja/Azure-Deployment/main/",
"deploymentResourceGroupName": "[concat('lm-deployscript-',parameters('LM_Company_name'))]"
},
"resources": [
{
"type": "Microsoft.Resources/resourceGroups",
"apiVersion": "2018-05-01",
"name": "[variables('deploymentResourceGroupName')]",
"location": "West US",
"properties": {}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2017-05-10",
"name": "linkedTemplatedeployment",
"dependsOn": [
"[resourceId('Microsoft.Resources/resourceGroups/', variables('deploymentResourceGroupName'))]"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('templateBaseUri'), 'policyCreation.json')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"resourceGroups": {
"value": "[parameters('resourceGroups')]"
},
"LM_Company_name": {
"value": "[parameters('LM_Company_name')]"
},
"subscriptionId": {
"value": "[parameters('subscriptionId')]"
},
"managedIdentity": {
"value": "[parameters('managedIdentity')]"
},
"utcNow": {
"value": "[parameters('forceUpdateTag')]"
}
}
},
"resourceGroup": "[variables('deploymentResourceGroupName')]"
}
]
}