Skip to content

Commit

Permalink
Update readmes and arm
Browse files Browse the repository at this point in the history
  • Loading branch information
oZakari committed Oct 2, 2024
1 parent 25db1a3 commit 28a1873
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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-03-15-preview](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Insights/2023-03-15-preview/scheduledQueryRules) |
| `Microsoft.Insights/scheduledQueryRules` | [2023-12-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Insights/2023-12-01/scheduledQueryRules) |

## Usage examples

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": "8088755640911974857"
"templateHash": "6829842125314058344"
},
"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-03-15-preview",
"apiVersion": "2023-12-01",
"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-03-15-preview', 'full').location]"
"value": "[reference('queryRule', '2023-12-01', 'full').location]"
},
"systemAssignedMIPrincipalId": {
"type": "string",
"metadata": {
"description": "The principal ID of the system assigned identity."
},
"value": "[coalesce(tryGet(tryGet(reference('queryRule', '2023-03-15-preview', 'full'), 'identity'), 'principalId'), '')]"
"value": "[coalesce(tryGet(tryGet(reference('queryRule', '2023-12-01', 'full'), 'identity'), 'principalId'), '')]"
}
}
}

0 comments on commit 28a1873

Please sign in to comment.