0

Active Directory でアプリケーションを作成し、リソース グループ レベルでアプリケーションへのアクセスを許可したところ、リソース グループ内のリソースにアクセスできました。しかし、サブスクリプション レベルでアプリケーションにアクセスできるオプションがプレビュー ポータルに表示されません。

次のコードを実行しているとき

ResourceManagementClient client =
testMain.createResourceManagementClient();
ResourceGroupOperations gpoperations = client.getResourceGroupsOperations();
ResourceGroup gp1 = new ResourceGroup("West US");
ResourceGroupCreateOrUpdateResult res = gpoperations.createOrUpdate("test123", gp1);
System.out.println("Resource group creation result" + res.getRequestId()+res.toString());

次の例外が発生しています

スレッド "main" com.microsoft.windowsazure.exception.ServiceException での例外: AuthorizationFailed: オブジェクト ID '2e027029-1019-46dc-b540-cbfe4a761647' を持つクライアント '2e027029-1019-46dc-b540-cbfe4a761647' には承認がありませんアクション 'Microsoft.Resources/subscriptions/resourcegroups/write' をスコープ '/subscriptions/88335ad5-6fe2-4532-b3d5-1af946310f85/resourcegroups/test123' で実行します。com.microsoft.windowsazure.exception.ServiceException.createFromJson (ServiceException.java:292) で com.microsoft.azure.management.resources.ResourceGroupOperationsImpl.createOrUpdate (ResourceGroupOperationsImpl.java:495) で com.mycompany.resourcegroup.testMain.main (testMain.java:70)

サブスクリプション内の任意のリソース グループを作成および管理できるように、アプリケーションへのアクセスを許可するにはどうすればよいですか?

4

1 に答える 1