Get the machine name of an Azure worker or web role using PowerShell? -
is there way using powershell azure cmdlets machine name on azure worker or web role running? specifically, i'm looking name starts "rd". i'm not 100% sure if i'm searching using right terminology, because results clouded info azure virtual machines. i've been exploring objects returned such calls get-azuredeployment , get-azurevm, haven't found "rd" name anyplace yet.
i've found give-and-take here, wondering if it's out of date: http://social.msdn.microsoft.com/forums/windowsazure/en-us/73eb430a-abc7-4c15-98e7-a65308d15ed9/how-to-get-the-computer-name-of-a-webworker-role-instance?forum=windowsazuremanagement
motivation: new relic monitoring complains "server not reporting" instances have been decommissioned. new relic's server monitoring knows "rd..." names, , i'm looking quick way list of these azure can compare , see if new relic complaining old instances or if there's real problem 1 of current instances.
you can more important host names rd... setting vmname key in cloud service's serviceconfiguration file.
then, host names of form vmnamexx, xx instance number of role. (i.e. "myapp01", "myapp02", ...)
for details on this, see links below:
https://azure.microsoft.com/documentation/articles/virtual-networks-viewing-and-modifying-hostnames/
http://blogs.msdn.com/b/cie/archive/2014/03/30/custom-hostname-for-windows-azure-paas-virtual-machines.aspx
powershell azure
No comments:
Post a Comment