Set Azure Reserved IP on cloud service via powershell -


as said in title, can't assign ip cloud service.

i've followed lot of forums , stackoverflow articles/posts i've still issue.

when try run

set-azurereservedipassociation -reservedipname primosguardo365reservedip -servicename primosguardo365 

i error

set-azurereservedipassociation : resourcenotfound: no deployments found. @ line:1 char:1 + set-azurereservedipassociation -reservedipname primosguardo365reserve ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + categoryinfo          : closeerror: (:) [set-azurereservedipassociation], cloudexception     + fullyqualifiederrorid : microsoft.windowsazure.commands.servicemanagement.iaas.setazurereservedipassociationcmdlet 

but if try resources using same name

λ  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 

does have suggestion?

thanks in advance!

edit:

vip can assigned deployed production instance.

but that's useless, cause cloudservices have static ip.

thanks all!

in test, reproduce error, create cloud service via new portal, , associate reserved ip address it, error occur.

ps c:\users> set-azurereservedipassociation -reservedipname my9 -servicename "jasontest323" set-azurereservedipassociation : resourcenotfound: no deployments found. @ line:1 char:1 + set-azurereservedipassociation -reservedipname my9 -servicename "jaso ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + categoryinfo          : closeerror: (:) [set-azurereservedipassociation], cloudexception     + fullyqualifiederrorid : microsoft.windowsazure.commands.servicemanagement.iaas.setazurereservedipassociationcmdlet 

after that, create cloud service , vm, assiscate reserved ip address cloud service, works.

ps c:\users> set-azurereservedipassociation -reservedipname my9 -servicename "jasonvm3659"  operationdescription           operationid                          operationstatus --------------------           -----------                          --------------- set-azurereservedipassociation 05ccff35-5642-7cc6-9c6b-b5dfe2d1603d succeeded 

so, check status of 2 cloud service, find when production running, command work. enter image description here

enter image description here

we can use powershell check deployment:

ps c:\users> get-azuredeployment -servicename jasontest323 get-azuredeployment : resourcenotfound: no deployments found. operationid : '27da300bc3c67a5bbdbc954c1c19e3e7' @ 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 

the reserved ips work classic module, used vms , cloud service instance roles exposed through vip.

so should check deployment powershell get-azuredeployment -servicename primosguardo365 first.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -