View information using PowerShell link Azure

Source: Internet
Author: User

Being exposed to azure for working reasons is interesting to Azure before, but it's too busy to figure out what to do in your spare time.

Get the azure environment today, rookie first to test a

1. Install Azure PowerShell locally first

PowerShell Components for Azure

http://go.microsoft.com/fwlink/p/?linkid=320376&clcid=0x409

Note: Azure PowerShell requires the. NET Framework 4.5, so if your current PC is a Win7 or older version, install the. NET Framework 4.5

2. Download the Azure public settings file

Get-azurepublishsettingsfile-environment "Azurechinacloud" (Chinese version)

Get-azurepublishsettingsfile-environment "Azurecloud" (International edition)

Chinese version link address to: https://manage.windowsazure.cn/publishsettings/index?client=powershell&schemaversion=1.0

Save the downloaded file to a specific path such as C:\Windows Azure enterprisewilliam.publishsettings

3. Import the configuration file

Import via Command import-azirepublishsettingsfile. Such as:

  Import-azurepublishsettingsfile–publishsettingsfile "C:\indows Azure enterprisewilliam.publishsettings"
 
For specific reference: https://msdn.microsoft.com/en-us/library/dn495124.aspx

4. You can view VM information on Azure after the import is successful
Input command: GET-AZUREVM :
  

5. Get the current imported subscription information
Get-azuresubscription View all the subscription information that was imported.
  

6. Select the corresponding subscription information for subsequent configuration operations.
Select-azuresubscription-subscriptionname "Windows Azure Enterprise Trial" (red marked as subscription name)

7. View the Vnet information for your subscription
Get-azurevnetsite
  

The above basic operations can be linked to the azure environment, in the learning process, referring to some of the resources on the Internet, encountered some previous configuration success, but the command parameters and form changes, you need to refer to the latest SDK documentation.
The next thing you need to do is set up a static IP for the AD domain-controlled VMS that are built on azure.

  
  


Use PowerShell to link to azure viewing information

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.