You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
To Reproduce
The text was updated successfully, but these errors were encountered: