Azure / Azure/azure-quickstart-templates

drEnablement has resources dependent on themselves

Open
#7,131 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

[drEnablement](https://github.com/Azure/azure-quickstart-templates/blob/master/azmgmt-demo/nestedtemplates/drEnablement.json)

### Resource types "replicationProtectionContainerMappings" have dependencies on themselves

{
"type": "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionContainerMappings",
"name": "[**variables('sourceMapping')**]",
"apiVersion": "2016-08-10",
"properties": {
"policyId": "[resourceId('Microsoft.RecoveryServices/vaults/replicationPolicies/', variables('vaultName'), '24-hour-retention-policy')]",
"targetProtectionContainerId": "[concat('/subscriptions/', subscription().id, '/resourceGroups/', resourceGroup().name, '/providers/Microsoft.RecoveryServices/vaults/', variables('targetMapping'))]"
},
"dependsOn": [
"[**variables('sourceMapping')**]",
"[variables('targetMapping')]",
"[resourceId('Microsoft.RecoveryServices/vaults/', variables('vaultName'), '24-hour-retention-policy')]"
]
},
{
"type": "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionContainerMappings",
"name": "[**variables('targetMapping')**]",
"apiVersion": "2016-08-10",
"properties": {
"policyId": "[resourceId('Microsoft.RecoveryServices/vaults/replicationPolicies/', variables('vaultName'), '24-hour-retention-policy')]",
"targetProtectionContainerId": "[concat('/subscriptions/', subscription().id, '/resourceGroups/', resourceGroup().name, '/providers/Microsoft.RecoveryServices/vaults/', variables('sourceMapping'))]"
},
"dependsOn": [
"[variables('sourceMapping')]",
"[**variables('targetMapping')**]",
"[resourceId('Microsoft.RecoveryServices/vaults/', variables('vaultName'), '24-hour-retention-policy')]"
]
},

Contributor guide

No contributing guide indexed for this repository

Research direction

Open azmgmt-demo/nestedtemplates/drEnablement.json and inspect the dependsOn arrays for the two replicationProtectionContainerMappings resources. Remove the self-dependencies identified in the issue, then validate that each mapping still depends on the required source or target resources and policy without depending on itself.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.