Azure-docs: Arm Template

Created on 3 Jan 2019  Â·  4Comments  Â·  Source: MicrosoftDocs/azure-docs

Please can you provide resources to configure backups using an arm template? (Or at least a link to the correct resource)


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

assigned-to-author product-question sql-databassvc triaged

Most helpful comment

@MashaMSFT Hi, I found a solution. Something like this works:

 {
  "type": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies",
  "name": "[concat(variables('webDatabaseName'), '/Default')]",
  "tags": { "displayName": "Database Backup" },
  "apiVersion": "2017-03-01-preview",
  "location": "UK West",
  "scale": null,
  "properties": {
    "weeklyRetention": "P4W"
  },
  "dependsOn": [
    "[resourceId('Microsoft.Sql/servers', variables('sqlServerName'))]",
    "[resourceId('Microsoft.Sql/servers/databases', variables('sqlserverName'), variables('webDatabase'))]",
  ]
},

All 4 comments

@johnstaveley Thank you for your interest in Azure products and services. We are investigating and will update you shortly.

@MashaMSFT please work with @anosov1960 to respond to this git issue

Hi @johnstaveley , thank you for contacting Microsoft! I did some research and unfortunately was unable to find an Azure Quickstart Template that configures backups. Can you please share your request with the engineering team via UserVoice so they know this is a need customers have? Since there is little the content team can do to assist you with this further, I will proceed with closing out this Git Issue. However, please let me know if the SQL content team can be of further assistance to you. Thanks! #please-close

@MashaMSFT Hi, I found a solution. Something like this works:

 {
  "type": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies",
  "name": "[concat(variables('webDatabaseName'), '/Default')]",
  "tags": { "displayName": "Database Backup" },
  "apiVersion": "2017-03-01-preview",
  "location": "UK West",
  "scale": null,
  "properties": {
    "weeklyRetention": "P4W"
  },
  "dependsOn": [
    "[resourceId('Microsoft.Sql/servers', variables('sqlServerName'))]",
    "[resourceId('Microsoft.Sql/servers/databases', variables('sqlserverName'), variables('webDatabase'))]",
  ]
},
Was this page helpful?
0 / 5 - 0 ratings

Related issues

JamesDLD picture JamesDLD  Â·  3Comments

JeffLoo-ong picture JeffLoo-ong  Â·  3Comments

varma31 picture varma31  Â·  3Comments

behnam89 picture behnam89  Â·  3Comments

jebeld17 picture jebeld17  Â·  3Comments