我有资源组“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