【发布时间】:2017-08-31 05:44:17
【问题描述】:
我有资源组“cbp.resourcegroup.neu”,我的保留 IP 和 VM 都在同一个资源组中 我保留的 IP 名称是 CBPIP-Dev-NEU 我的机器 VM 的服务名称是 testmachine,我已将其作为 DNS 名称“testmachine.northeurope.cloudapp.azure.com”的第一部分
当我运行以下命令将保留的 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来做到这一点。
【问题讨论】:
标签: powershell azure powershell-3.0 azure-powershell