Azure / cli

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

Warning about Alpine-based image vs latest Azure Linux based image #159

Open matthewbarreiro opened 1 month ago

matthewbarreiro commented 1 month ago

When using this Action, the following is printed to console output:

WARNING: Azure CLI 2.63.0 is the last version available on Alpine and will not receive updates. Consider migrating to the Azure Linux based image for Azure CLI. For more information: https://go.microsoft.com/fwlink/?linkid=2282203

The link contains the following:

Warning: Azure CLI 2.63.0 (released in August 2024) is the last version supported on the Alpine docker image. Microsoft will not be providing additional updates or bug fixes for this image. Consider migrating to the Azure Linux based image for the Azure CLI, which is fully supported.

Will this Action be updated to use the new container image automatically as part of azure/CLI@v2? If yes, is there a timeline for this change? If no, what is the planned path forward?

Thank you in advance!

MoChilia commented 4 weeks ago

Hi @matthewbarreiro, we're currently discussing the Linux distribution for 2.64.0. We'll make an announcement once a decision is made.

MoChilia commented 1 week ago

Hi @matthewbarreiro, starting from version 2.64.0, we have decided to switch the base Linux distribution to Azure Linux to drive the transition to Azure Linux based image. The az commands will remain unaffected. To ensure a smooth migration to this update, kindly remove any Alpine-specific commands from the inlineScript in azure/cli action. Thank you for your cooperation!

MoChilia commented 1 week ago

If you are not yet prepared to migrate to Azure Linux due to some specific issues, please let me now. You can temporarily pin the Azure CLI version to 2.63.0 until the issue is resolved.

- name: Azure CLI script
      uses: azure/cli@v2
      with:
        azcliversion: 2.63.0
        inlineScript: |
             <Your az commands here>
xsoheilalizadeh commented 1 week ago

This broke our CI/CD pipeline since we where using the latest version (by default), in inlineScript we had jq and it's no longer included in the image.

o-l-a-v commented 1 week ago

This broke our CI/CD too. We now hardcode this action to v2.63.0 while we wait for newer versions to mature.

Process terminated. Couldn't find a valid ICU package installed on the system. Please install libicu (or icu-libs) using your package manager and try again. Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.

We have no special scripting done in that action, only doing az deployment commands (validate, what-if, create).

kdambekalns commented 1 week ago

See #165

MoChilia commented 6 days ago

Hi everyone, please try the temporary workarounds mentioned in this blog. We're now working to resolve the package missing issue in Azure CLI version 2.65.0.