Moonglade

Modern Markdown blogging with AI-powered localization and search.

Tag: Azure CN


Publish app from Azure DevOps to non-global Azure like Azure CN

This article describes how to publish an application to a non-global Azure environment, such as Azure CN, using Azure DevOps. Because the global configuration cannot directly recognize subscriptions in these environments, you must manually create a service connection. First, register a new application in Azure Active Directory to obtain the application ID and client secret, and then assign the Contributor role to this application in the target subscription to grant resource management permissions. Next, in the Azure DevOps project settings, add a new Azure Resource Manager service connection, select the manual configuration mode, and specify the custom environment (such as Azure China Cloud). Then, fill in the subscription ID, name, application ID, secret, and tenant ID, verify, and save the connection. After completing these steps, you can reference this service connection in your pipeline to achieve successful deployment to non-global Azure environments.

Views 1,179
Azure Azure App Service Azure CN Azure DevOps China DevOps