Kirill Sereda
Kirill Sereda

Reputation: 549

Azure: what could be the cause of the error "Unable to edit or replace deployment"?

When I recreate my VM I got the following error:

Problem occurred during request to Azure services. Cloud provider details: Unable to edit or replace deployment 'VM-Name': previous deployment from '8/20/2019 6:20:33 AM' is still active (expiration time is '8/27/2019 5:17:41 AM'). Please see https://aka.ms/arm-deploy for usage details.

Help me please to understand. What could be the cause of the error ?


UPDATED:

This deployment has not been started previously. Prior to this, errors were received during creation:

Azure is not available now. Please Try again later

There were several such errors one at a time and then I got that error related to:

Unable to edit or replace deployment

My assumptions about this. Tell me, am I right or not ?

I launched the image, then after some time I recreated it. Creation began, but at that moment the connection with Azure was lost. Then, when the connection was restored, we tried to make a deployment that was not removed in the previous attempt (because there was no connection with Azure). As a result, we got such an error.

Does this theory make sense?

Upvotes: 14

Views: 14284

Answers (4)

Tun
Tun

Reputation: 912

Go to azure portal. Choose the resource group and click 'Deployments' under the setting. Find running deployment, cancel or restart deployment.

Upvotes: 8

mansoor syed
mansoor syed

Reputation: 1

I got the same error initially pipeline was working but when retriggered pipeline took more time so i canceled the deployment and made a fresh rerun it encounters. i think i need wait until that deployment filed.

Upvotes: 0

Darrell
Darrell

Reputation: 2175

This can also occur if you use Bicep templates for your ARM deployement and multiple modules or resources in the template have the same name:

module fooModule '../modules/foo.bicep' = {
   name: 'foo'
}

module barModule '../modules/bar.bicep' = {
   name: 'foo'
}

Upvotes: 24

4c74356b41
4c74356b41

Reputation: 72191

exactly what it says, there is another deployment with the same name going on at this time, either change the name of the deployment you are trying to queue or wait for the other deployment to finish\fail

Upvotes: 6

Related Questions