Azure / cli

Automate your GitHub workflows using Azure CLI scripts
MIT License
124 stars 52 forks source link

az cli script failed in github action. #121

Closed pawan885 closed 6 months ago

pawan885 commented 8 months ago

logs_1247.zip attaching log here to investigate

MoChilia commented 8 months ago

Hi @pawan885, I've reviewed your attachments. The error occurs when you check if the secret yy already exists in: secretExists=$(az keyvault secret show --vault-name "$AZURE_KEYVAULT_NAME" --name "$secret" 2>/dev/null) You've redirected the error message to /dev/null, making it impossible to see what the error is. Please remove 2>/dev/null and include the error message of az keyvault secret show.

MoChilia commented 6 months ago

I will close this issue since it doesn't seem to be caused by GitHub action. If you encounter any other question, please feel free to reopen it and attach the error message.