Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bicep example of backupInstance doesn't configure containersList #13570

Open
ngbrown opened this issue Sep 20, 2023 · 2 comments
Open

Bicep example of backupInstance doesn't configure containersList #13570

ngbrown opened this issue Sep 20, 2023 · 2 comments

Comments

@ngbrown
Copy link

ngbrown commented Sep 20, 2023

This quickstart to backup a storage account is not enough and will not backup any configured containers. Does it need to include policyParameters.backupDatasourceParametersList[].containersList inside the policyInfo? I can't find any documentation on this.

resource backupInstance 'Microsoft.DataProtection/backupvaults/backupInstances@2021-01-01' = {
parent: backupVault
name: storageAccountName
properties: {
objectType: 'BackupInstance'
dataSourceInfo: {
objectType: 'Datasource'
resourceID: storageAccount.id
resourceName: storageAccountName
resourceType: resourceType
resourceUri: storageAccount.id
resourceLocation: location
datasourceType: dataSourceType
}
policyInfo: {
policyId: backupPolicy.id
name: backupPolicyName
}
}
dependsOn: [
roleAssignment
]
}

@sanjeevan11
Copy link

Yes, you need to include the policyParameters.backupDatasourceParametersList[].containersList inside the policyInfo to back up any configured containers in your storage account. This is because the default backup policy for storage accounts only backs up the root container.

The policyParameters.backupDatasourceParametersList[].containersList property is a list of container names that you want to back up. If you leave this property empty, the backup policy will not back up any containers.

@nilaydshah
Copy link
Member

@ngbrown Updated the same template to support vaulted backup (which takes container list as input). Let me know if that is working well for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants