Azure / login

Connect to Azure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I am unable to login into azure using github actions.

GuptajiMLOps opened this issue · comments

- 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

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.

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.

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: version GLIBCXX_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: version GLIBCXX_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: version GLIBC_2.25' not found (required by /home/$username/actions-runner/externals/node20/bin/node)

ome/$username/actions-runner/exte

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