-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdeploymentChildScript.json
60 lines (60 loc) · 2.18 KB
/
deploymentChildScript.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
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"LM_Company_name": {
"type": "String"
},
"resourceGroup": {
"type": "String"
},
"subscriptionId": {
"type": "String"
},
"managedIdentity": {
"type": "String",
"metadata": "Please provide the id of a User Defined Managed Identity with User Access Administrator role"
},
"location": {
"type": "String"
},
"utcNow": {
"type": "String"
},
"sourceCodeBranch": {
"type": "string"
},
"deploymentLocation": {
"type": "string"
}
},
"resources": [
{
"type": "Microsoft.Resources/deploymentScripts",
"apiVersion": "2020-10-01",
"name": "[concat(parameters('resourceGroup'),'-script')]",
"location": "[parameters('deploymentLocation')]",
"kind": "AzurePowerShell",
"identity": {
"type": "userAssigned",
"userAssignedIdentities": {
"[parameters('managedIdentity')]": {
}
}
},
"properties": {
"forceUpdateTag": "[parameters('utcNow')]",
"azPowerShellVersion": "5.6",
"timeout": "PT1H",
"arguments": "[format(' -resourceGroup {0} -lmCompanyName {1} -subscriptionId {2} -location {3} -sourceCodeBranch {4}', parameters('resourceGroup'),parameters('LM_Company_name'), parameters('subscriptionId'), parameters('location'), parameters('sourceCodeBranch'))]",
"primaryScriptURI": "[concat('https://raw.githubusercontent.com/logicmonitor/lm-logs-azure/',parameters('sourceCodeBranch'),'/diagnostic-settings-scripts/policyCreationAndRemediationTemplate.ps1')]",
"supportingScriptUris": [
"[concat('https://raw.githubusercontent.com/logicmonitor/lm-logs-azure/',parameters('sourceCodeBranch'),'/diagnostic-settings-scripts/policyAssignment.ps1')]",
"[concat('https://raw.githubusercontent.com/logicmonitor/lm-logs-azure/',parameters('sourceCodeBranch'),'/diagnostic-settings-scripts/policyInitiativeRemediation.ps1')]"
],
"cleanupPreference": "Always",
"retentionInterval": "P1D"
}
}
]
}