az deployment in bicep fails since version 2.68 release #30654
Labels
Auto-Assign
Auto assign by bot
Auto-Resolve
Auto resolve by bot
Azure Deployments
az deployment/bicep/stack/deployment-scripts/ts/group export
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Service Attention
This issue is responsible by Azure service team.
Describe the bug
Since the 2.68 release, all my GitHub Actions pipelines are failling
AZ_VER=2.68.0
sudo apt-get update && sudo apt-get install -y azure-cli=${AZ_VER}-1~${AZ_DIST}
I don't know if it is related to Azure/cli@v2 action or az cli 2.68 release itself
More infos below ...
Related command
The last job (Bicep Validate) failed every time:
Errors
Here is the GitHub Actions run output:
Run Azure/cli@v2
with:
inlineScript: export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
az deployment sub validate
--template-file bicep/00-main.bicep
--parameters '{}'
--location 'northeurope'
Error: Please enter a valid azure cli version.
See available versions: https://github.com/Azure/azure-cli/releases.
Error: Error: Please enter a valid azure cli version.
See available versions: https://github.com/Azure/azure-cli/releases.
Warning: Error: EISDIR: illegal operation on a directory, unlink '/home/runner/_work/_temp'
cleaning up container...
Warning: Error response from daemon: No such container: MICROSOFT_AZURE_CLI_1736852898359_CONTAINER
Issue script & Debug output
It works if replacing version to the oldest version: 2.67
AZ_VER=2.67.0
sudo apt-get update && sudo apt-get install -y azure-cli=${AZ_VER}-1~${AZ_DIST}
Expected behavior
Bicep Validate Job
Run Azure/cli@v2
with:
inlineScript: export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
az deployment sub validate
--template-file bicep/00-main.bicep
--parameters '{}'
--location 'northeurope'
Starting script execution via docker image mcr.microsoft.com/azure-cli:2.67.0
az script ran successfully.
cleaning up container...
MICROSOFT_AZURE_CLI_1736856936920_CONTAINER
Environment Summary
az cli 2.68
Additional context
No response
The text was updated successfully, but these errors were encountered: