Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure CLI curl package removed as default in 2.54.0 #27882

Closed
kesava9 opened this issue Nov 20, 2023 · 7 comments
Closed

Azure CLI curl package removed as default in 2.54.0 #27882

kesava9 opened this issue Nov 20, 2023 · 7 comments
Assignees
Labels
Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@kesava9
Copy link

kesava9 commented Nov 20, 2023

Describe the bug

We have noticed that curl is missing in Azure CLI version 2.54.0 which is present in all previous versions as default.

This can be replicated using following github workflow :

name: AzureCLI
on:
  pull_request:
    branches:
      - main
jobs:
  check-cli-curl:
    runs-on: ubuntu-latest
    steps:
        
    - name: Add the runner
      uses: azure/CLI@v1
      with:
        azcliversion: 2.53.1
        inlineScript: |
          set -x
          IP=`curl https://api.ipify.org`
          echo "RUNNER_IP=$IP" >> $GITHUB_ENV
          
        
    - name: Add the runner
      uses: azure/CLI@v1
      with:
        azcliversion: 2.54.0
        inlineScript: |
          set -x
          IP=`curl https://api.ipify.org`
          echo "RUNNER_IP=$IP" >> $GITHUB_ENV

Related command

curl https://api.ipify.org

Errors

curl not found in latest version

Issue script & Debug output

NA

Expected behavior

It should return IP address

Environment Summary

2.54.0

Additional context

image
@kesava9 kesava9 added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Nov 20, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Nov 20, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Nov 20, 2023

Thank you for opening this issue, we will look into it.

@mheskandari
Copy link

my azure ARM template for my apim has been failed with azure cli 2.54.0 which it had no issue up until now and I have to manually set the azure cli 2.53.1 in pipeline to keep it running . please do more tests before release dear Microsoft. these days I have to spend lots of time to find issues in pipeline which is not related to pipeline . they are happening only azure cli update!!!!!!
image

@yonzhan yonzhan added this to the Backlog milestone Nov 21, 2023
@yonzhan yonzhan added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Azure CLI Team The command of the issue is owned by Azure CLI team and removed bug This issue requires a change to an existing behavior in the product in order to be resolved. labels Nov 21, 2023
@bebound
Copy link
Contributor

bebound commented Nov 21, 2023

This is expected. Lots of packages are removed in image to reduce size. See #27567

You need to install them according to your own needs.

@bebound bebound closed this as completed Nov 21, 2023
@kesava9
Copy link
Author

kesava9 commented Nov 21, 2023

Thanks @bebound , But, somehow its missing in release notes of latest version which is confusing or if I have missed it.

@mheskandari
Copy link

Thanks @bebound , But, somehow its missing in release notes of latest version which is confusing or if I have missed it.

yes that's true. during last couple months in each azure cli version I have been struggling with the pipelines. at least it needs to be documented

@sofbkeller
Copy link

I don't understand why a breaking change such as previously functional cmdlets inside of the az cli action should require someone to investigate why they stop working out of the blue. If someone is going to make a major change to functionality, why not do a version step? Some of us aren't developers and finding out why our pipeline broke is not fun.

@bebound
Copy link
Contributor

bebound commented Nov 22, 2023

It's in the release note

[BREAKING CHANGE] Remove unnecessary packages in docker image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

5 participants