-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from vpidatala94/user/vpidatala/19574990
user/vpidatala/19574990 - adding VMI DCR templates
- Loading branch information
Showing
5 changed files
with
228 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
15 changes: 15 additions & 0 deletions
15
OnbordingTemplates/DeployDcr/PerfAndMapDcr/DeployDcrParameters.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"WorkspaceResourceId": { | ||
"value": "/subscriptions/<SubscriptionId>/resourceGroups/<ResourceGroup>/providers/Microsoft.OperationalInsights/workspaces/<WorkspaceName>" | ||
}, | ||
"WorkspaceLocation": { | ||
"value": "<WorkspaceLocation>" | ||
}, | ||
"userGivenDcrName": { | ||
"value": "<DcrResourceId>" | ||
} | ||
} | ||
} |
108 changes: 108 additions & 0 deletions
108
OnbordingTemplates/DeployDcr/PerfAndMapDcr/DeployDcrTemplate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
{ | ||
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"WorkspaceResourceId": { | ||
"type": "String", | ||
"metadata": { | ||
"description": "Workspace Resource ID." | ||
} | ||
}, | ||
"WorkspaceLocation": { | ||
"type": "String", | ||
"metadata": { | ||
"description": "Workspace Location." | ||
} | ||
}, | ||
"userGivenDcrName": { | ||
"type": "String", | ||
"metadata": { | ||
"displayName": "Name of the Data Collection Rule(DCR)", | ||
"description": "This is the name of the AMA-VMI Data Collection Rule(DCR)" | ||
}, | ||
"defaultValue": "ama-vmi-default-perfAndda-dcr" | ||
} | ||
}, | ||
"variables": {}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Resources/deployments", | ||
"apiVersion": "2021-04-01", | ||
"name": "[concat('VMI-DCR-Deployment-',uniqueString(parameters('userGivenDcrName')))]", | ||
"properties": { | ||
"mode": "Incremental", | ||
"template": { | ||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": {}, | ||
"variables": {}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Insights/dataCollectionRules", | ||
"apiVersion": "2021-04-01", | ||
"name": "[concat('MSVMI-', 'PerfandDa-', parameters('userGivenDcrName'))]", | ||
"location": "[parameters('WorkspaceLocation')]", | ||
"properties": { | ||
"description": "Data collection rule for VM Insights.", | ||
"dataSources": { | ||
"performanceCounters": [ | ||
{ | ||
"name": "VMInsightsPerfCounters", | ||
"streams": [ | ||
"Microsoft-InsightsMetrics" | ||
], | ||
"scheduledTransferPeriod": "PT1M", | ||
"samplingFrequencyInSeconds": 60, | ||
"counterSpecifiers": [ | ||
"\\VmInsights\\DetailedMetrics" | ||
] | ||
} | ||
], | ||
"extensions": [ | ||
{ | ||
"streams": [ | ||
"Microsoft-ServiceMap" | ||
], | ||
"extensionName": "DependencyAgent", | ||
"extensionSettings": {}, | ||
"name": "DependencyAgentDataSource" | ||
} | ||
] | ||
}, | ||
"destinations": { | ||
"logAnalytics": [ | ||
{ | ||
"workspaceResourceId": "[parameters('WorkspaceResourceId')]", | ||
"name": "VMInsightsPerf-Logs-Dest" | ||
} | ||
] | ||
}, | ||
"dataFlows": [ | ||
{ | ||
"streams": [ | ||
"Microsoft-InsightsMetrics" | ||
], | ||
"destinations": [ | ||
"VMInsightsPerf-Logs-Dest" | ||
] | ||
}, | ||
{ | ||
"streams": [ | ||
"Microsoft-ServiceMap" | ||
], | ||
"destinations": [ | ||
"VMInsightsPerf-Logs-Dest" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"subscriptionId": "[split(parameters('WorkspaceResourceId'),'/')[2]]", | ||
"resourceGroup": "[split(parameters('WorkspaceResourceId'),'/')[4]]" | ||
} | ||
], | ||
"outputs": {} | ||
} |
15 changes: 15 additions & 0 deletions
15
OnbordingTemplates/DeployDcr/PerfOnlyDcr/DeployDcrParameters.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"WorkspaceResourceId": { | ||
"value": "/subscriptions/<SubscriptionId>/resourceGroups/<ResourceGroup>/providers/Microsoft.OperationalInsights/workspaces/<WorkspaceName>" | ||
}, | ||
"WorkspaceLocation": { | ||
"value": "<WorkspaceLocation>" | ||
}, | ||
"userGivenDcrName": { | ||
"value": "<DcrResourceId>" | ||
} | ||
} | ||
} |
90 changes: 90 additions & 0 deletions
90
OnbordingTemplates/DeployDcr/PerfOnlyDcr/DeployDcrTemplate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"WorkspaceResourceId": { | ||
"type": "String", | ||
"metadata": { | ||
"description": "Workspace Resource ID." | ||
} | ||
}, | ||
"WorkspaceLocation": { | ||
"type": "String", | ||
"metadata": { | ||
"description": "Workspace Location." | ||
} | ||
}, | ||
"userGivenDcrName": { | ||
"type": "String", | ||
"metadata": { | ||
"displayName": "Name of the Data Collection Rule(DCR)", | ||
"description": "This is the name of the AMA-VMI Perf only Data Collection Rule(DCR)" | ||
}, | ||
"defaultValue": "ama-vmi-default-perf-dcr" | ||
} | ||
}, | ||
"variables": {}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Resources/deployments", | ||
"apiVersion": "2021-04-01", | ||
"name": "[concat('VMI-DCR-Deployment-',uniqueString(parameters('userGivenDcrName')))]", | ||
"properties": { | ||
"mode": "Incremental", | ||
"template": { | ||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": {}, | ||
"variables": {}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Insights/dataCollectionRules", | ||
"apiVersion": "2021-04-01", | ||
"name": "[concat('MSVMI-', 'Perf-',parameters('userGivenDcrName'))]", | ||
"location": "[parameters('WorkspaceLocation')]", | ||
"properties": { | ||
"description": "Data collection rule for VM Insights.", | ||
"dataSources": { | ||
"performanceCounters": [ | ||
{ | ||
"name": "VMInsightsPerfCounters", | ||
"streams": [ | ||
"Microsoft-InsightsMetrics" | ||
], | ||
"scheduledTransferPeriod": "PT1M", | ||
"samplingFrequencyInSeconds": 60, | ||
"counterSpecifiers": [ | ||
"\\VmInsights\\DetailedMetrics" | ||
] | ||
} | ||
] | ||
}, | ||
"destinations": { | ||
"logAnalytics": [ | ||
{ | ||
"workspaceResourceId": "[parameters('WorkspaceResourceId')]", | ||
"name": "VMInsightsPerf-Logs-Dest" | ||
} | ||
] | ||
}, | ||
"dataFlows": [ | ||
{ | ||
"streams": [ | ||
"Microsoft-InsightsMetrics" | ||
], | ||
"destinations": [ | ||
"VMInsightsPerf-Logs-Dest" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"subscriptionId": "[split(parameters('WorkspaceResourceId'),'/')[2]]", | ||
"resourceGroup": "[split(parameters('WorkspaceResourceId'),'/')[4]]" | ||
} | ||
], | ||
"outputs": {} | ||
} |