私はリソースグループ "cbp.resourcegroup.neu"を持っています。予約済みのIPとVMは同じリソースグループにあります 私の予約済みのIPアドレスはCBPIP-Dev-NEUです。 サービス名myマシンVMは、私はVMazureの既存VMに予約済みIPを追加する
Set-AzureReservedIPAssociation -ReservedIPName Group cbp.resourcegroup.neu
CBPIP-Dev-NEU -ServiceName portrtestmachine
に予約済みのIPアドレスを追加するには、次のコマンドを実行しているとき、私は、DNS名の最初の部分としての
を「testmachine.northeurope.cloudapp.azure.com」を取っているtestmachineです次のエラーが表示されます。
Set-AzureReservedIPAssociation : Cannot validate argument on parameter
'Slot'. The argument "CBPIP-Dev-NEU" does not belong to the set
"Staging,Production" specified by the ValidateSet attribute. Supply an
argument that is in
the set and then try the command again.
At line:1 char:76
+ ... ion -ReservedIPName Group cbp.resourcegroup.neu CBPIP-Dev-NEU -Servic
...
+ ~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Set-AzureReservedIPAssociation], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.SetAzureReservedIPAssociationCmdlet
私のコマンドには何もありません。私はそれを行うためにpowershellを使用しています。
いいえ、それは仕事をしませんでした。ここにエラーがあります。 "Set-AzureReservedIPAssociation:ResourceNotFound:配備が見つかりませんでした。 –
これは単純に、コマンドに間違った名前を付けることを意味します。リソースが何を呼び出すかを再確認しますが、それ以外の場合は正しいコマンドです。 – CodedBeard