DevTestLabs provisioningState failed

Christoph Bayer 0 Reputation points
2024-08-15T14:48:19.18+00:00

Hello,
I couldn't change anything in my DevTest Lab, because the provisioningState since my last change is failed.

How do I change the provisioningState ?

Reproduction steps:

We have a policy which requires Tag-Names on Resources.

If I go to "Lab settings" and change "Default resource group allocation" to "All virtual machines in one resource group" I get the error:

=========================================

Failed to save the lab settings. Error: {"error":{"code":"AppendPoliciesFieldsExist","message":"Policies attempted to append some fields which already exist in the request with different values. Fields: 'tags[BudgetName]'. Policy identifiers:'[{"policyAssignment":{"name":"Add budget name tags to subscription and resource group","id":"/providers/Microsoft.Management/managementGroups/mg-kx/providers/Microsoft.Authorization/policyAssignments/rxsz84jnhf2vco30q6dbku19"},"policyDefinition":{"name":"Add tag for budget name on Resource Group","id":"/providers/Microsoft.Management/managementGroups/mg-kx/providers/Microsoft.Authorization/policyDefinitions/a66c0a5b-b928-4881-b7ca-0ceaf9410ce2","version":"1.0.0"},"policySetDefinition":{"name":"Add budget name tags to subscription and resource group","id":"/providers/Microsoft.Management/managementGroups/mg-kx/providers/Microsoft.Authorization/policySetDefinitions/32c6c1e0-5796-4024-b14a-1bc4ab8c1a15","version":"1.0.0"},"policyDefinitionReferenceId":"Add tag for budget name on Resource Group"}]'. Please contact the subscription administrator to update the policies."}}

=========================================

This error is ok, but because the deployment failed, the DevTest Lab is now in provisioningState=Failed.

If I try to undo the setting, I get:

=========================================

Failed to save the lab settings. Error: {"error":{"code":"ResourceIsNotInValidState","message":"Resource 'shuttlelab6' is not in a valid state 'Failed' for operation 'PUT'."}}

=========================================

What must I do to get out of the "Failed" state?

Thanks

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
280 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 20,307 Reputation points Microsoft Employee
    2024-08-16T20:04:17.6266667+00:00

    @Christoph Bayer Thanks for posting your query on Microsoft Q&A.

    There are a few troubleshooting steps you can try. Let me know in the comments if you are still stuck.

    1. Go to the Azure portal and navigate to your DevTest Lab. Find the resource with the failed provisioning state. Check the error message and details to understand what went wrong. Pls share here so that I can further investigate.
    2. Ensure that you haven’t hit any resource quotas or limits in your subscription. You can check this in the Azure portal under the “Usage + quotas” section.
    3. Make sure that the lab policies are not restricting the changes you are trying to make. Lab policies can limit VM sizes, the number of VMs, and other configurations.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.