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.

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.

Answer:



Leave a Reply 8

Your email address will not be published. Required fields are marked *


blablalbal

blablalbal

YES
NO
YES

Mohamed

Mohamed

yes , no , yes

H

H

The whole task is incorrect. Line #2 implies that the resource is already in the ContosoGroup, which we just created! You can’t use the Set-AzureResource command to change the resource group!

https://msdn.microsoft.com/en-us/library/dn757681.aspx

H

H

… 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)

Nico

Nico

That’s why it’s YES, NO, NO.
The third answer is NO because we can’t find a resource which is on ContosoGroup. So no change can be made.

Jason Wilson

Jason Wilson

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