Azure / Azure/azure-quickstart-templates
ZipDeploy Sample fails with "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'"
- Dominant language
- Bicep
- Stars
- 14.9k
- Forks
- 16.2k
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 6
Description
There is something weird going on -- maybe with this edge browser. I'm having a terrible time with pasting in links. I see that most of these are bad.
Since I have not seen a response in 5 days, I have cross posted here (where I am hoping that the links are fixed): https://learn.microsoft.com/en-us/answers/questions/1762862/zipdeploy-sample-fails-with-the-resource-write-ope
(OK, that last link seems to work. Good. These links below seem to be corrupted. I don't know why.
Azure Function App Hosted on Windows Consumption Plan [https://github.com/Azure/azure-quickstart-templates/blob/master/quickstarts/microsoft.web/function-app-windows-consumption/README.md#azure-function-app-hosted-on-windows-consumption-plan](url)
### Issue Details
Template looks out of date. I'm having troubles making this work with C#/.NET 8/Isolated.
Error message: "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'."
### Repro steps (*if necessary, delete otherwise*)
1. Download [https://github.com/Azure/azure-quickstart-templates/blob/master/quickstarts/microsoft.web/function-app-windows-consumption/azuredeploy.json](url)
2. "az functionapp list-runtimes --os windows" add missing runtime. See [https://github.com/siegfried01/zipdeployhttpfunc/blob/reached_term_prov_state_failed/infrastructure/deploy-zipdeployDemo.bicep#L236](url) were I added "dotnet-isolated"
3. Where are the instructions for creating the storage accounts? I borrowed these steps: [https://github.com/Azure-Samples/function-app-arm-templates/blob/main/zip-deploy-arm-az-cli/README.md#steps](url). See my actual commands: [https://github.com/siegfried01/zipdeployhttpfunc/blob/reached_term_prov_state_failed/infrastructure/deploy-zipdeployDemo.bicep#L136](url) lines 136-167.
4. I do the deploy [https://github.com/siegfried01/zipdeployhttpfunc/blob/reached_term_prov_state_failed/infrastructure/deploy-zipdeployDemo.bicep#L207](url) and get the error "he resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'"[(https://github.com/siegfried01/zipdeployhttpfunc/blob/reached_term_prov_state_failed/infrastructure/deploy-zipdeployDemo.bicep#L350)](url)
5. When I go to the resource group in the portal to get the details under the activities, I don't find any thing helpful, just the same error message.
Thanks
Siegfried
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading quickstarts/microsoft.web/function-app-windows-consumption/README.md and azuredeploy.json, then reproduce the deployment using the issue's runtime and storage-account steps. Compare the template's instructions with the reported .NET 8 isolated deployment; done means the ZipDeploy sample deploys successfully or the template clearly documents the supported runtime and required setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100