Skip to content

Deployment issue with database resource; Deployment script not resilient to failure #29

@tonyzahnle

Description

@tonyzahnle

When attempting to execute the deployment script, the following logs appear

Deploying Sample application.. (this might take a few minutes)
ERROR: {"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/8fe6613c-3a2f-4b08-90d4-b1f4a8db416d/resourceGroups/az400-tz-lab-bottl-02northcentralus-rg/providers/Microsoft.Resources/deployments/windows-webapp-template","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"ResourceDeploymentFailure","target":"/subscriptions/8fe6613c-3a2f-4b08-90d4-b1f4a8db416d/resourceGroups/az400-tz-lab-bottl-02northcentralus-rg/providers/Microsoft.DocumentDb/databaseAccounts/az400-tz-lab-bottl-02db","message":"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.","details":[{"code":"ServiceUnavailable","message":"Database account creation failed. Operation Id: af33347a-fbaf-4bb4-b81f-416a2653ee07, Error : Message: {\"code\":\"ServiceUnavailable\",\"message\":\"Sorry, we are currently experiencing high demand in North Central US region, and cannot fulfill your request at this time Fri, 23 May 2025 19:52:35 GMT. To request region access for your subscription, please follow this link https://aka.ms/cosmosdbquota for more details on how to create a region access request.\\r\\nActivityId: 1be3da05-7ad5-4cbf-9f7c-0e7ab3bcf1e6, Microsoft.Azure.Documents.Common/2.14.0\"}, Request URI: /serviceReservation, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0"}]}]}}
Setting connection string to cosmos db

After which, the script continues to try to deploy, even after there was a failure with the resource deployment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions