Azure PowerShell Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Managing and Deploying Resources

What you'll be asked

  1. Which command is used to start an Azure PowerShell session from your local machine?
  2. You need to create a new resource group using Azure PowerShell. Which cmdlet should you use?
  3. If you want to view all virtual machines in your current subscription, which command is most appropriate?
  4. You have a variable $vm that contains an Azure VM object. How do you stop this VM using PowerShell?
  5. You are writing a script and need to ensure that a resource group exists before deploying resources, but you do not want to trigger an error if the group already exists. Which approach is best?

Answers and explanations come after you submit.