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

[BUG] Unable to locate package nginx #483

Open
noam271 opened this issue Aug 30, 2024 · 1 comment
Open

[BUG] Unable to locate package nginx #483

noam271 opened this issue Aug 30, 2024 · 1 comment
Labels
bug Something isn't working MS Learn Issues related to Cloud Shell in MS Learn Priority 3

Comments

@noam271
Copy link

noam271 commented Aug 30, 2024

To Reproduce

Commands you ran
az vm create \
  --resource-group "learn-50319756-24e7-47f3-a22e-103836e5992f" \
  --name my-vm \
  --public-ip-sku Standard \
  --image Ubuntu2204 \
  --admin-username azureuser \
  --generate-ssh-keys    

the above works as expected. Then I executed this:

az vm extension set \
  --resource-group "learn-50319756-24e7-47f3-a22e-103836e5992f" \
  --vm-name my-vm \
  --name customScript \
  --publisher Microsoft.Azure.Extensions \
  --version 2.1 \
  --settings '{"fileUris":["https://raw.githubusercontent.com/MicrosoftDocs/mslearn-welcome-to-azure/master/configure-nginx.sh"]}' \
  --protected-settings '{"commandToExecute": "./configure-nginx.sh"}'    

## Observed Behavior
[stderr]
E: Unable to locate package nginx
tee: /var/www/html/index.html: No such file or directory

## Expected behavior

I expect nginx to be installed on the new vm

## Is this specific to Cloud Shell?
tried both azure cli and cloud shell 

## Interface information
I'm using Azure CLI


@noam271 noam271 added bug Something isn't working Triage-needed Triage needed by Cloud Shell team labels Aug 30, 2024
@surajssd
Copy link
Member

surajssd commented Sep 4, 2024

@noam271 what documentation were you trying out on CloudShell? Can you add more details here?

@mbifeld mbifeld added MS Learn Issues related to Cloud Shell in MS Learn Priority 3 and removed Triage-needed Triage needed by Cloud Shell team labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working MS Learn Issues related to Cloud Shell in MS Learn Priority 3
Projects
None yet
Development

No branches or pull requests

3 participants