projectkudu / slingshot

This project implements the Deploy To Azure button
http://azure.microsoft.com/blog/2014/11/13/deploy-to-azure-button-for-azure-websites-2/
51 stars 20 forks source link

Deploy Page does not complete #68

Closed DRediske closed 8 years ago

DRediske commented 8 years ago

During the deployment, slingshot does not report completion of deployment. It will indefinitely stay on this step, though the deployment has completed.

notfinished

Error below was returned from a request for deployment status from ARM. Failed to load resource: the server responded with a status of 404 (Not Found)

shrimpy commented 8 years ago

@DRediske

I found the issue. root cause is your template is generate random site name within the template, which Slingshot has no context of it, which lead to the 404 error. Please update your template to expose siteName as input parameter, and generate the random site name as default value when define your siteName parameter.

Below blog post is an tutorial about custom template for slingshot, you can reference “sku” parameter about default value. https://elliotthamai.wordpress.com/2014/11/15/using-custom-arm-templates-with-the-deploy-to-azure-button/