Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

How do I use PowerShell to get Virtual Machine Settings - DNS, VNET, etc?

$
0
0

Question: What PowerShell command do I use to find out the DNS settings, VNET name and Affinity group after VM deployment?

Example - VM is deployed via Powershell - 

New-AzureVM -ServiceName $service -AffinityGroup $MyAG -VMs $MyVM -DnsSettings $myDNS -VNetName $MyVnet

So without logging into the Console or the VM how do I get this information after the VM was deployed?

ExportVM  - XML file does not contain this information.
Get-AzureVM - Does not contain this information.
Get-AzureDNS - Does not get me DNS info for a deployed VM.

Have I overlooked a command?


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>