Skip to content

Commit

Permalink
add new regions for Azure Monitor Workspace (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
bragi92 authored Oct 23, 2023
1 parent d925e87 commit f0b94a9
Show file tree
Hide file tree
Showing 7 changed files with 616 additions and 568 deletions.
27 changes: 20 additions & 7 deletions AddonArmTemplate/FullAzureMonitorMetricsProfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
"westeurope",
"westus",
"westus2",
"francesouth",
"germanywestcentral",
"israelcentral",
"italynorth",
"japanwest",
"koreacentral",
"switzerlandnorth",
"usgovvirginia"
]
},
Expand All @@ -48,7 +55,7 @@
"type": "string",
"defaultValue": ""
},
"enableWindowsRecordingRules" : {
"enableWindowsRecordingRules": {
"type": "bool",
"defaultValue": false
},
Expand Down Expand Up @@ -112,15 +119,21 @@
"dataCollectionEndpointId": "[resourceId('Microsoft.Insights/dataCollectionEndpoints/', variables('dceName'))]",
"dataFlows": [
{
"destinations": [ "MonitoringAccount1" ],
"streams": [ "Microsoft-PrometheusMetrics" ]
"destinations": [
"MonitoringAccount1"
],
"streams": [
"Microsoft-PrometheusMetrics"
]
}
],
"dataSources": {
"prometheusForwarder": [
{
"name": "PrometheusDataSource",
"streams": [ "Microsoft-PrometheusMetrics" ],
"streams": [
"Microsoft-PrometheusMetrics"
],
"labelIncludeFilter": {}
}
]
Expand Down Expand Up @@ -549,8 +562,8 @@
"name": "[parameters('roleNameGuid')]",
"scope": "[parameters('azureMonitorWorkspaceResourceId')]",
"properties": {
"roleDefinitionId": "[concat('/subscriptions/', variables('azureMonitorWorkspaceSubscriptionId'), '/providers/Microsoft.Authorization/roleDefinitions/', 'b0d8363b-8ddd-447d-831f-62ca05bff136')]",
"principalId": "[reference(resourceId('Microsoft.Dashboard/grafana', split(parameters('grafanaResourceId'),'/')[8]), '2022-08-01', 'Full').identity.principalId]"
"roleDefinitionId": "[concat('/subscriptions/', variables('azureMonitorWorkspaceSubscriptionId'), '/providers/Microsoft.Authorization/roleDefinitions/', 'b0d8363b-8ddd-447d-831f-62ca05bff136')]",
"principalId": "[reference(resourceId('Microsoft.Dashboard/grafana', split(parameters('grafanaResourceId'),'/')[8]), '2022-08-01', 'Full').identity.principalId]"
}
},
{
Expand All @@ -572,4 +585,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
"westeurope",
"westus",
"westus2",
"francesouth",
"germanywestcentral",
"israelcentral",
"italynorth",
"japanwest",
"koreacentral",
"switzerlandnorth",
"usgovvirginia"
]
},
Expand Down
7 changes: 7 additions & 0 deletions AddonBicepTemplate/FullAzureMonitorMetricsProfile.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ param azureMonitorWorkspaceResourceId string
'westeurope',
'westus',
'westus2',
'francesouth',
'germanywestcentral',
'israelcentral',
'italynorth',
'japanwest',
'koreacentral',
'switzerlandnorth',
'usgovvirginia'
])
param azureMonitorWorkspaceLocation string
Expand Down
Loading

0 comments on commit f0b94a9

Please sign in to comment.