Azure / azure-saas

The Azure SaaS Development Kit (ASDK) provides a reference architecture, deployable reference implementation and tools to help developers, startups, ISVs and Enterprises deliver their applications as a SaaS service. A platform for platform creators.
https://aka.ms/azuresaasdevkit
326 stars 239 forks source link

Azure CLI 2.46 introduces breaking changes #209

Closed natelabo closed 1 year ago

natelabo commented 1 year ago

Bicep deployment fails due to issues with parameters not being passed properly when utilizing Azure CLI version 2.46 (Latest Version)

To reproduce follow setup instructions in Identity Provider.

Resolved by downgrading version in Dockerfile. Replace the following line:

&& curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash

With (Taken from Azure CLI installation script):

apt-transport-https \ lsb-release \ && sudo mkdir -p /etc/apt/keyrings \ && curl -sLS https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null \ && sudo chmod go+r /etc/apt/keyrings/microsoft.gpg \ && AZ_REPO=$(lsb_release -cs) \ && echo "deb [arch=dpkg --print-architecturesigned-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | sudo tee /etc/apt/sources.list.d/azure-cli.list \ && sudo apt-get update \ && sudo apt-get install azure-cli=2.45.0-1~jammy -y

natelabo commented 1 year ago

More info:

https://github.com/Azure/azure-cli/issues/25710

1iveowl commented 1 year ago

Thanks @natelabo. Will take a look at it.

1iveowl commented 1 year ago

A temporary work-around have been implemented with PR #211.

The issues looks like an issue with Az CLI 2.46 and we will monitor this to see if we can remove the work-around at a later time.