Azure / CloudShell

Container Image for Azure Cloud Shell (https://azure.microsoft.com/en-us/features/cloud-shell/)
https://shell.azure.com
MIT License
251 stars 103 forks source link

[BUG] Unable to locate package nginx #483

Open noam271 opened 2 weeks ago

noam271 commented 2 weeks ago

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
surajssd commented 1 week ago

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