Reputation: 2777
I'm new to Azure PowerShell, but now I'm running a command to have Azure reserve a static IP address:
New-AzureReservedIP -ReservedIPName "people-dns" -Location "West US" -ServiceName "people-dns"
And then I'm getting this error:
New-AzureReservedIP : BadRequest : Cannot reserve the ip of deployment people-dns.
At line:1 char:1
+ New-AzureReservedIP -ReservedIPName "people-dns" -Location "West US" -ServiceNam ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzureReservedIP], ComputeCloudException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.NewAzureReservedIPCmdlet
I'm trying to figure out what's wrong - the error is not very descriptive …
UPDATE 1: So, I tried to install the latest version of Azure command-line interface (but still not sure how to tell which version it is...)
UPDATE 2: I restarted the VM as suggested in order to let the Azure APIs to update, My Azure Portal PUBLIC VIRTUAL IP (VIP) ADDRESS is 137.117.11.18 and my web site is still running so I don't understand why in the message it shows a different IP...
I would love any suggestions on how to proceed or how to "update development/role"
Upvotes: 0
Views: 653
Reputation: 5272
Name of the cloud service must be incorrect. Make sure -ServiceName is your cloud service name. It works for web/worker roles and Virtual Machines.
Also make sure you are running the latest version of powershell which is 0.9.5 atm. You can download it here. I had similar problems running 0.9.4.
-Location must also be in the same datacenter as your cloud service.
Upvotes: 1