PrepAway - Latest Free Exam Questions & Answers

You plan to migrate a website named Contoso from one hosting plan to another hosting plan.

HOTSPOT
You plan to migrate a website named Contoso from one hosting plan to another hosting plan. The website is
currently in a hosting plan named webhostingplan1. You create a resource group named ContosoGroup.
You create the following PowerShell script by using the Azure PowerShell tools. Line numbers are included for
reference only.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

PrepAway - Latest Free Exam Questions & Answers

Answer:

8 Comments on “You plan to migrate a website named Contoso from one hosting plan to another hosting plan.

    1. H says:

      … or the answer must be YES, NO (because you can’t use the Set-AzureResource command to change the resource group), NO (because the the resource is not in the ContosoGroup)




      0



      0
    2. Jason Wilson says:

      You’re partially right. You can use Set-AzureResource to change the resource group. This just isn’t how you do it.

      -ResourceGroupName parameter is necessary for identifying the resource group the resource is currently in (like you imply)

      If want to change the resource group, you would need to add the new resource group to the Properties Object that you created in line 01.

      It’s hard to find references to Set-AzureResource as it’s be replaced by Resource Manager equivalent Set-AzureRmResource, but here is a secondary reference: https://www.sapien.com/powershell/cmdlet/set-azureresource/

      The answer is yes, no, no




      0



      0

Leave a Reply