Windows Azure Platform Family of articles Catalog
In my previous work, I had a client who wanted to view the public IP and private IPs of all Azure VMs under Azure subscription at once. I've studied azure-related PowerShell, which can be implemented. Here the author simply share:
1. Save Http://files.cnblogs.com/files/threestone/ExportVMList.rar file to your local directory
2. Install the Windows Azure PowerShell tool, yes: http://azure.microsoft.com/zh-cn/downloads/
3. Run Azure PowerShell as an administrator
4. In Azure PowerShell, enter the following command:
Get-azurepublishsettingsfile-environment Azurechinacloud
5. The system will pop up a window to login to the Azure management interface and enter your username and password. The system will then pop up to save the Publishsettings file, entries.
Download the publishsettings file, rename it to "My.publishsettings", and save the renamed Publishsettings with EXPORTVMLIST.PS1 in the same directory. Such as:
6. Run Azure PowerShell as an administrator , switch to the directory where Exportvmlist.ps1 is located, and run EXPORTVMLIST.PS1.
7. Wait for the command to complete, the Vmlist.csv file is generated in the directory where the EXPORTVMLIST.PS1 is located, which contains the required virtual machine information.
Bo-Three Stone Blog (hereinafter referred to as Benbow), at the end of this blog article at the bottom of the right is not noted reproduced, source, provenance of the works (content) are the original, the site for the original content of the copyright reserved, do not arbitrarily reproduced, if the need for a friend can send mail contact me; reproduced original works (content ) must also follow the Creative Commons agreement "attribution-non-commercial use-consistent", be sure to indicate or retain the original source of the article and the information of the blogger (Lei Zhang) in the form of a text link, and be sure to keep in mind that the photograph works on this blog (www.cnblog.com/ Threestone) and other relevant watermark copyright information, otherwise deemed to infringe the original Copyright Act; Benbow declined commercial website reprint. All rights reserved, prohibit illegal and malicious plagiarism which violates the copyright protection Law of the People's Republic of China and related laws and Benbow (legal) statement.
Azure PowerShell (9) Use PowerShell to export the public IP and private IP of all Azure VMS under the subscription