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)?
az login --service-principal --username APP_ID --tenant TENANT_ID --password PATH_TO_CERT
See this link az login --service-principal --username APP_ID --tenant TENANT_ID --password PATH_TO_CERT – Shui shengbao