azure - ARM template - website deployment failure -


i’m attempting use azure resource manager (arm) template files deploy asp.net website , hitting roadblock. nascent feature of azure there isn’t know-how out on web it, hoping here can instead.

i can create new site (i.e. microsoft.web/sites resource) in new resource group i.e. works when define website in arm template so:

{   "apiversion": "2014-06-01",   "name": "[parameters('sitename')]",   "type": "microsoft.web/sites",   "location": "[parameters('sitelocation')]",   "tags": {     "[concat('hidden-related:', resourcegroup().id, '/providers/microsoft.web/serverfarms/', parameters('hostingplanname'))]": "resource",     "displayname": "website"    },   "dependson": [     "[concat('microsoft.web/serverfarms/', parameters('hostingplanname'))]"   ],   "properties": {     "name": "[parameters('sitename')]",     "serverfarm": "[parameters('hostingplanname')]"   } } 

my problem comes when try deploy asp.net website it. here’s have added arm template:

{   "apiversion": "2014-06-01",   "name": "[parameters('sitename')]",   "type": "microsoft.web/sites",   "location": "[parameters('sitelocation')]",   "tags": {     "[concat('hidden-related:', resourcegroup().id, '/providers/microsoft.web/serverfarms/', parameters('hostingplanname'))]": "resource",     "displayname": "website"    },   "dependson": [     "[concat('microsoft.web/serverfarms/', parameters('hostingplanname'))]"   ],   "properties": {     "name": "[parameters('sitename')]",     "serverfarm": "[parameters('hostingplanname')]"   },   "resources": [     {       "apiversion": "2014-06-01",       "type": "extensions",       "name": "msdeploy",       "dependson": [ "[concat('microsoft.web/sites/', parameters('sitename'))]" ],       "properties": {         "connectionstring": "",         "dbtype": "",         "packageuri": "file:///d:/svn/dh.psp.conductor/dh.psp.conductor.azureresourcegroup/obj/release/projectreferences/dh.psp.conductor.api/package.zip"       }     }   ] } 

i’m deploying powershell , fails with:

new-azureresourcegroup : 16:00:35 - resource microsoft.web/sites/extensions 'armtest20150604/msdeploy' failed message 'the resource operation completed terminal provisioning state 'failed'.'

if in portal see more useful error:

statuscode:conflict statusmessage:{"status":"failed","error":{"code":"resourcedeploymentfailure","message":"the resource operation completed terminal provisioning state 'failed'."}}

enter image description here i’m none wiser why failing however. can suggest how might investigate further?

fault mine (as might expect). not possible reference local file packageuri property, file needs uploaded blob storage first.

something else useful i've found out, deployment log available browsing https://websitename.scm.azurewebsites.net/debugconsole, "cd logfiles\siteextensions\msdeploy", open appmanagerlog.xml. more useful information in there. in case:

<entry time="2015-06-04t15:28:12.0718158+00:00" type="error">         <message>appgallery deploy failed: 'system.uriformatexception: invalid uri: uri empty.    @ system.uri.createthis(string uri, boolean dontescape, urikind urikind)    @ system.uri..ctor(string uristring)    @ microsoft.web.deployment.webapi.appgallerypackage.ispremiumapp()    @ microsoft.web.deployment.webapi.deploymentcontroller.checkcandeployifappispremium(appgallerypackageinfo packageinfo, boolean&amp;amp; ispremium)'</message>     </entry>     <entry time="2015-06-04t15:28:12.1186872z" type="message">         <message>downloading package path 'd:\svn\dh.psp.conductor\dh.psp.conductor.azureresourcegroup\obj\release\projectreferences\dh.psp.conductor.api\package.zip' blob ''</message>     </entry>     <entry time="2015-06-04t15:28:12.1186872z" type="error">         <message>failed download package.</message>     </entry> 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -