Skip to content

Commit 7d493d6

Browse files
Merge pull request #224329 from bwren/patch-52
Update resource-manager-data-collection-rules.md
2 parents 123c072 + 47cfd6d commit 7d493d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-monitor/agents/resource-manager-data-collection-rules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ param associationName string
139139
@description('The resource ID of the data collection rule.')
140140
param dataCollectionRuleId string
141141
142-
resource vm 'Microsoft.Compute/virtualMachines@2021-11-01' existing = {
142+
resource vm 'Microsoft.HybridCompute/machines@2021-11-01' existing = {
143143
name: vmName
144144
}
145145
@@ -183,7 +183,7 @@ resource association 'Microsoft.Insights/dataCollectionRuleAssociations@2021-09-
183183
{
184184
"type": "Microsoft.Insights/dataCollectionRuleAssociations",
185185
"apiVersion": "2021-09-01-preview",
186-
"scope": "[format('Microsoft.Compute/virtualMachines/{0}', parameters('vmName'))]",
186+
"scope": "[format('Microsoft.HybridCompute/machines/{0}', parameters('vmName'))]",
187187
"name": "[parameters('associationName')]",
188188
"properties": {
189189
"description": "Association of data collection rule. Deleting this association will break the data collection for this Arc server.",

0 commit comments

Comments
 (0)