json - Setting the sku name and tier of Azure ARM template serverfarm -


we creating deployment template using azure resource manager. have virtually set created hostplan not pick correct pricing tier. no matter values use seems default 'free' 'f1' pricing plan.

here section

{         "apiversion": "2015-08-01",         "type": "microsoft.web/serverfarms",         "name": "[variables('siteplanname')]",         "location": "[resourcegroup().location]",         "sku": {             "name": "b1",             "tier": "basic",             "capacity": 1         },         "properties": {             "numberofworkers": 1         }     }, 

any thoughts appreciated.

regards

can try specify sku inside "properties" node of serverfarms description, :

{   "apiversion":"2015-08-01",   "name":"[variables('hostingplanname')]",   "type":"microsoft.web/serverfarms",   "location":"[resourcegroup().location]",   "properties":{     "name":"[variables('hostingplanname')]",     "sku":"basic",     "workersize":"1"     "numberofworkers":1   } } 

possible values "sku" : free, shared, basic, standard, premium

for basic, standard , premium skus, "workersize" possible values 0 (small), 1 (medium) or 2 (large) :

"sku": {     "type": "string",         "allowedvalues": [             "free",             "shared",             "basic",             "standard",             "premium"         ],         "defaultvalue": "free"     },     "workersize": {         "type": "string",         "allowedvalues": [             "0",             "1",             "2"         ],         "defaultvalue": "0"     } } 

hope helps.

julien


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -