Update Azure Website instance size (Small, Medium, Large) with Powershell -
Update Azure Website instance size (Small, Medium, Large) with Powershell -
is there way scale azure website instance size (not instance count) using powershell? haven't found way.
i know can done using azure cli or portal, want able powershell. posible?
i want update existing website instance size, not create new website.
yes, first need know name of resource grouping , web hosting plan website belongs, can new azure portal. can alter worker size 0 (small), 1 (medium) or 2 (large).
switch-azuremode azureresourcemanager $resourcegroup = "myresourcegroup" $webhostingplan = "mywebhostingplan" $whp = get-azureresource ` -name $webhostingplan ` -resourcegroupname $resourcegroup ` -resourcetype "microsoft.web/serverfarms" ` -apiversion 2014-04-01 $newworkersize = 1 $whp.properties.workersize = $newworkersize $whp.properties.workersizeid = $newworkersize set-azureresource ` -name $webhostingplan ` -resourcegroupname $resourcegroup ` -resourcetype "microsoft.web/serverfarms" ` -apiversion 2014-04-01 ` -propertyobject $whp.properties
powershell azure
Comments
Post a Comment