Special considerations for managing and developing windowsazure.cn accounts using Windows PowerShell

Source: Internet
Author: User

Microsoft Azure Public Preview Application interface was opened for users in mainland China on June 6. You can apply for a free beta trial, just enter the activation code after you receive the notification email with the invitation code to start your free trial. The specific URL is:

http://windowsazure.cn/zh-cn/pricing/free-trial/

When actually using this account, there are some places that need special attention.

In the PowerShell tool, you need to download a publishing configuration file (Publishsettingprofile) to get the variables that set up the Windows PowerShell environment. After you sign in to the management portal for your Microsoft Azure account, access the following address to get: https://windows.azure.com/download/publishprofile.aspx

For a description of this operation, see:

Http://msdn.microsoft.com/en-us/library/windowsazure/jj554332.aspx

However, when using Windowsazure.cn's account, it was found that publishsettingprofile could not be obtained by the above method.

Upon understanding, the following address is required to obtain:

Https://manage.windowsazure.cn/publishsettings/index

After downloading the comparison, found that there are some differences in the file format.

By https://windows.azure.com/download/publishprofile.aspx, you get the example of the lattice model as follows:

<?xml version= "1.0" encoding= "Utf-8"?>    <PublishData>        <publishprofile                publishmethod= " Azureservicemanagementapi "                url=" https://management.core.windows.net/"                managementcertificate=" { Subscription ' s Management certificate} "             <subscription                id=" {Subscription ' s Id} "                name=" { Subscription ' s Name} "/>        </PublishProfile>    </PublishData>

The file format downloaded in Https://manage.windowsazure.cn/publishsettings/index is:

<?xml version= "1.0" encoding= "Utf-8"?>        <PublishData>            <publishprofile                     schemaversion= " 2.0 "                     publishmethod=" Azureservicemanagementapi ">                     <subscription                                servicemanagementurl=" https:// management.core.chinacloudapi.cn "                                id=" {Subscription ' s Id} "                                name=" {Subscription ' s Name} "                                Managementcertificate= "{Subscription ' s management certificate}"/>            </PublishProfile>        </ Publishdata>

Also, we recommend visiting Https://github.com/WindowsAzure/azure-sdk-tools to get the latest Microsoft Azure Powershell, This makes it difficult to get errors when using the command line Import-azurepublishsettingsfile.

Special considerations for managing and developing windowsazure.cn accounts using Windows PowerShell

Related Article

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.