Azure / Azure/bicep-registry-modules

[AVM Module Issue]: Private end point creation fails some times in SQL Database module

Open
#5,994 17 comments 0 reactions 0 assignees View on GitHub
Class: Resource Module :package: Language: Bicep :muscle: Needs: Immediate Attention :bangbang: Needs: More Evidence :balance_scale: Needs: Triage :mag: Status: Long Term :hourglass_flowing_sand: Status: Response Overdue :triangular_flag_on_post: Type: AVM :a: :v: :m:
Dominant language
Bicep
Stars
736
Forks
564
Avg merge
3d 15h
Merged PRs (30d)
30

Description

### Check for previous/existing GitHub issues

- [x] I have checked for previous/existing GitHub issues

### Issue Type?

Bug

### Module Name

avm/res/sql/server

### (Optional) Module Version

0.20.2

### Description

The Private end point deployment fails incosistently with below error:

```json
{
"code": "DeploymentFailed",
"target": "/subscriptions//resourceGroups//providers/Microsoft.Resources/deployments/avm.res.sql.server.sqldb-clientadvisoryfvpg",
"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//resourceGroups//providers/Microsoft.Resources/deployments/idjr7xkdbzvfs-server-PrivateEndpoint-0",
"message": "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.",
"details": [
{
"code": "DeploymentFailed",
"target": "/subscriptions//resourceGroups//providers/Microsoft.Resources/deployments/idjr7xkdbzvfs-server-PrivateEndpoint-0",
"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": "AnotherOperationInProgress",
"message": "Another operation on this or dependent resource is in progress. To retrieve status of the operation use uri: https://management.azure.com/subscriptions//providers/Microsoft.Network/locations//operations/?api-version=2019-02-01.",
"details": []
}
]
}
]
}
]
}
```

### (Optional) Correlation Id

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the avm/res/sql/server module and reproduce private endpoint creation using the reported deployment error. Inspect the Azure deployment operations for the nested PrivateEndpoint deployment and identify the conflicting operation. Done means private endpoint deployment completes consistently without AnotherOperationInProgress failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, sql
Domain
cloud, databases, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.