|
1 | 1 | {
|
2 | 2 | "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
|
3 | 3 | "contentVersion": "1.0.0.0",
|
| 4 | + "variables": { |
| 5 | + "sourceCodeBranch" : "master", // the branch to checkout the code from ('develop' for testing purpose) |
| 6 | + "templateBaseUri": "[concat('https://raw.githubusercontent.com/logicmonitor/lm-logs-azure/',variables('sourceCodeBranch'),'/arm-template-deployment/')]", |
| 7 | + "deploymentResourceGroupName": "[concat('lm-logs','-',parameters('LM_Company_name'), '-', replace(parameters('resource_group_region'),' ',''),'-group')]", |
| 8 | + "eventhubNamespace": "[concat('lm-logs','-',parameters('LM_Company_name'), '-', replace(parameters('resource_group_region'),' ',''))]", |
| 9 | + "eventhubLogsName": "log-hub", |
| 10 | + "subscriptionId": "[subscription().subscriptionId]", |
| 11 | + "eventHubAuthorizationRuleId": "[concat('/subscriptions/', variables('subscriptionId'), '/resourceGroups/', variables('deploymentResourceGroupName'), '/providers/Microsoft.EventHub/namespaces/', variables('eventhubNamespace'), '/authorizationRules/RootManageSharedAccessKey')]" |
| 12 | + }, |
4 | 13 | "parameters": {
|
5 | 14 | "resource_group_region": {
|
6 | 15 | "type": "String"
|
|
30 | 39 | "description": "Enable Activity logs to be sent to the event hub that will get created in this deployment"
|
31 | 40 | },
|
32 | 41 | "defaultValue": "Yes"
|
33 |
| - }, |
34 |
| - "sourceCodeBranch": { |
35 |
| - "type": "String", |
36 |
| - "allowedValues": [ |
37 |
| - "master", |
38 |
| - "develop" |
39 |
| - ], |
40 |
| - "metadata": { |
41 |
| - "description": "Github branch from which the code is to be deployed" |
42 |
| - }, |
43 |
| - "defaultValue": "master" |
44 | 42 | }
|
45 | 43 | },
|
46 |
| - "variables": { |
47 |
| - "templateBaseUri": "[concat('https://raw.githubusercontent.com/logicmonitor/lm-logs-azure/',parameters('sourceCodeBranch'),'/arm-template-deployment/')]", |
48 |
| - "deploymentResourceGroupName": "[concat('lm-logs','-',parameters('LM_Company_name'), '-', replace(parameters('resource_group_region'),' ',''),'-group')]", |
49 |
| - "eventhubNamespace": "[concat('lm-logs','-',parameters('LM_Company_name'), '-', replace(parameters('resource_group_region'),' ',''))]", |
50 |
| - "eventhubLogsName": "log-hub", |
51 |
| - "subscriptionId": "[subscription().subscriptionId]", |
52 |
| - "eventHubAuthorizationRuleId": "[concat('/subscriptions/', variables('subscriptionId'), '/resourceGroups/', variables('deploymentResourceGroupName'), '/providers/Microsoft.EventHub/namespaces/', variables('eventhubNamespace'), '/authorizationRules/RootManageSharedAccessKey')]" |
53 |
| - }, |
54 | 44 | "resources": [
|
55 | 45 | {
|
56 | 46 | "type": "Microsoft.Resources/resourceGroups",
|
|
88 | 78 | "value": "[parameters('Azure_Client_Id')]"
|
89 | 79 | },
|
90 | 80 | "sourceCodeBranch": {
|
91 |
| - "value": "[parameters('sourceCodeBranch')]" |
| 81 | + "value": "[variables('sourceCodeBranch')]" |
92 | 82 | }
|
93 | 83 | }
|
94 | 84 | },
|
|
0 commit comments