Issue with azlogin@v2
when i am using latest azlogin@v2 getting below error, previously it worked with version1.
Run azure/login@v1
Running Azure CLI Login.
/usr/bin/az cloud set -n azurecloud
Done setting cloud: "azurecloud"
Note: Azure/login action also supports OIDC login mechanism. Refer https://github.com/azure/login#configure-a-service-principal-with-a-federated-credential-to-use-oidc-based-authentication for more details.
Attempting Azure CLI login by using service principal with secret...
Error: AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app '***'. Trace ID: a536496d-5fdd-4be2-b7ea-48dabe1d4000 Correlation ID: 59755e3d-86b1-41c4-9bd3-3e7ba1d90f03 Timestamp: 2025-01-09 08:26:10Z
Error: The error may be caused by passing a service principal certificate with --password. Please note that --password no longer accepts a service principal certificate. To pass a service principal certificate, use --certificate instead.
Error: Login failed with Error: The process '/usr/bin/az' failed with exit code 1. Double check if the 'auth-type' is correct. Refer to https://github.com/Azure/login#readme for more information.
here is my YAML
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Convert BASE64 text to spn
run: |
echo $CERT
echo $CERT | base64 --decode > /home/runner/work/_temp/spn.pfx
- name: download secrets
run: |
echo "${{ secrets.ARM_PEM_FILE }}" > ARM_CLIENT_CERTIFICATE_PEM.pem
- name: Set up Azure CLI
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
Issue with azlogin@v2
when i am using latest azlogin@v2 getting below error, previously it worked with version1.
Run azure/login@v1
Running Azure CLI Login.
/usr/bin/az cloud set -n azurecloud
Done setting cloud: "azurecloud"
Note: Azure/login action also supports OIDC login mechanism. Refer https://github.com/azure/login#configure-a-service-principal-with-a-federated-credential-to-use-oidc-based-authentication for more details.
Attempting Azure CLI login by using service principal with secret...
Error: AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app '***'. Trace ID: a536496d-5fdd-4be2-b7ea-48dabe1d4000 Correlation ID: 59755e3d-86b1-41c4-9bd3-3e7ba1d90f03 Timestamp: 2025-01-09 08:26:10Z
Error: The error may be caused by passing a service principal certificate with --password. Please note that --password no longer accepts a service principal certificate. To pass a service principal certificate, use --certificate instead.
Error: Login failed with Error: The process '/usr/bin/az' failed with exit code 1. Double check if the 'auth-type' is correct. Refer to https://github.com/Azure/login#readme for more information.
here is my YAML
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0