You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/backup/backup-afs-cli.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
1
---
2
-
title: Back up Azure file shares with Azure CLI
3
-
description: Learn how to use Azure CLI to back up Azure file shares in the Recovery Services vault
2
+
title: Back up Azure Files with Azure CLI
3
+
description: Learn how to use Azure CLI to back up Azure Files in the Recovery Services vault
4
4
ms.topic: how-to
5
5
ms.custom: devx-track-azurecli, engagement-fy24
6
-
ms.date: 03/20/2024
6
+
ms.date: 03/05/2025
7
7
author: jyothisuri
8
8
ms.author: jsuri
9
9
---
10
10
11
-
# Back up Azure file shares with Azure CLI
11
+
# Back up Azure Files with Azure CLI
12
12
13
-
The Azure CLI provides a command-line experience for managing Azure resources. It's a great tool for building custom automation to use Azure resources. This article details how to back up Azure file shares with Azure CLI. You can also perform these steps via [Azure PowerShell](./backup-azure-afs-automation.md) or the [Azure portal](backup-afs.md).
13
+
The Azure CLI provides a command-line experience for managing Azure resources. It's a great tool for building custom automation to use Azure resources. This article details how to back up Azure Files with Azure CLI. You can also perform these steps via [Azure PowerShell](./backup-azure-afs-automation.md) or the [Azure portal](backup-afs.md).
14
14
15
15
By the end of this tutorial, you'll learn how to perform the operations below with Azure CLI:
@@ -54,13 +54,13 @@ Follow these steps to create a Recovery Services vault:
54
54
eastus azurefilesvault azurefiles
55
55
```
56
56
57
-
## Enable backup for Azure file shares
57
+
## Enable backup for Azure Files
58
58
59
-
This section assumes that you already have an Azure file share for which you want to configure backup. If you don't have one, create an Azure file share using the [az storage share create](/cli/azure/storage/share#az-storage-share-create) command.
59
+
This section assumes that you already have an Azure Files for which you want to configure backup. If you don't have one, create an Azure Files using the [az storage share create](/cli/azure/storage/share#az-storage-share-create) command.
60
60
61
-
To enable backup for file shares, you need to create a protection policy that defines when a backup job runs and how long recovery points are stored. You can create a backup policy using the [az backup policy create](/cli/azure/backup/policy#az-backup-policy-create) cmdlet.
61
+
To enable backup for File Shares, you need to create a protection policy that defines when a backup job runs and how long recovery points are stored. You can create a backup policy using the [az backup policy create](/cli/azure/backup/policy#az-backup-policy-create) cmdlet.
62
62
63
-
The following example uses the [az backup protection enable-for-azurefileshare](/cli/azure/backup/protection#az-backup-protection-enable-for-azurefileshare) cmdlet to enable backup for the *azurefiles* file share in the *afsaccount* storage account using the *schedule 1* backup policy:
63
+
The following example uses the [az backup protection enable-for-azurefileshare](/cli/azure/backup/protection#az-backup-protection-enable-for-azurefileshare) cmdlet to enable backup for the *azurefiles* File Share in the *afsaccount* storage account using the *schedule 1* backup policy:
The **Name** attribute in the output corresponds to the name of the job that's created by the backup service for your **enable backup** operation. To track status of the job, use the [az backup job show](/cli/azure/backup/job#az-backup-job-show) cmdlet.
76
76
77
-
## Trigger an on-demand backup for file share
77
+
## Trigger an on-demand backup for File Share
78
78
79
-
If you want to trigger an on-demand backup for your file share instead of waiting for the backup policy to run the job at the scheduled time, use the [az backup protection backup-now](/cli/azure/backup/protection#az-backup-protection-backup-now) cmdlet.
79
+
If you want to trigger an on-demand backup for your File Share instead of waiting for the backup policy to run the job at the scheduled time, use the [az backup protection backup-now](/cli/azure/backup/protection#az-backup-protection-backup-now) cmdlet.
80
80
81
81
You need to define the following parameters to trigger an on-demand backup:
82
82
83
-
***--container-name** is the name of the storage account hosting the file share. To retrieve the **name** or **friendly name** of your container, use the [az backup container list](/cli/azure/backup/container#az-backup-container-list) command.
84
-
***--item-name** is the name of the file share for which you want to trigger an on-demand backup. To retrieve the **name** or **friendly name** of your backed-up item, use the [az backup item list](/cli/azure/backup/item#az-backup-item-list) command.
83
+
***--container-name** is the name of the storage account hosting the File Share. To retrieve the **name** or **friendly name** of your container, use the [az backup container list](/cli/azure/backup/container#az-backup-container-list) command.
84
+
***--item-name** is the name of the File Share for which you want to trigger an on-demand backup. To retrieve the **name** or **friendly name** of your backed-up item, use the [az backup item list](/cli/azure/backup/item#az-backup-item-list) command.
85
85
***--retain-until** specifies the date until when you want to retain the recovery point. The value should be set in UTC time format (dd-mm-yyyy).
86
86
87
87
The following example triggers an on-demand backup for the *azurefiles* fileshare in the *afsaccount* storage account with retention until *20-01-2020*.
@@ -100,5 +100,5 @@ The **Name** attribute in the output corresponds to the name of the job that's c
100
100
101
101
## Next steps
102
102
103
-
* Learn how to [Restore Azure file shares with CLI](restore-afs-cli.md)
104
-
* Learn how to [Manage Azure file share backups with CLI](manage-afs-backup-cli.md)
103
+
* Learn how to [Restore Azure Files with CLI](restore-afs-cli.md)
104
+
* Learn how to [Manage Azure Files backups with CLI](manage-afs-backup-cli.md)
Copy file name to clipboardExpand all lines: articles/backup/quick-backup-azure-files-vault-tier-arm.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,21 +11,21 @@ author: jyothisuri
11
11
ms.author: jsuri
12
12
---
13
13
14
-
# Quickstart: Configure vaulted backup for Azure File share using Azure Resource Manager
14
+
# Quickstart: Configure vaulted backup for Azure Files using Azure Resource Manager
15
15
16
-
This quickstart describes how to configure vaulted backup for Azure File share using Azure Resource Manager (ARM) template.
16
+
This quickstart describes how to configure vaulted backup for Azure Files using Azure Resource Manager (ARM) template.
17
17
18
-
Azure Backup supports configuring snapshot and vaulted backups for Azure File shares in your storage accounts. Vaulted backup offers an offsite solution, storing data in a general v2 storage account to protect against ransomware and malicious admin actions.
18
+
Azure Backup supports configuring [snapshot](azure-file-share-backup-overview.md?tabs=snapshot) and [vaulted](azure-file-share-backup-overview.md?tabs=vault-standard) backups for Azure Files in your storage accounts. Vaulted backup offers an offsite solution, storing data in a general v2 storage account to protect against ransomware and malicious admin actions.
19
19
20
20
An Azure Resource Manager template is a JavaScript Object Notation (JSON) that defines your project's infrastructure and configuration using declarative syntax. It allows you to specify your intended deployment without writing programming commands.
21
21
22
22
## Prerequisites
23
23
24
-
Before you configure vaulted backup for Azure Files, ensure that you have a storage account with an existing file share. To create a new storage account and file share, see [create an Azure storage account with file share template](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.storage/storage-file-share).
24
+
Before you configure vaulted backup for Azure Files, ensure that you have a storage account with an existing File Share. To create a new storage account and File Share, see [create an Azure storage account with File Share template](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.storage/storage-file-share).
25
25
26
26
## Review the template
27
27
28
-
The [Azure Quickstart Template](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.recoveryservices/recovery-services-backup-file-share) configures protection for an existing File share in a Storage Account. It creates or uses a Recovery Services Vault and Backup Policy based on parameter values.
28
+
The [Azure Quickstart Template](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.recoveryservices/recovery-services-backup-file-share) configures protection for an existing File Share in a Storage Account. It creates or uses a Recovery Services Vault and Backup Policy based on parameter values.
Copy file name to clipboardExpand all lines: articles/backup/quick-backup-azure-files-vault-tier-bicep.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,11 @@ author: jyothisuri
11
11
ms.author: jsuri
12
12
---
13
13
14
-
# Quickstart: Configure vaulted backup for Azure File share using Azure Bicep
14
+
# Quickstart: Configure vaulted backup for Azure Files using Azure Bicep
15
15
16
-
This quickstart describes how to configure vaulted backup for Azure File share using Azure Bicep template.
16
+
This quickstart describes how to configure vaulted backup for Azure Files using Azure Bicep template.
17
17
18
-
[Azure Backup](backup-overview.md) supports configuring [snapshot](azure-file-share-backup-overview.md?tabs=snapshot) and [vaulted](azure-file-share-backup-overview.md?tabs=vault-standard) backups for Azure File shares in your storage accounts. Vaulted backup offers an offsite solution, storing data in a general v2 storage account to protect against ransomware and malicious admin actions.
18
+
[Azure Backup](backup-overview.md) supports configuring [snapshot](azure-file-share-backup-overview.md?tabs=snapshot) and [vaulted](azure-file-share-backup-overview.md?tabs=vault-standard) backups for Azure Files in your storage accounts. Vaulted backup offers an offsite solution, storing data in a general v2 storage account to protect against ransomware and malicious admin actions.
19
19
20
20
Bicep is a language for declaratively deploying Azure resources, offering a simpler syntax and better development experience compared to JSON. It abstracts ARM template JSON, providing all its capabilities. During deployment, the Bicep CLI converts a Bicep file into Azure Resource Manager (ARM) template JSON. A Bicep file specifies Azure resources and properties without needing programming commands. Resource types, API versions, and properties valid in ARM templates are also valid in Bicep files.
21
21
@@ -29,7 +29,7 @@ Before you configure vaulted backup for Azure Files, ensure that you set up your
29
29
30
30
## Review the template
31
31
32
-
The [Azure Quickstart Template](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.recoveryservices/recovery-services-backup-file-share) configures protection for an existing File share in a Storage Account. It creates or uses a Recovery Services Vault and Backup Policy based on parameter values.
32
+
The [Azure Quickstart Template](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.recoveryservices/recovery-services-backup-file-share) configures protection for an existing File Share in a Storage Account. It creates or uses a Recovery Services Vault and Backup Policy based on parameter values.
33
33
34
34
```json
35
35
@description('Name of the existing Resource Group in which the existing Storage Account is present.')
Copy file name to clipboardExpand all lines: articles/backup/quick-backup-azure-files-vault-tier-portal.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ ms.author: jsuri
13
13
14
14
# Quickstart: Configure vaulted backup for Azure Files using Azure portal
15
15
16
-
This quickstart describes how to configure vaulted backup for Azure Files using the Azure portal. You can also configure backup with Azure CLI or Azure PowerShell.
16
+
This quickstart describes how to configure vaulted backup for Azure Files using the Azure portal. You can also configure backup with [Azure CLI](quick-backup-azure-files-vault-tier-cli.md) or [Azure PowerShell](quick-backup-azure-files-vault-tier-powershell.md).
17
17
18
18
[Azure Backup](backup-overview.md) supports configuring [snapshot](azure-file-share-backup-overview.md?tabs=snapshot) and [vaulted](azure-file-share-backup-overview.md?tabs=vault-standard) backups for Azure Files in your storage accounts. Vaulted backups offer an offsite solution, storing data in a general v2 storage account to protect against ransomware and malicious admin actions. You can:
Copy file name to clipboardExpand all lines: articles/backup/quick-backup-azure-files-vault-tier-powershell.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ ms.author: jsuri
13
13
14
14
# Quickstart: Configure vaulted backup for Azure Files using Azure PowerShell
15
15
16
-
This quickstart describes how to configure vaulted backup for Azure Files using Azure PowerShell. You can also configure backup with Azure CLI or in the Azure portal.
16
+
This quickstart describes how to configure vaulted backup for Azure Files using Azure PowerShell. You can also configure backup with [Azure CLI](quick-backup-azure-files-vault-tier-cli.md) or in the [Azure portal](quick-backup-azure-files-vault-tier-portal.md).
17
17
18
18
[Azure Backup](backup-overview.md) supports configuring [snapshot](azure-file-share-backup-overview.md?tabs=snapshot) and [vaulted](azure-file-share-backup-overview.md?tabs=vault-standard) backups for Azure Files in your storage accounts. Vaulted backups offer an offsite solution, storing data in a general v2 storage account to protect against ransomware and malicious admin actions. You can:
19
19
@@ -28,16 +28,16 @@ Before you configure vaulted backup for Azure Files, ensure that the following p
28
28
- Ensure that File Share is in a supported storage account type. See the [Azure Files backup support matrix](azure-file-share-support-matrix.md).
29
29
30
30
- Allow **Azure services on the trusted services list** in the **Firewall settings** to access the storage account, if access is restricted. Learn [how to grant an exception](/azure/storage/common/storage-network-security?tabs=azure-portal#manage-exceptions).
31
-
- Use an existing Recovery Services vault. If you don't have the vault, [create one](backup-azure-afs-automation.md#create-a-recovery-services-vault).
32
-
-[Configure a Backup policy](backup-azure-afs-automation.md#configure-a-backup-policy) for the backup operation.
31
+
- Use an existing Recovery Services vault. If you don't have the vault, [create one](backup-azure-afs-automation.md?tabs=vault-standard#create-a-recovery-services-vault).
32
+
-[Configure a Backup policy](backup-azure-afs-automation.md?tabs=vault-standard#configure-a-backup-policy) for the backup operation.
33
33
34
34
## Configure backup
35
35
36
36
To configure vaulted backup for Azure Files, use the [`Enable-AzRecoveryServicesBackupProtection`](/powershell/module/az.recoveryservices/enable-azrecoveryservicesbackupprotection) cmdlet.
37
37
38
38
>[!Note]
39
39
>After the policy is associated with the vault, backups are triggered in accordance with the policy schedule.
40
-
The following example cmdlet configures protection for the Azure file share`testAzureFS` in storage account `testStorageAcct`, with the policy `dailyafs`:
40
+
The following example cmdlet configures protection for the Azure Files`testAzureFS` in storage account `testStorageAcct`, with the policy `dailyafs`:
0 commit comments