Azure / login

Connect to Azure
MIT License
316 stars 297 forks source link

I am unable to login into azure using github actions. #440

Closed GuptajiMLOps closed 4 months ago

GuptajiMLOps commented 7 months ago
- name: Login via Az module
  uses: azure/login@v1.1
  with:
    creds: ${{ secrets.AZURE_CREDENTIALS }}

using this YAML script

and passing this JSON file in secrets.

{ "clientId":"xxxxxx", "clientSecret":"xxxxxx", "subscriptionId":"xxxxxx", "tenantId":"xxxxxx", "activeDirectoryEndPointUrl":"https://login.microsoftonline.com", "resourceManagerEndpointUrl":"https://management.azure.com/", "activeDirectoryGraphResourceId":"https://graph.windows.net/", "sqlManagementEndPointUrl":"https://management.core.windows.net:8443/", "galleryEndpointUrl":"https://gallery.azure.com/", "managementEndpointUrl":"https://management.core.windows.net/" }

Getting this error.

Error: Az CLI Login failed. Please check the credentials. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows Error: Error: Error: The process '/usr/bin/az' failed with exit code 1

MoChilia commented 7 months ago

Hi @GuptajiMLOps, could you please verify the validity of your credentials? If they are confirmed valid, please update to the latest azure/login@v2 and share the error messages here for further clarification.

:exclamation: Always handle your secrets with care and avoid sharing them publicly. I have already deleted your credentials, but please refresh your client secret in case it was exposed to anyone else.

JackBruceShell commented 6 months ago

I am also facing this issue with azure/login@v1 where the error is outputting the below:

Error: Login failed with Error: The process '/home/$username/.local/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.

If i change to azure/login@v2, then i get the below error:

Run azure/login@v2 /home/$username/actions-runner/externals/node20/bin/node: /lib64/libm.so.6: version GLIBC_2.27' not found (required by /home/$username/actions-runner/externals/node20/bin/node) /home/$username/actions-runner/externals/node20/bin/node: /lib64/libstdc++.so.6: versionGLIBCXX_3.4.20' not found (required by /home/$username/actions-runner/externals/node20/bin/node) /home/$username/actions-runner/externals/node20/bin/node: /lib64/libstdc++.so.6: version CXXABI_1.3.9' not found (required by /home/$username/actions-runner/externals/node20/bin/node) /home/$username/actions-runner/externals/node[20](https://github.com/sede-x/iPaaS-Sandbox/actions/runs/9031964212/job/24819236079#step:2:21)/bin/node: /lib64/libstdc++.so.6: versionGLIBCXX_3.4.21' not found (required by /home/$username/actions-runner/externals/node20/bin/node) /home/$username/actions-runner/externals/node20/bin/node: /lib64/libc.so.6: version GLIBC_2.28' not found (required by /home/$username/actions-runner/externals/node20/bin/node) /home/$username/actions-runner/externals/node20/bin/node: /lib64/libc.so.6: versionGLIBC_2.25' not found (required by /home/$username/actions-runner/externals/node20/bin/node)

YanaXu commented 6 months ago

ome/$username/actions-runner/exte

Hi @JackBruceShell , could you please provide your runner information and the sample workflow file?

YanaXu commented 4 months ago

I'll close this issue since no feedback from author for a long time. Feel free to reopen it.