次の方法で共有


Set-AzExpressRoutePortIdentity

ExpressRoutePort に割り当てられた ID を更新します。

構文

Default (既定)

Set-AzExpressRoutePortIdentity
    -ExpressRoutePort <PSExpressRoutePort>
    -UserAssignedIdentityId <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

説明

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

例 1

$exrport = Get-AzExpressRoutePort -Name $portName -ResourceGroupName $rgName
$identity = New-AzUserAssignedIdentity -Name $identityName -ResourceGroupName $rgName -Location $location
$exrPortIdentity = Set-AzExpressRoutePortIdentity -UserAssignedIdentity $identity.Id -ExpressRoutePort $exrPort
$updatedExrPort = Set-AzExpressRoutePort -ExpressRoutePort $exrPort

パラメーター

-DefaultProfile

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

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

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

パラメーター セット

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

-ExpressRoutePort

The ExpressRoutePort

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

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

パラメーター セット

(All)
配置:Named
必須:True
パイプラインからの値:True
プロパティ名別のパイプラインからの値: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を参照してください。

入力

PSExpressRoutePort

String

出力

PSExpressRoutePort