Azure PowerShell (9) Use PowerShell to export the public IP and private IP of all Azure VMS under the subscription

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.