次の方法で共有


New-AzExpressRoutePortIdentity

Azure ExpressRoutePortIdentity を作成します。

構文

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
Aliases:AzContext, AzureRmContext, AzureCredential
配置:Named
規定値:None
必須:False
パイプライン入力を受け取る:False
ワイルドカード文字を受け取る:False

-UserAssignedIdentityId

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

型:String
Aliases:UserAssignedIdentity
配置:Named
規定値:None
必須:True
パイプライン入力を受け取る:True
ワイルドカード文字を受け取る:False

入力

String

出力

PSManagedServiceIdentity