Get-AzManagementGroupSubscription
管理グループのサブスクリプションの詳細を取得します。
構文
Get-AzManagementGroupSubscription
[-GroupName] <String>
[[-SubscriptionId] <String>]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
説明
Get-AzManagementGroupSubscription コマンドレットは、管理グループのサブスクリプション情報を取得します。 SubscriptionId と GroupName を指定すると、そのサブスクリプションのサブスクリプションの詳細のみが表示されます。 GroupName のみを指定すると、管理グループのすべてのサブスクリプションの詳細が一覧表示されます。
例
例 1: 管理グループのサブスクリプションの詳細を取得する
Get-AzManagementGroupSubscription -GroupName "TestGroup" -SubscriptionId 5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
Name : 5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
Type : Microsoft.Management/managementGroups/subscriptions
Id : /providers/Microsoft.Management/managementGroups/TestGroup/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
TenantId : 14307de0-5e6f-46cf-b2ba-64a062964d30
DisplayName : Visual Studio Enterprise Subscription
ParentId : /providers/Microsoft.Management/managementGroups/TestGroup
State : Active
例 2: 管理グループのすべてのサブスクリプションの詳細を取得する
Get-AzManagementGroupSubscription -GroupName "TestGroup"
Name : 5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
Type : Microsoft.Management/managementGroups/subscriptions
Id : /providers/Microsoft.Management/managementGroups/TestGroup/subscriptions/5602fbd9-fb0d-4fbb-98b3-10c8ea20b6de
TenantId : 14307de0-5e6f-46cf-b2ba-64a062964d30
DisplayName : Visual Studio Enterprise Subscription
ParentId : /providers/Microsoft.Management/managementGroups/TestGroup
State : Active
Name : 2120692d-35c3-44c8-81f5-631fa7351726
Type : Microsoft.Management/managementGroups/subscriptions
Id : /providers/Microsoft.Management/managementGroups/TestGroup/subscriptions/2120692d-35c3-44c8-81f5-631fa7351726
TenantId : 14307de0-5e6f-46cf-b2ba-64a062964d30
DisplayName : Test Subscription
ParentId : /providers/Microsoft.Management/managementGroups/TestGroup
State : Active
パラメーター
-Confirm
コマンドレットの実行前に確認を求めるメッセージが表示されます。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
Azure との通信のために使用される資格情報、アカウント、テナント、サブスクリプションです。
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GroupName
管理グループ ID
Type: | String |
Aliases: | GroupId |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PassThru
正常に実行された場合の戻り値true
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
管理に関連付けられているサブスクリプションのサブスクリプション ID
Type: | String |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
コマンドレットの実行時に発生する内容を示します。 このコマンドレットは実行されません。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
入力
None