Webapp Deployment

I am an Azure newbie and attempting to install webapps in a automated CI/CD approach.

If I am logged in the CLI shell, I can do the deployment via

az webapp deployment source config --name ${WEBAPP_NAME} --resource-group ${RESOURCEGROUP_NAME} --slot staging --repo-url ${GIT_URL} --branch ${BRANCH} --manual-integration

I want to do this using a shell in Jenkins(without using the Azure plugin).

How does one login to az CLI using the deployment credentials?

I understand that we cannot login using the Azure credentials (from the CLI).

Is there an alternative to login via some API Keys (we can do this in say AWS/IBM Cloud)?


Azure Cli 2.0 supports non-interactive login. You could create a service principal and give it Owner role. Then you could login with the following command.

az login --service-principal --username APP_ID --tenant TENANT_ID --password PATH_TO_CERT 

Create Service Principal you could check this link.

Give the SP Owner role, you could check this link.

链接地址: http://www.djcxy.com/p/68504.html

上一篇: 配置django压缩器不重命名后处理文件

下一篇: Webapp部署