# Write operation failed to complete successfully on Azure

**URL:** <https://www.virtocommerce.org/t/write-operation-failed-to-complete-successfully-on-azure/649>\
**Category:** hosting\
**Created:** [November 23, 2023, 4:05pm UTC](https://www.virtocommerce.org/t/write-operation-failed-to-complete-successfully-on-azure/649 "2023-11-23T16:05:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![charlesansong](https://yyz2.discourse-cdn.com/flex032/user_avatar/www.virtocommerce.org/charlesansong/32/1578_2.png) [@charlesansong](https://www.virtocommerce.org/u/charlesansong)\
**Post date:** [November 23, 2023, 4:05pm UTC](https://www.virtocommerce.org/t/write-operation-failed-to-complete-successfully-on-azure/649/1 "2023-11-23T16:05:34Z")

</div>

why do i get this error when i deploy my app on azure?

"The resource write operation failed to complete successfully, because it reached terminal provisioning state ‘Failed’ " ?

---

<div class="post-metadata">

**Author:** ![OlegoO](https://yyz2.discourse-cdn.com/flex032/user_avatar/www.virtocommerce.org/olegoo/32/27_2.png) [@OlegoO](https://www.virtocommerce.org/u/OlegoO)\
**Post date:** [November 24, 2023, 8:48am UTC](https://www.virtocommerce.org/t/write-operation-failed-to-complete-successfully-on-azure/649/2 "2023-11-24T08:48:25Z")

</div>

> [@charlesansong](#):
>
> The resource write operation failed to complete successfully, because it reached terminal provisioning state ‘Failed’

Please verify an [Azure Policy](https://learn.microsoft.com/en-us/azure/azure-sql/database/policy-reference?view=azuresql) may be preventing the deployment to succeed. [Here](https://learn.microsoft.com/en-us/answers/questions/1280994/the-resource-write-operation-failed-to-complete-su) you will find some built-in policies to start.

Copied from [The resource write operation failed to complete successfully, because it reached terminal provisioning state ‘Failed’. - Microsoft Q&A](https://learn.microsoft.com/en-us/answers/questions/1280994/the-resource-write-operation-failed-to-complete-su)

Anothe link from google:  
[Azure Application gateway fails with terminal provisioning state “Failed” - Stack Overflow](https://stackoverflow.com/questions/75301271/azure-application-gateway-fails-with-terminal-provisioning-state-failed)

---

<div class="post-metadata">

**Author:** ![charlesansong](https://yyz2.discourse-cdn.com/flex032/user_avatar/www.virtocommerce.org/charlesansong/32/1578_2.png) [@charlesansong](https://www.virtocommerce.org/u/charlesansong)\
**Post date:** [December 2, 2023, 1:48pm UTC](https://www.virtocommerce.org/t/write-operation-failed-to-complete-successfully-on-azure/649/3 "2023-12-02T13:48:59Z")

</div>

it got fixed somehow and I think the install script worked.

I got another question for you.

How do I get the vue-b2b-theme to work on the storefront?

This is what I have done so far.

1. I setup the platform
2. deployed the storefront
3. Now it “theme is missing” so I uploaded the vue-b2b-master to the store and set it as active.
4. I set the storefront domain as provided by storefront deployment in azure ([https://](https://virtofrontapp.azurewebsites.net/)
5. I get the error below

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/virtocommerce/original/2X/5/5e49469b6c524661b5c84a37540edc29efc148ff.png)

1. I already signed to the azure platform on vs code so I can do any necessary edits from there.  
Can you guide to get this theme to work?

---

<div class="post-metadata">

**Author:** ![OlegoO](https://yyz2.discourse-cdn.com/flex032/user_avatar/www.virtocommerce.org/olegoo/32/27_2.png) [@OlegoO](https://www.virtocommerce.org/u/OlegoO)\
**Post date:** [December 4, 2023, 5:20pm UTC](https://www.virtocommerce.org/t/write-operation-failed-to-complete-successfully-on-azure/649/4 "2023-12-04T17:20:05Z")

</div>

Hi @charlesansong

Did you resolve your issue?

---

<div class="post-metadata">

**Author:** ![charlesansong](https://yyz2.discourse-cdn.com/flex032/user_avatar/www.virtocommerce.org/charlesansong/32/1578_2.png) [@charlesansong](https://www.virtocommerce.org/u/charlesansong)\
**Post date:** [December 7, 2023, 5:34pm UTC](https://www.virtocommerce.org/t/write-operation-failed-to-complete-successfully-on-azure/649/5 "2023-12-07T17:34:28Z")

</div>

The team uploaded the theme and activated it. It’s working now. But I got 1,001 questions about this platform I wish was addressed. Please see below:

Issue #1  
I get authentication every time i login. I have to click login twice to access the platform.

 ![authentication error code 500](https://canada1.discourse-cdn.com/flex032/uploads/virtocommerce/original/2X/4/4bf56bec6491cd516a6fda60f6cb28aa0edd2fcf.png)  
I

Issue #2  
GHS currency showing N/A on catalog page

![GHS not showing on product page](https://canada1.discourse-cdn.com/flex032/uploads/virtocommerce/original/2X/0/0853fa00a3698de7d02c6d92c9fec2bf6b6b7457.png)

Issue #3  
Selecting same item as a “related item”

 ![system allows selection of the same item as related items](https://canada1.discourse-cdn.com/flex032/uploads/virtocommerce/original/2X/a/a70336bb315e7bbbf395918114700cbb48410678.png)

---

<div class="post-metadata">

**Author:** ![OlegoO](https://yyz2.discourse-cdn.com/flex032/user_avatar/www.virtocommerce.org/olegoo/32/27_2.png) [@OlegoO](https://www.virtocommerce.org/u/OlegoO)\
**Post date:** [December 12, 2023, 10:30am UTC](https://www.virtocommerce.org/t/write-operation-failed-to-complete-successfully-on-azure/649/6 "2023-12-12T10:30:22Z")

</div>

Could you provide more information about 500 error (from Azure Monitor)? Stack, error message, etc.

---

<div class="post-metadata">

**Author:** ![charlesansong](https://yyz2.discourse-cdn.com/flex032/user_avatar/www.virtocommerce.org/charlesansong/32/1578_2.png) [@charlesansong](https://www.virtocommerce.org/u/charlesansong)\
**Post date:** [April 4, 2024, 5:33pm UTC](https://www.virtocommerce.org/t/write-operation-failed-to-complete-successfully-on-azure/649/7 "2024-04-04T17:33:55Z")

</div>

I think the engineers fixed it. There was some issue with the code that created this error.

---

<div class="post-metadata">

**Author:** ![OlegoO](https://yyz2.discourse-cdn.com/flex032/user_avatar/www.virtocommerce.org/olegoo/32/27_2.png) [@OlegoO](https://www.virtocommerce.org/u/OlegoO)\
**Post date:** [April 8, 2024, 7:05am UTC](https://www.virtocommerce.org/t/write-operation-failed-to-complete-successfully-on-azure/649/8 "2024-04-08T07:05:27Z")

</div>

@charlesansong Could you share more details? Maybe it can be helpful for other Virto Commerce developers and IT.
