Overview of Azure Login Action
masterThe Azure Login Action allows you to authenticate into Azure within a GitHub Actions workflow. Once authenticated, you can execute Azure CLI and Azure PowerShell scripts.
Supported authentication methods include:
- OpenID Connect (OIDC): The recommended method for increased security.
- Service Principal Secret: Using a JSON credential string.
- System-assigned Managed Identity
- User-assigned Managed Identity
Security Warnings
- Log Privacy: By default, Azure CLI output is printed to
stdoutand stored in build logs. To prevent sensitive data from appearing in logs, set the environment variableAZURE_CORE_OUTPUTtonone. You can override this for specific commands using the--outputargument. - Self-hosted Runners: Avoid using Managed Identity on self-hosted runners in public repositories, as any user who can open a pull request might gain access to the runner's identity.