
Explanation:

Example:
The following command is actually a series of commands (delimited by semi-colons) that change the values of the properties in the $p variable.
Windows PowerShell
PS C:\> $p.siteMode = "Basic"; $p.sku = "Basic"; $p.computeMode = "Dedicated";
$p.serverFarm = "Default2"
The next command uses the Set-AzureResource cmdlet to change the change the properties of the ContosoLabWeb2 web site. The value of the PropertyObject parameter is the $p variable that contains the Properties object and the new values. The command saves the output (the updated resource) in the $r2 variable.
Windows PowerShell
PS C:\> $r2 = Set-AzureResource -Name ContosoLabWeb2 -ResourceGroupName
ContosoLabsRG -ResourceType "Microsoft.Web/sites" -ApiVersion 2004-04-01 -
PropertyObject $p
References: