我有資源組「cbp.resourcegroup.neu」,我的保留IP和虛擬機都在同一個資源組中 我的保留IP名稱是CBPIP-Dev-NEU 我的服務名稱機VM是testmachine我從作爲DNS名「testmachine.northeurope.cloudapp.azure.com」將保留的IP添加到azure上的現有虛擬機上
第一部分當我運行下面的命令來保留的IP添加到VM
Set-AzureReservedIPAssociation -ReservedIPName Group cbp.resourcegroup.neu
CBPIP-Dev-NEU -ServiceName portrtestmachine
採取我收到以下錯誤。
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