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

echo does not work and produces non functional content. #4448

Closed
rbreunung opened this issue Jul 8, 2024 · 3 comments
Closed

echo does not work and produces non functional content. #4448

rbreunung opened this issue Jul 8, 2024 · 3 comments
Assignees
Labels
assigned-to-author doc-bug install Referencing docs having to do with Azure CLI installation Linux needs-triage triaged

Comments

@rbreunung
Copy link

Type of issue

Code doesn't work

Feedback

I tried the following from your documentation:

echo "Types: deb
URIs: https://packages.microsoft.com/repos/azure-cli/
Suites: ${AZ_DIST}
Components: main
Architectures: $(dpkg --print-architecture)
Signed-by: /etc/apt/keyrings/microsoft.gpg" | sudo tee /etc/apt/sources.list.d/azure-cli.sources

it didn't work well for me as it did not recognize line breaks or the file content. I would recommend to write the following instead:

printf "Types: deb \n\
URIs: https://packages.microsoft.com/repos/azure-cli/ \n\
Suites: ${AZ_DIST} \n\
Components: main \n\
Architectures: $(dpkg --print-architecture) \n\
Signed-by: /etc/apt/keyrings/microsoft.gpg" | sudo tee /etc/apt/sources.list.d/azure-cli.sources

It solves 2 issues:

  1. the line breaks get recognized by the command.
  2. The line breaks remain preserved in the target file.

Alternatively you could echo the content line by line into the target file.

Page URL

https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux

Content source URL

https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/docs-ref-conceptual/install-azure-cli-linux.md

Author

@jiasli

Document Id

a3f27295-3e2e-a36d-02c2-8897295fc443

@PesalaPavan
Copy link

@rbreunung
Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

@dbradish-microsoft
Copy link
Collaborator

@dbradish-microsoft dbradish-microsoft added install Referencing docs having to do with Azure CLI installation Linux labels Jul 8, 2024
@dbradish-microsoft
Copy link
Collaborator

@rbreunung, The Azure CLI is supported in the distributions listed in Before you begin. I retested the Option 2: Step-by-step installation instructions in Debian (bookworm) and Ubunto (22.04.3 LTS / Jammy Jelyfish). Both ran the install script without error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned-to-author doc-bug install Referencing docs having to do with Azure CLI installation Linux needs-triage triaged
Projects
None yet
Development

No branches or pull requests

4 participants