azure - Why does New-AzureReservedIP return ResourceNotFound: No deployments were found? -


i have cloud service has 2 vms in it. i'm trying follow steps listed in article reserve cloud service's ip address.

login-azurermaccount -tenantid <my tenant id> set-azurermcontext -subscriptionid <my subscription id> new-azurereservedip -reservedipname myname -location "central us" -servicename mycloudservicename 

i error:

new-azurereservedip : resourcenotfound: no deployments found.

the vms created in new portal classic mode. i'm not sure if somehow problem. i've tried other combinations of cmdlets add accounts or set subscription nothing helps.

any ideas?

i fighting 30 minutes this. i'm not sure why happening think error selecting subscription. last time worked this:

  • close azure power shell , open again.
  • listed subscriptions with: "get-azuresubscription" (make sure logged in).
  • now can see exact subscription id , use "select-azuresubscription -subscriptionid xxxxxxxx"
  • after command worked.
  • new-azurereservedip -reservedipname "myname" -location "south central us" -servicename "myservice"

hope helps.


Comments