리소스 그룹이 "cbp.resourcegroup.neu"입니다. 예약 된 IP와 VM이 모두 동일한 리소스 그룹에 있습니다. 예약 된 IP 이름이 CBPIP-Dev-NEU 에 대한 서비스 이름입니다. 기계 VM 내가 하늘에있는 기존 VM에 예약 된 IP 추가
Set-AzureReservedIPAssociation -ReservedIPName Group cbp.resourcegroup.neu
CBPIP-Dev-NEU -ServiceName portrtestmachine
VM
에 예약 된 IP를 추가하려면 다음 명령을 실행하고 때 내가"testmachine.northeurope.cloudapp.azure.com"DNS 이름의 첫 번째 부분으로에서 찍은하는 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
내 명령에 누락 된 것이 있습니까? 나는 그것을하기 위해 파워 쉘을 사용했다.
아니요. 작동하지 않았습니다. 여기에 오류가 있습니다. "Set-AzureReservedIPAssociation : ResourceNotFound : 배치를 찾을 수 없습니다." –
단순히 명령에 잘못된 이름을 지정했음을 의미합니다. 리소스가 호출 된 것을 다시 확인하지만 그렇지 않은 경우 명령이 올바르다는 것을 의미합니다. – CodedBeard