Skip to content

Commit

Permalink
revert to 03-15-2023 preview module
Browse files Browse the repository at this point in the history
  • Loading branch information
Michelle Carter committed Sep 28, 2024
1 parent a65bb90 commit 293ad18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion avm/res/insights/scheduled-query-rule/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This module deploys a Scheduled Query Rule.
| Resource Type | API Version |
| :-- | :-- |
| `Microsoft.Authorization/roleAssignments` | [2022-04-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2022-04-01/roleAssignments) |
| `Microsoft.Insights/scheduledQueryRules` | [2023-12-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Insights/2023-12-01/scheduledQueryRules) |
| `Microsoft.Insights/scheduledQueryRules` | [2023-03-15-preview](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Insights/2023-03-15-preview/scheduledQueryRules) |

## Usage examples

Expand Down
2 changes: 1 addition & 1 deletion avm/res/insights/scheduled-query-rule/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ resource avmTelemetry 'Microsoft.Resources/deployments@2024-03-01' = if (enableT
}
}

resource queryRule 'Microsoft.Insights/scheduledQueryRules@2023-12-01' = {
resource queryRule 'Microsoft.Insights/scheduledQueryRules@2023-03-15-preview' = {
name: name
location: location
tags: tags
Expand Down
8 changes: 4 additions & 4 deletions avm/res/insights/scheduled-query-rule/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "6829842125314058344"
"templateHash": "8088755640911974857"
},
"name": "Scheduled Query Rules",
"description": "This module deploys a Scheduled Query Rule.",
Expand Down Expand Up @@ -320,7 +320,7 @@
},
"queryRule": {
"type": "Microsoft.Insights/scheduledQueryRules",
"apiVersion": "2023-12-01",
"apiVersion": "2023-03-15-preview",
"name": "[parameters('name')]",
"location": "[parameters('location')]",
"tags": "[parameters('tags')]",
Expand Down Expand Up @@ -398,14 +398,14 @@
"metadata": {
"description": "The location the resource was deployed into."
},
"value": "[reference('queryRule', '2023-12-01', 'full').location]"
"value": "[reference('queryRule', '2023-03-15-preview', 'full').location]"
},
"systemAssignedMIPrincipalId": {
"type": "string",
"metadata": {
"description": "The principal ID of the system assigned identity."
},
"value": "[coalesce(tryGet(tryGet(reference('queryRule', '2023-12-01', 'full'), 'identity'), 'principalId'), '')]"
"value": "[coalesce(tryGet(tryGet(reference('queryRule', '2023-03-15-preview', 'full'), 'identity'), 'principalId'), '')]"
}
}
}

0 comments on commit 293ad18

Please sign in to comment.