Skip to main content
  1. Public practice questions
  2. AZ-900 Practice Exams | Azure Fundamentals
  3. Domain 2-Describe Azure architecture and services | AZ-900 Practice Exam | 399 Questions

Question 219 — Domain 2-Describe Azure architecture and services | AZ-900 Practice Exam | 399 Questions

A developer wants to configure an Azure VM to run Nginx using a script hosted on GitHub. Which Azure CLI options should they use to set the script URI and execute it on the VM? (Select two answers).

Each correct answer presents a complete solution.

  1. --name

  2. --settings

  3. --protected-settings

  4. --version

Correct answers

  1. --settings

  2. --protected-settings

Explanations

Correct:

  • --settings: Provides the location of the script URI.
  • --protected-settings: Contains the command to execute the script on the VM.

Wrong:

  • --name: Specifies the extension name, not the script URI.
  • --version: Specifies the version of the extension, not related to script execution.