Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 220
Kirill Sereda Avatar asked Feb 01 '26 12:02

Kirill Sereda


1 Answers

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'
}
like image 119
Darrell Avatar answered Feb 04 '26 01:02

Darrell