Created
July 13, 2022 20:21
-
-
Save TheCloudScout/7902712c6fba7e40834276487c002a33 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
"resources": [ | |
{ | |
"type": "microsoft.operationalInsights/querypacks", | |
"apiVersion": "2019-09-01-preview", | |
"name": "[parameters('queryPackName')]", | |
"location": "[resourceGroup().location]", | |
"properties": {} | |
}, | |
{ | |
"type": "microsoft.operationalInsights/querypacks/queries", | |
"apiVersion": "2019-09-01-preview", | |
"name": "[concat(parameters('queryPackName'), '/', guid(string(parameters('queryPackQueries')[copyIndex()].displayName)))]", | |
"dependsOn": [ | |
"[resourceId('microsoft.operationalInsights/querypacks', parameters('queryPackName'))]" | |
], | |
"copy": { | |
"name": "queryPackQueries", | |
"count": "[length(parameters('queryPackQueries'))]" | |
}, | |
"properties": { | |
"displayName": "[parameters('queryPackQueries')[copyIndex()].displayName]", | |
"body": "[parameters('queryPackQueries')[copyIndex()].body]", | |
"related": { | |
"categories": [], | |
"resourceTypes": [ | |
"microsoft.operationalinsights/workspaces" | |
] | |
}, | |
"tags": { | |
"labels": [ | |
"[parameters('queryPackQueries')[copyIndex()].labels]" | |
] | |
} | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment