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.
YES
NO
YES
yes , no , yes
Agree. Yes No YES.
http://www.troyhunt.com/2015/01/automating-web-hosting-creation-in.html
or https://blogs.msdn.microsoft.com/shad_phillips/2014/11/06/changing-azure-hosting-plans-with-powershell/
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
… 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)
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.
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
seems to be YES-NO-YES after
http://stackoverflow.com/questions/24892220/change-azure-website-web-hosting-plan-mode-using-powershell
or
https://blogs.msdn.microsoft.com/shad_phillips/2014/11/06/changing-azure-hosting-plans-with-powershell/