You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
Currently, we don't support setting the deployment credential for Service Principal (likely in the future). As a work around, you can perform git operation using Service Principal's bearer token directly.
Login with Service Principal
az login --service-principal --username <app_id> --password <secret_or_path_to_pfx_cert> --tenant <tenant>
az account get-access-token --resource https://management.core.windows.net/
See this for details. The bearer token is returned in accessToken property. I suggest to store accessToken to ACCESS_TOKEN env for later use (set ACCESS_TOKEN=ey...).