Install Visual Studio, connect to China Azure

Source: Internet
Author: User
Tags app service

China Data Center

Currently, China Azure has two data centers, which are displayed in the Location field as "North China" and "East China".

The difference between creating an application on Azure

The main difference between developing applications on Azure in China and developing on azure abroad is that there are different URIs for Azure endpoint addresses in the Chinese region. For example, Azure and SQL database URIs usually end with Windows.NET. The URI endpoint is not the same, the developer must be able to identify, then configure the required tools and applications, and use the appropriate URI.

Century connected Azure account, no way to sign in by default.

Install Visual Studio, connect to China Azure

The steps are as follows:

  1. Please use the following registry file:

    Azure.reg

    Windows Registry Editor Version5.00 

        [hkey_current_user\software\microsoft\vscommon\ Connecteduser]
         "aadinstance" = " https://login.chinacloudapi.cn/"
        " Adaluri "=" https://management.core.chinacloudapi.cn "
        " Azurermendpoint "=" https://management.chinacloudapi.cn "
        < Span class= "hljs-string" > "Azurermaudienceendpoint" = "https:// management.core.chinacloudapi.cn "
        " enableazurermidentity " = "true"
         "Graphurl" =" graph.chinacloudapi.cn "

    To return the Reg value to an offshore Azure, use the registry file here:

    Targetproduction.reg

    Windows Registry Editor Version5.00

    [Hkey_current_user\software\microsoft\vscommon\connecteduser]
    "Uri" =-
         "aadinstance" =-
         "Adaluri" =-
         "Azurermendpoint" =-
         Azurermaudienceendpoint "=-
        " enableazurermidentity "=-
         "Graphurl" =-
         "aadapplicationtenant" =-

        [hkey_current_user\software\ Microsoft\visualstudio\14. 0\microsoftazureservices]
         "resource management  Audience endpoint "=-
        " service management  Endpoint "=-
  2. Double-click the Azure.reg file, consent to pop-up information, allow registry value changes;

  3. After the registry value is changed, Visual Studio login information is connected to the China Azure service.

Practical Scenario Example Cloud browser
    1. Follow the instructions to enter the certification information;

    2. Enter login information;

    3. View resources in the China Azure subscription from Cloud Explorer.

Publish a WEB Application
    1. Single-Machine Right-click menu, select "Publish" dialog box;

    2. Select Microsoft Azure App Service;

    3. Select an Azure account from the account selector;

Azure Resource Manager Tools
    1. Single-Machine Right-click menu, select "Deploy" dialog box;

    2. Select an Azure account from the account selector;

    3. For resources that appear in the resource template but not supported by Azure China, the interface warns you;

    4. Edit the template parameters to continue deployment.

The steps for other features are similar to this.

Install Visual Studio, connect to China Azure

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.