次の方法で共有


Get-AzBlueprintAssignment

このコマンドレットは 、プレビュー モジュールの一部です。 プレビュー バージョンは、運用環境で使用することはお勧めしません。 詳細については、https://aka.ms/azps-refstatusを参照してください。

1 つ以上のブループリントの割り当てを取得します。

構文

SubscriptionScope (既定)

Get-AzBlueprintAssignment
    [-SubscriptionId <String>]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

BySubscriptionAndName

Get-AzBlueprintAssignment
    -Name <String>
    [-SubscriptionId <String>]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

ByManagementGroupAndName

Get-AzBlueprintAssignment
    -Name <String>
    -ManagementGroupId <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

ManagementGroupScope

Get-AzBlueprintAssignment
    -ManagementGroupId <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

説明

1 つ以上のブループリントの割り当てを取得します。 ブループリントの割り当てはサブスクリプション スコープに存在します。

例 1

Get-AzBlueprintAssignment -SubscriptionId "aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e"
Name              : Assignment-PS-BlueprintDefinition
Id                : /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/providers/Microsoft.Blueprint/blueprintAssignments/Assignment-PS-BlueprintDefinition
Scope             : /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
LastModified      : 2019-01-08
LockMode          : AllResourcesReadOnly
ProvisioningState : Succeeded
Parameters        : {applytaganditsdefaultvalue_tagName, applytaganditsdefaultvalue_tagValue}
ResourceGroups    : ResourceGroup

指定したサブスクリプション内のブループリントの割り当てを取得します。

例 2

Get-AzBlueprintAssignment -SubscriptionId "aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e" -Name "myAssignmentName"

指定したサブスクリプション内の特定の名前でブループリントの割り当てを取得します。

例 3

Get-AzBlueprintAssignment -ManagementGroupId "myManagementGroup"

指定した管理グループ内のブループリントの割り当てを取得します。

例 4

Get-AzBlueprintAssignment -ManagementGroupId "myManagementGroup" -Name "myAssignmentName"

指定した管理グループ内の特定の名前を持つブループリントの割り当てを取得します。

パラメーター

-DefaultProfile

Azure との通信のために使用される資格情報、アカウント、テナント、サブスクリプションです。

パラメーターのプロパティ

型:IAzureContextContainer
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-ManagementGroupId

ブループリント割り当てが保存される管理グループの ID。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

ByManagementGroupAndName
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False
ManagementGroupScope
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

-Name

ブループリントの割り当て名。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

BySubscriptionAndName
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False
ByManagementGroupAndName
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

-SubscriptionId

ブループリント割り当てがデプロイされるサブスクリプション ID。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

SubscriptionScope
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False
BySubscriptionAndName
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

CommonParameters

このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。

入力

String

出力

Object