Azure Proactive Resiliency Library v2
Tools Glossary GitHub GitHub Issues Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

resourceGroups

Summary

RecommendationImpactCategoryAutomation AvailablePG Verified
リソース グループとそのリソースが同じリージョンに配置されていることを確認しますHighDisaster RecoveryYesVerified

Details


リソース グループとそのリソースが同じリージョンに配置されていることを確認します

Impact:  High Category:  Disaster Recovery PG Verified:  Verified

Description:

リージョンの停止中にリソースを管理できるように、リソースの場所がリソース グループと一致していることを確認します。 ARM はリソース データを保存します。このデータが使用できないリージョンにある場合、更新が停止し、リソースが読み取り専用になる可能性があります。

Potential Benefits:

Improves outage management
Learn More:
Azure Resource Manager Overview

ARG Query:

Click the Azure Resource Graph tab to view the query

// Azure Resource Graph Query
// Provides a list of Azure Resource Groups that have resources deployed in a region different than the Resource Group region
resources
| project id, name, tags, resourceGroup, location
| where location != "global"                                                                                                          // exclude global resources
| where resourceGroup != "networkwatcherrg"                                                                                           // exclude networkwatcherrg
| where split(id, "/", 3)[0] =~ "resourceGroups"                                                                                      // resource is in a resource group
| extend resourceGroupId = strcat_array(array_slice(split(id, "/"),0,4), "/")                                                         // create resource group resource id
| join (resourcecontainers | project containerid=id, containerlocation=location ) on $left.resourceGroupId == $right.['containerid']  // join to resourcecontainers table
| where  location != containerlocation
| project recommendationId="98bd7098-49d6-491b-86f1-b143d6b1a0ff", name, id, tags
| order by id asc