Azure / azure-devtestlab

Azure DevTestLab artifacts, scripts and samples
MIT License
459 stars 603 forks source link

AzureDevTestLabsCreateVM returns ResourceIsNotInValidState #761

Open simen-wu opened 3 years ago

simen-wu commented 3 years ago

We use AzureDevTestLabsCreateVM in our yaml pipeline to create virtual machine. From time to time, the task returns a ResourceIsNotInValidState error and fails the pipeline.

Here is the detail of the error:

[error]At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details. InnerError => code: 'ResourceIsNotInValidState'; message: 'Resource 'XXXX' is not in a valid state 'Creating' for operation 'PUT'.'

However, I logon to the https://portal.azure.com/ and I can see the it's still creating the related vm. And at the end the vm is successfully created.

leovms commented 3 years ago

@simen-wu, an update has been published. Can you confirm if this still happens with v3.0.16?

simen-wu commented 3 years ago

@leovms Sure, I will keep an eye on that. Thanks for the quick update.