Error in configuring nginx on Azure VM in learn sandbox

Paul Kang 31 Reputation points
2022-11-20T05:46:34.893+00:00

need help on this:262125-image.png

PS /home/paul> az vm extension set --resource-group learn-cff128e5-0fd7-4d18-8223-c9ccb0577a26 --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"}'
Failed to parse string as JSON:
{fileUris:[https://raw.githubusercontent.com/MicrosoftDocs/mslearn-welcome-to-azure/master/configure-nginx.sh]}
Error detail: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
Please provide a valid JSON file path or JSON string.
The provided JSON string may have been parsed by the shell. See https://learn.microsoft.com/cli/azure/use-cli-effectively#use-quotation-marks-in-arguments

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
903 questions
{count} vote

Accepted answer
  1. kobulloc-MSFT 23,416 Reputation points Microsoft Employee
    2022-11-23T01:29:48.31+00:00

    Hello, @Paul Kang !

    Where are you seeing this issue?

    Issue: Why am I running into an error on step 2, az vm extension set?
    Thank you again for bringing this to our attention. The command az vm extension set on step 2 has had reports of failures recently that we've been investigating however they all appear to be resolved by restarting the sandbox. If you continue to see this error after restarting the sandbox, please let us know so we can continue to troubleshoot this.

    Thank you again for your patience!

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful