Creating Azure App Service Plans in an App Service Environments using Azure Powershell -


i'm attempting use azure app service environments (ase) , i'm having difficulty creating app service plans (asp) within ase using powershell. i've attempted using new-azureresource , new-azureresourcegroupdeployment cmdlets , both fail in unhelpful ways. need able create these programmatically our ci provisioning , deployment process (using teamcity).

i created ase manually since take 3+ hours spin (sidenote: why, microsoft, why take 3+ hours ase?), , defined worker pool 1 two-node p1 pool.

then judicious use of http://resources.azure.com tool able extract properties defining asp.

so created simple template new asp:

{     "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymenttemplate.json#",     "contentversion": "1.0.0.0", "resources": [          {             "apiversion": "2015-06-01",             "name": "rg-ase-dev-asp-wp1-2",             "type": "microsoft.web/serverfarms",             "location": "east us",             "properties": {                 "name": "rg-ase-dev-asp-wp1-2",                 "sku": "premium",                 "workersize": 0,                 "numberofworkers": "1",                 "hostingenvironmentid": "[resourceid('microsoft.web/hostingenvironments',parameters('rg-ase-dev'))]"             }         }     ] } 

then using template:

reresourcegroup1\templates> new-azureresourcegroupdeployment -resourcegroupname "rg-ase-dev" -templatefile .\ase_asp_only.json -verbose verbose: 12:37:28 pm - template valid. verbose: 12:37:29 pm - create template deployment 'ase_asp_only'. verbose: 12:37:36 pm - resource microsoft.web/serverfarms 'rg-ase-dev-asp-wp1-2' provisioning status running 

this command fail continually (i.e. generate deployment failure notifications in preview portal) several hours until, imagine, gets killed off azure backend.

i've tried combinations of asp property values template , none work. i've tried creating asp , dependent webapp in same template, thinking since asps can exist if they've webapp bound them, problem. failed.

has gotten templated asp deployments working? or supported operation?

so, no surprise here, utter lack of documentation azure wastes yet more of time.

the issue apiversion ase resource. cannot use latest, looks version resource specific, looks only matters if you're creating new resource, you'll inconsistent results depending on operation.

also concerning template validates fine, actual deployment hangs. if run hanging deployment acts this, check apiversion:

ps c:\templates> new-azureresourcegroupdeployment -resourcegroupname "rg-ase-dev"  -templatefile .\ase_asp_only.json -verbose verbose: 12:08:24 pm - template valid. verbose: 12:08:25 pm - create template deployment 'ase_asp_only'. verbose: 12:08:27 pm - resource microsoft.web/serverfarms 'rg-ase-dev-asp-wp1-2' provisioning status running  (this hangs) 

afaict, armexplorer appears give valid apiversion in link resource, i'll stick working versions until microsoft inevitably breaks well.

what pita.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -