We are creating an Azure Web App using the command line interface. How do we create a server farm from the CLI? This is what we have already done.
azure login
azure group create MyGroup "West US"
azure webapp create -g MyGroup -n MyApp -l "West US"
The error is:
parameters.webSite.properties.serverFarm cannot be null.
How do we create a server farm from the CLI? Here are some things we have tried.
azure resource create -g MyGroup -n MyFarm
-r "Microsoft.Web/ServerFarms" -l "West US" -o "2015-08-01"
-p "{ `"SKU`": `"`" }"
We have not been able to determine how to set the -p
value with an appropriate JSON object. Azure complains about unexpected characters. None of these work.
-p "{ sku: "" }" // Unexpected token s
-p "{ 'sku': "" }" // Unexpected token '
-p "{ \'sku\' : \'\' }" // uUnexpected token \
-p "{ `'sku`' : `'`' }" // uUnexpected token '
-p "{ `"sku`" : `"`" }" // Unexpected token s
-p "{\"sku\":{\"tier\": \"Standard\"}}" // SKU cannot be null.
-p
is supposed to be "a JSON-formatted string containing properties". What do they mean by that?