Skip to content

Commit 25d6207

Browse files
authored
Merge pull request #97775 from adityabalaji-msft/adbalaji-wb-dec-update
Adding new articles on Azure Policy
2 parents 1975d10 + 878bb32 commit 25d6207

File tree

7 files changed

+145
-1
lines changed

7 files changed

+145
-1
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
title: Auto-Enable Backup on VM Creation using Azure Policy
3+
description: 'An article describing how to use Azure Policy to auto-enable backup for all VMs created in a given scope'
4+
ms.topic: conceptual
5+
ms.date: 11/08/2019
6+
---
7+
8+
# Auto-Enable Backup on VM Creation using Azure Policy
9+
10+
One of the key responsibilities of a Backup or Compliance Admin in an organization is to ensure that all business-critical machines are backed up with the appropriate retention.
11+
12+
Today, Azure Backup provides a built-in policy (using Azure Policy) that can be assigned to **all Azure VMs in a specified location within a subscription or resource group**. When this policy is assigned to a given scope, all new VMs created in that scope are automatically configured for backup to an **existing vault in the same location and subscription**. The user can specify the vault and the retention policy to which the backed up VMs should be associated.
13+
14+
## Supported Scenarios
15+
16+
* The built-in policy is currently supported only for Azure VMs. Users must take care to ensure that the retention policy specified during assignment is a VM retention policy. Refer to [this](https://aka.ms/PolicySupportedSKUs) document to see all the VM SKUs supported by this policy.
17+
18+
* The policy can be assigned to a single location and subscription at a time. To enable backup for VMs across locations and subscriptions, multiple instances of the policy assignment need to be created, one for each combination of location and subscription.
19+
20+
* The specified vault and the VMs configured for backup can be under different resource groups.
21+
22+
* Management Group scope is currently unsupported.
23+
24+
## Using the built-in policy
25+
26+
To assign the policy to the required scope, please follow the below steps:
27+
28+
1. Sign in to the Azure Portal and navigate to the **Policy** Dashboard.
29+
2. Select **Definitions** in the left menu to get a list of all built-in policies across Azure Resources.
30+
3. Filter the list for **Category=Backup**. You will see the list filtered down to a single policy named 'Configure backup on VMs of a location to an existing central Vault in the same location'.
31+
![Policy Dashboard](./media/backup-azure-auto-enable-backup/policy-dashboard.png)
32+
4. Click on the name of the policy. You will be redirected to the detailed definition for this policy.
33+
![Policy Definition Blade](./media/backup-azure-auto-enable-backup/policy-definition-blade.png)
34+
5. Click on the **Assign** button at the top of the blade. This redirects you to the **Assign Policy** blade.
35+
6. Under **Basics**, click on the three dots next to the **Scope** field. This opens up a right context blade where you can select the subscription for the policy to be applied on. You can also optionally select a resource group, so that the policy is applied only for VMs in a particular resource group.
36+
![Policy Assignment Basics](./media/backup-azure-auto-enable-backup/policy-assignment-basics.png)
37+
7. In the **Parameters** tab, choose a location from the drop-down, and select the vault and backup policy to which the VMs in the scope must be associated.
38+
![Policy Assignment Parameters](./media/backup-azure-auto-enable-backup/policy-assignment-parameters.png)
39+
8. Ensure that **Effect** is set to deployIfNotExists.
40+
9. Navigate to **Review+create** and click **Create**.
41+
42+
> [!NOTE]
43+
>
44+
> Azure Policy can also be used on existing VMs, using [remediation](https://docs.microsoft.com/azure/governance/policy/how-to/remediate-resources).
45+
46+
> [!NOTE]
47+
>
48+
> It is recommended that this policy is not assigned to more than 200 VMs at a time. If the policy is assigned to more than 200 VMs, it can result in the backup getting triggered a few hours later than that specified by the schedule.
49+
50+
## Next Steps
51+
52+
[Learn more about Azure Policy](https://docs.microsoft.com/azure/governance/policy/overview)
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
---
2+
title: Supported VM SKUs for Azure Policy
3+
description: 'An article describing the supported VM SKUs (by Publisher, Image Offer and Image SKU) which are supported for the built-in Azure Policies provided by Backup'
4+
ms.topic: conceptual
5+
ms.date: 11/08/2019
6+
---
7+
8+
# Supported VM SKUs for Azure Policy
9+
10+
Azure Backup provides a built-in policy (using Azure Policy) that can be assigned to **all Azure VMs in a specified location within a subscription or resource group**. When this policy is assigned to a given scope, all new VMs created in that scope are automatically configured for backup to an **existing vault in the same location and subscription**. The table below lists all the VM SKUs supported by this policy.
11+
12+
### **Supported VMs**
13+
14+
**Policy Name:** Configure backup on VMs of a location to an existing central vault in the same location
15+
16+
Image Publisher | Image Offer | Image SKU
17+
--- | --- | ---
18+
MicrosoftWindowsServer | WindowsServer | Windows Server 2008 R2 SP1 (2008-R2-SP1)
19+
MicrosoftWindowsServer | WindowsServer | [smalldisk] Windows Server 2008 R2 SP (2008-R2-SP1-smalldisk)
20+
MicrosoftWindowsServer | WindowsServer | Windows Server 2012 Datacenter (2012-Datacenter)
21+
MicrosoftWindowsServer | WindowsServer | [smalldisk] Windows Server 2012 Datacenter (2012-Datacenter-smalldisk)
22+
MicrosoftWindowsServer | WindowsServer | Windows Server 2012 R2 Datacenter (2012-R2-Datacenter)
23+
MicrosoftWindowsServer | WindowsServer | [smalldisk] Windows Server 2012 R2 Datacenter (2012-R2-Datacenter-smalldisk)
24+
MicrosoftWindowsServer | WindowsServer | Windows Server 2016 Datacenter (2016-Datacenter)
25+
MicrosoftWindowsServer | WindowsServer | Windows Server 2016 Datacenter - Server Core (2016-Datacenter-Server-Core)
26+
MicrosoftWindowsServer | WindowsServer | [smalldisk] Windows Server 2016 Datacenter - Server Core (2016-Datacenter-Server-Core-smalldisk)
27+
MicrosoftWindowsServer | WindowsServer | [smalldisk] Windows Server 2016 Datacenter (2016-Datacenter-smalldisk)
28+
MicrosoftWindowsServer | WindowsServer | Windows Server 2019 Datacenter Server Core with Containers (2016-Datacenter-with-Containers)
29+
MicrosoftWindowsServer | WindowsServer | Windows Server 2016 Remote Desktop Session Host 2016 (2016-Datacenter-with-RDSH)
30+
MicrosoftWindowsServer | WindowsServer | Windows Server 2019 Datacenter (2019-Datacenter)
31+
MicrosoftWindowsServer | WindowsServer | Windows Server 2019 Datacenter Server Core (2019-Datacenter-Core)
32+
MicrosoftWindowsServer | WindowsServer | [smalldisk] Windows Server 2019 Datacenter Server Core (2019-Datacenter-Core-smalldisk)
33+
MicrosoftWindowsServer | WindowsServer | Windows Server 2019 Datacenter Server Core with Containers (2019-Datacenter-Core-with-Containers)
34+
MicrosoftWindowsServer | WindowsServer | [smalldisk] Windows Server 2019 Datacenter Server Core with Containers (2019-Datacenter-Core-with-Containers-smalldisk)
35+
MicrosoftWindowsServer | WindowsServer | [smalldisk] Windows Server 2019 Datacenter (2019-Datacenter-smalldisk)
36+
MicrosoftWindowsServer | WindowsServer | Windows Server 2019 Datacenter with Containers (2019-Datacenter-with-Containers)
37+
MicrosoftWindowsServer | WindowsServer | [smalldisk] Windows Server 2019 Datacenter with Containers (2019-Datacenter-with-Containers-smalldisk)
38+
MicrosoftWindowsServer | WindowsServer | Windows Server 2019 Datacenter (zh-cn) (2019-Datacenter-zhcn)
39+
MicrosoftWindowsServer | WindowsServerSemiAnnual | Datacenter-Core-1709-smalldisk
40+
MicrosoftWindowsServer | WindowsServerSemiAnnual | Datacenter-Core-1709-with-Containers-smalldisk
41+
MicrosoftWindowsServer | WindowsServerSemiAnnual | Datacenter-Core-1803-with-Containers-smalldisk
42+
MicrosoftWindowsServerHPCPack | WindowsServerHPCPack | All Image SKUs
43+
MicrosoftSQLServer | SQL2016SP1-WS2016 | All Image SKUs
44+
MicrosoftSQLServer | SQL2016-WS2016 | All Image SKUs
45+
MicrosoftSQLServer | SQL2016SP1-WS2016-BYOL | All Image SKUs
46+
MicrosoftSQLServer | SQL2012SP3-WS2012R2 | All Image SKUs
47+
MicrosoftSQLServer | SQL2016-WS2012R2 | All Image SKUs
48+
MicrosoftSQLServer | SQL2014SP2-WS2012R2 | All Image SKUs
49+
MicrosoftSQLServer | SQL2012SP3-WS2012R2-BYOL | All Image SKUs
50+
MicrosoftSQLServer | SQL2014SP1-WS2012R2-BYOL | All Image SKUs
51+
MicrosoftSQLServer | SQL2014SP2-WS2012R2-BYOL | All Image SKUs
52+
MicrosoftSQLServer | SQL2016-WS2012R2-BYOL | All Image SKUs
53+
MicrosoftRServer | MLServer-WS2016 | All Image SKUs
54+
MicrosoftVisualStudio | VisualStudio | All Image SKUs
55+
MicrosoftVisualStudio | Windows | All Image SKUs
56+
MicrosoftDynamicsAX | Dynamics | Pre-Req-AX7-Onebox-U8
57+
microsoft-ads | windows-data-science-vm | All Image SKUs
58+
MicrosoftWindowsDesktop | Windows-10 | All Image SKUs
59+
RedHat | RHEL | 6.7, 6.8, 6.9, 6.10, 7.2, 7.3, 7.4, 7.5, 7.6, 7.7
60+
RedHat | RHEL-SAP-HANA | 6.7, 7.2, 7.3
61+
SUSE | SLES | 12.X
62+
SUSE | SLES-HPC | 12.X
63+
SUSE | SLES-HPC-Priority | 12.X
64+
SUSE | SLES-SAP | 12.X
65+
SUSE | SLES-SAP-BYOS | 12.X
66+
SUSE | SLES-Priority | 12.X
67+
SUSE | SLES-BYOS | 12.X
68+
SUSE | SLES-SAPCAL | 12.X
69+
SUSE | SLES-Standard | 12.X
70+
Canonical | UbuntuServer | 14.04.0-LTS
71+
Canonical | UbuntuServer | 14.04.1-LTS
72+
Canonical | UbuntuServer | 14.04.2-LTS
73+
Canonical | UbuntuServer | 14.04.3-LTS
74+
Canonical | UbuntuServer | 14.04.4-LTS
75+
Canonical | UbuntuServer | 14.04.5-DAILY-LTS
76+
Canonical | UbuntuServer | 14.04.5-LTS
77+
Canonical | UbuntuServer | 16.04-DAILY-LTS
78+
Canonical | UbuntuServer | 16.04-LTS
79+
Canonical | UbuntuServer | 16.04.0-LTS
80+
Canonical | UbuntuServer | 18.04-DAILY-LTS
81+
Canonical | UbuntuServer | 18.04-LTS
82+
Oracle | Oracle-Linux | 6.8, 6.9, 6.10, 7.3, 7.4, 7.5, 7.6
83+
OpenLogic | CentOS | 6.X, 7.X
84+
OpenLogic | CentOS–LVM | 6.X, 7.X
85+
OpenLogic | CentOS–SRIOV | 6.X, 7.X
86+
cloudera | cloudera-centos-os | 7.X
39.4 KB
Loading
33.6 KB
Loading
37 KB
Loading
118 KB
Loading

articles/backup/toc.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
href: backup-support-matrix-mars-agent.md
5757
- name: SAP HANA Backup support matrix
5858
href: sap-hana-backup-support-matrix.md
59+
- name: Supported VM SKUs for Azure Policy
60+
href: backup-azure-policy-supported-skus.md
5961
- name: Security
6062
items:
6163
- name: Role-Based Access Control
@@ -174,6 +176,10 @@
174176
href: backup-azure-vms-encryption.md
175177
- name: Restore keys and secret for encrypted VMs
176178
href: backup-azure-restore-key-secret.md
179+
- name: Built-in Azure Policy for Azure Backup
180+
items:
181+
- name: Auto-Enable Backup on VM Creation using Azure Policy
182+
href: backup-azure-auto-enable-backup.md
177183
- name: Diagnostics Events for Recovery Services Vaults
178184
items:
179185
- name: Using Diagnostics Settings for Recovery Services Vaults
@@ -323,4 +329,4 @@
323329
- name: Service updates
324330
href: https://azure.microsoft.com/updates/?product=backup
325331
- name: Videos
326-
href: https://azure.microsoft.com/documentation/videos/index/?services=backup
332+
href: https://azure.microsoft.com/documentation/videos/index/?services=backup

0 commit comments

Comments
 (0)