I am using Azure Powershell to create a new Azure Website:
New-AzureWebsite -Name MyWebsiteName
Azure creates it in the Default1
server farm, whereas I need it in DefaultServerFarm
.
Using the -location
parameter doesn't work to specify the server farm, because the Default1
and DefaultServerFarm
plans are both in "West US"
, and the location parameter does not take a server farm name as its value.
Using -slot
doesn't work either, thought I am not sure what is supposed to go in that parameter, it throws an EndpointNotFoundException
if I try to run it with DefaultServerFarm
as its value.
How can we create a new azure website with Powershell and set its server farm?