注: この質問は、同じシナリオを示す一連の質問の一部です。このシリーズの各質問には、指定された目標を達成できる可能性のある独自の解決策が含まれています。一部の質問セットには複数の正しい解決策が含まれる場合がありますが、他の質問セットには正しい解決策がない場合があります。 このセクションの質問に回答すると、その質問に戻ることはできません。そのため、これらの質問はレビュー画面には表示されません。 あなたの会社は、Azure SQL データベースを使用するさまざまな Azure App Service インスタンスをデプロイすることを計画しています。App Service インスタンスは、Azure SQL データベースと同時にデプロイされます。 同社には、App Service インスタンスを特定の Azure リージョンにのみデプロイするという規制要件があります。 App Service インスタンスのリソースは同じリージョンに存在する必要があります。 規制要件を満たすソリューションを推奨する必要があります。 解決策: Azure Policy イニシアチブを使用して、リソース グループの場所を強制することをお勧めします。 これは目標を達成していますか?
正解:B
This solution does not meet the goal because an Azure Policy initiative can only enforce the location of resources, not resource groups. Resource groups are not a resource type that can be targeted by Azure Policy1. To enforce the location of resource groups, you need to use Azure Resource Manager templates2 or Azure PowerShell3 to create them in the desired regions. Reference: 1: Understand scope in Azure Policy 2: Create resource groups with Azure Resource Manager templates 3: Create resource groups with Azure PowerShell