0

제목에 언급 된대로 클라우드 서비스에 IP를 할당 할 수 없습니다.Azure를 Powershell을 통해 클라우드 서비스에 예약했습니다.

많은 포럼과 StackOverflow 기사/게시물을 따라했지만 여전히 문제가 있습니다. 내가

Set-AzureReservedIPAssociation -ReservedIPName primosguardo365reservedip -ServiceName primosguardo365 

를 실행하려고하면

는이 오류를

Set-AzureReservedIPAssociation : ResourceNotFound: No deployments were found. 
At line:1 char:1 
+ Set-AzureReservedIPAssociation -ReservedIPName primosguardo365reserve ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : CloseError: (:) [Set-AzureReservedIPAssociation], CloudException 
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.SetAzureReservedIPAssociationCmdlet 

를 얻을 수 있지만이 같은 이름을 사용하여 자원을 얻기 위해 시도하는 경우

λ Get-AzureReservedIP 

ReservedIPName  : Group Primosguardo365 primosguardo365reservedip 
Address    : **.**.**.** 
Id     : ****************** 
Label    : 
Location    : West Europe 
State    : Created 
InUse    : False 
ServiceName   : 
DeploymentName  : 
VirtualIPName  : 
OperationDescription : Get-AzureReservedIP 
OperationId   : ************************ 
OperationStatus  : Succeeded 


λ Get-AzureService "primosguardo365" 

ServiceName    : primosguardo365 
Url      : https://management.core.windows.net................. 
Label     : primosguardo365 
Description    : primosguardo365 
Location    : West Europe 
AffinityGroup   : 
Status     : Created 
ExtendedProperties  : {[ResourceGroup, Primosguardo365], [ResourceLocation, westeurope], [ProvisioningSource, 
          AzureResourceManager]} 
DateModified   : 28/03/2017 12:13:20 
DateCreated    : 28/03/2017 11:26:03 
ReverseDnsFqdn   : 
WebWorkerRoleSizes  : {} 
VirtualMachineRoleSizes : {} 
OperationDescription : Get-AzureService 
OperationId    : **************************** 
OperationStatus   : Succeeded 

는 사람이 어떤이 있습니까 암시?

미리 감사드립니다.

편집 :

VIP은 배포 된 생산 인스턴스에 할당 할 수 있습니다.

하지만 쓸모가 없으므로 CloudServices에 이미 정적 IP가 있습니다.

모두에게 감사드립니다!

+0

클라우드 서비스가 배포 되었습니까? –

+0

예, 테스트 해본 결과 작동했습니다! 그러나 나는 아직도 문제가있다! –

+0

질문을 수정했습니다. 문제를 해결하기 위해 관리했습니다. –

답변

0

내 테스트에서 오류가 재현되었습니다. 포털을 통해 클라우드 서비스를 만든 다음 예약 된 IP 주소를 연결하면 오류가 발생합니다.

PS C:\Users> Set-AzureReservedIPAssociation -ReservedIPName my9 -ServiceName "jasontest323" 
Set-AzureReservedIPAssociation : ResourceNotFound: No deployments were found. 
At line:1 char:1 
+ Set-AzureReservedIPAssociation -ReservedIPName my9 -ServiceName "jaso ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : CloseError: (:) [Set-AzureReservedIPAssociation], CloudException 
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.SetAzureReservedIPAssociationCmdlet 

그런 다음 다른 클라우드 서비스와 VM을 만든 다음이 클라우드 서비스에 예약 된 IP 주소를 할당하면 작동합니다.

PS C:\Users> Set-AzureReservedIPAssociation -ReservedIPName my9 -ServiceName "jasonvm3659" 

OperationDescription   OperationId       OperationStatus 
--------------------   -----------       --------------- 
Set-AzureReservedIPAssociation 05ccff35-5642-7cc6-9c6b-b5dfe2d1603d Succeeded 

그래서, 나는 두 개의 클라우드 서비스의 상태를 확인, 생산이 실행 중일 때 내가 찾아 명령이 작동합니다. enter image description here

enter image description here

우리는 배포 확인 PowerShell을 사용할 수 있습니다

:

PS C:\Users> Get-AzureDeployment -ServiceName jasontest323 
Get-AzureDeployment : ResourceNotFound: No deployments were found. 
OperationID : '27da300bc3c67a5bbdbc954c1c19e3e7' 
At line:1 char:1 
+ Get-AzureDeployment -ServiceName jasontest323 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : CloseError: (:) [Get-AzureDeployment], ComputeCloudException 
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.HostedServices.GetAzureDeploymentCommand 

PS C:\Users> Get-AzureDeployment -ServiceName jasonvm3659 


SdkVersion    : 
RollbackAllowed   : False 
Slot      : Production 
Name      : jasonvm3659 
DeploymentName   : jasonvm3659 
Url      : http://jasonvm3659.cloudapp.net/ 
Status     : Running 
CurrentUpgradeDomain  : 0 
CurrentUpgradeDomainState : 
UpgradeType    : 
RoleInstanceList   : {jasonvm} 
Configuration    : <ServiceConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration"> 
           <Role name="jasonvm"> 
           <Instances count="1" /> 
           </Role> 
          </ServiceConfiguration> 
DeploymentId    : fc627acb502a4a979b08c42f69cccf72 
Label      : jasonvm3659 
VNetName     : Group jasontest321 jasontest321 
DnsSettings    : 
OSVersion     : 
RolesConfiguration  : {[jasonvm, Microsoft.WindowsAzure.Commands.ServiceManagement.Model.RoleConfiguration]} 
VirtualIPs    : {jasonvm3659ContractContract} 
ReservedIPName   : my9 
CreatedTime    : 3/29/2017 1:10:28 PM 
LastModifiedTime   : 3/29/2017 1:27:42 PM 
Locked     : False 
InternalLoadBalancerName : 
LoadBalancers    : {} 
ExtensionConfiguration : 
ServiceName    : jasonvm3659 
OperationDescription  : Get-AzureDeployment 
OperationId    : f8b8xxxx-xxxx-xxxx-xxxx-xxxx2cdc1daa 
OperationStatus   : Succeeded 

예약 된 IP의 고전적인 모듈에 대한 작업을 만 사용할 수 VM을클라우드 서비스 인스턴스 역할에 대한 노출 VIP를 통해.

먼저 powershell Get-AzureDeployment -ServiceName primosguardo365으로 배포를 확인해야합니다.

+0

수정 됨, 문제를 해결했습니다. –