次の方法で共有


New-AzExpressRoutePortIdentity

Azure ExpressRoutePortIdentity を作成します。

構文

Default (既定)

New-AzExpressRoutePortIdentity
    -UserAssignedIdentityId <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

説明

New-AzExpressRoutePortIdentity コマンドレットは、ローカルの Azure ExpressRoutePort Identity オブジェクトを作成します。 New-AzExpressRoutePort または Set-AzExpressRoutePort を使用して、Azure ExpressRoutePort に割り当てます。

例 1

$parameters = @{
    UserAssignedIdentityId='/subscriptions/<SubId>/resourceGroups/<ResourceGroupName>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<IdentityName>'
	}
New-AzExpressRoutePortIdentity @parameters

パラメーター

-DefaultProfile

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

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

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

パラメーター セット

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

-UserAssignedIdentityId

ExpressRoutePort に割り当てられるユーザー割り当て ID の ResourceId。

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

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

パラメーター セット

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

CommonParameters

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

入力

String

出力

PSManagedServiceIdentity