Skip to content

Commit ea45fd6

Browse files
Merge pull request #294503 from AbhishekMallick01/Feb-12-2025-AFSv2
AF Backup - Workload name update as per guideline
2 parents c046c84 + 54ade6b commit ea45fd6

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

articles/backup/backup-azure-file-share-rest-api.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
2-
title: Back up Azure file shares with REST API
3-
description: Learn how to use REST API to back up Azure file shares in the Recovery Services vault
2+
title: Back up Azure Files with REST API
3+
description: Learn how to use REST API to back up Azure Files in the Recovery Services vault
44
ms.topic: how-to
5-
ms.date: 02/09/2025
5+
ms.date: 03/05/2025
66
author: jyothisuri
77
ms.author: jsuri
88
---
99

10-
# Backup Azure file share using Azure Backup via REST API
10+
# Backup Azure Files using Azure Backup via REST API
1111

12-
This article describes how to back up an Azure File share using Azure Backup via REST API.
12+
This article describes how to back up an Azure Files using Azure Backup via REST API.
1313

14-
This article assumes you've already created a Recovery Services vault and policy for configuring backup for your file share. If you haven’t, refer to the [create vault](./backup-azure-arm-userestapi-createorupdatevault.md) and [create policy](./backup-azure-arm-userestapi-createorupdatepolicy.md) REST API tutorials for creating new vaults and policies.
14+
This article assumes you've already created a Recovery Services vault and policy for configuring backup for your File Share. If you haven’t, refer to the [create vault](./backup-azure-arm-userestapi-createorupdatevault.md) and [create policy](./backup-azure-arm-userestapi-createorupdatepolicy.md) REST API tutorials for creating new vaults and policies.
1515

1616
For this article, we'll use the following resources:
1717

@@ -25,11 +25,11 @@ For this article, we'll use the following resources:
2525

2626
- **File Share**: `testshare`
2727

28-
## Configure backup for an unprotected Azure file share using REST API
28+
## Configure backup for an unprotected Azure Files using REST API
2929

30-
### Discover storage accounts with unprotected Azure file shares
30+
### Discover storage accounts with unprotected Azure Files
3131

32-
The vault needs to discover all Azure storage accounts in the subscription with file shares that can be backed up to the Recovery Services vault. This is triggered using the [refresh operation](/rest/api/backup/protection-containers/refresh). It's an asynchronous *POST* operation that ensures the vault gets the latest list of all unprotected Azure File shares in the current subscription and 'caches' them. Once the file share is 'cached', Recovery services can access the file share and protect it.
32+
The vault needs to discover all Azure storage accounts in the subscription with File Shares that can be backed up to the Recovery Services vault. This is triggered using the [refresh operation](/rest/api/backup/protection-containers/refresh). It's an asynchronous *POST* operation that ensures the vault gets the latest list of all unprotected Azure File Shares in the current subscription and 'caches' them. Once the File Share is 'cached', Recovery services can access the File Share and protect it.
3333

3434
```http
3535
POST https://management.azure.com/Subscriptions/{subscriptionId}/resourceGroups/{vaultresourceGroupname}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/refreshContainers?api-version=2016-12-01&$filter={$filter}
@@ -86,7 +86,7 @@ Track the resulting operation using the "Location" header with a simple *GET* co
8686
GET https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azurefiles/providers/Microsoft.RecoveryServices/vaults/azurefilesvault/backupFabrics/Azure/operationResults/cca47745-12d2-42f9-b3a4-75335f18fdf6?api-version=2016-12-01
8787
```
8888

89-
Once all the Azure Storage accounts are discovered, the GET command returns a 204 (No Content) response. The vault is now able to discover any storage account with file shares that can be backed up within the subscription.
89+
Once all the Azure Storage accounts are discovered, the GET command returns a 204 (No Content) response. The vault is now able to discover any storage account with File Shares that can be backed up within the subscription.
9090

9191
```http
9292
HTTP/1.1 200 NoContent
@@ -103,9 +103,9 @@ x-ms-routing-request-id : CENTRALUSEUAP:20200127T105304Z:d9bdb266-8349-4dbd-968
103103
Date : Mon, 27 Jan 2020 10:53:04 GMT
104104
```
105105

106-
### Get List of storage accounts with file shares that can be backed up with Recovery Services vault
106+
### Get List of storage accounts with File Shares that can be backed up with Recovery Services vault
107107

108-
To confirm that “caching” is done, list all the storage accounts in the subscription with file shares that can be backed up with the Recovery Services vault. Then locate the desired storage account in the response. This is done using the [GET ProtectableContainers](/rest/api/backup/protectable-containers/list) operation.
108+
To confirm that “caching” is done, list all the storage accounts in the subscription with File Shares that can be backed up with the Recovery Services vault. Then locate the desired storage account in the response. This is done using the [GET ProtectableContainers](/rest/api/backup/protectable-containers/list) operation.
109109

110110
```http
111111
GET https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azurefiles/providers/Microsoft.RecoveryServices/vaults/azurefilesvault/backupFabrics/Azure/protectableContainers?api-version=2016-12-01&$filter=backupManagementType eq 'AzureStorage'
@@ -271,9 +271,9 @@ x-ms-routing-request-id : CENTRALUSEUAP:20200127T105305Z:68727f1e-b8cf-4bf1-bf
271271
Date : Mon, 27 Jan 2020 10:53:05 GMT
272272
```
273273

274-
### Select the file share you want to back up
274+
### Select the File Share you want to back up
275275

276-
You can list all protectable items under the subscription and locate the desired file share to be backed up using the [GET backupprotectableItems](/rest/api/backup/backup-protectable-items/list) operation.
276+
You can list all protectable items under the subscription and locate the desired File Share to be backed up using the [GET backupprotectableItems](/rest/api/backup/backup-protectable-items/list) operation.
277277

278278
```http
279279
GET https://management.azure.com/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectableItems?api-version=2016-12-01&$filter={$filter}
@@ -344,11 +344,11 @@ Status Code:200
344344
}
345345
```
346346

347-
The response contains the list of all unprotected file shares and contains all the information required by the Azure Recovery Service to configure the backup.
347+
The response contains the list of all unprotected File Shares and contains all the information required by the Azure Recovery Service to configure the backup.
348348

349-
### Enable backup for the file share
349+
### Enable backup for the File Share
350350

351-
After the relevant file share is "identified" with the friendly name, select the policy to protect. To learn more about existing policies in the vault, refer to [list Policy API](/rest/api/backup/backup-policies/list). Then select the [relevant policy](/rest/api/backup/protection-policies/get) by referring to the policy name. To create policies, refer to [create policy tutorial](./backup-azure-arm-userestapi-createorupdatepolicy.md).
351+
After the relevant File Share is "identified" with the friendly name, select the policy to protect. To learn more about existing policies in the vault, refer to [list Policy API](/rest/api/backup/backup-policies/list). Then select the [relevant policy](/rest/api/backup/protection-policies/get) by referring to the policy name. To create policies, refer to [create policy tutorial](./backup-azure-arm-userestapi-createorupdatepolicy.md).
352352

353353
Enabling protection is an asynchronous *PUT* operation that creates a "protected item".
354354

@@ -358,7 +358,7 @@ PUT https://management.azure.com/Subscriptions/{subscriptionId}/resourceGroups/{
358358

359359
Set the **containername** and **protecteditemname** variables using the ID attribute in the response body of the GET backupprotectableitems operation.
360360

361-
In our example, the ID of file share we want to protect is:
361+
In our example, the ID of File Share we want to protect is:
362362

363363
```output
364364
"/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azurefiles/providers/Microsoft.RecoveryServices/vaults/azurefilesvault/backupFabrics/Azure/protectionContainers/storagecontainer;storage;azurefiles;testvault2/protectableItems/azurefileshare;testshare
@@ -442,11 +442,11 @@ Sample Response Body:
442442
}
443443
```
444444

445-
This confirms that protection is enabled for the file share and the first backup will be triggered according to the policy schedule.
445+
This confirms that protection is enabled for the File Share and the first backup will be triggered according to the policy schedule.
446446

447-
## Trigger an on-demand backup for file share
447+
## Trigger an on-demand backup for File Share
448448

449-
Once an Azure file share is configured for backup, backups run according to the policy schedule. You can wait for the first scheduled backup or trigger an on-demand backup anytime.
449+
Once an Azure Files is configured for backup, backups run according to the policy schedule. You can wait for the first scheduled backup or trigger an on-demand backup anytime.
450450

451451
Triggering an on-demand backup is a POST operation.
452452

@@ -541,4 +541,4 @@ Since the backup job is a long running operation, it needs to be tracked as expl
541541

542542
## Next steps
543543

544-
- Learn how to [restore Azure file shares using REST API](restore-azure-file-share-rest-api.md).
544+
- Learn how to [restore Azure Files using REST API](restore-azure-file-share-rest-api.md).

articles/backup/backup-support-automation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ You can automate most backup related tasks using programmatic methods in Azure
7272

7373
| **Category** | **Operation** | **PowerShell** | **CLI** | **REST API** | **Azure Policy** | **ARM Template** | **Bicep** | **Terraform** |
7474
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
75-
| Backup | Create backup policy and configure backup | Supported <br><br> [See the examples](./backup-azure-afs-automation.md#configure-a-backup-policy). | Supported <br><br> [See the examples](./backup-afs-cli.md#enable-backup-for-azure-files). | Supported <br><br> [See the examples](./backup-azure-file-share-rest-api.md#configure-backup-for-an-unprotected-azure-file-share-using-rest-api). | Currently not supported | Supported <br><br> [See the examples](./backup-rm-template-samples.md). | Supported | Supported <br><br> [See the examples](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/backup_protected_file_share). |
75+
| Backup | Create backup policy and configure backup | Supported <br><br> [See the examples](./backup-azure-afs-automation.md#configure-a-backup-policy). | Supported <br><br> [See the examples](./backup-afs-cli.md#enable-backup-for-azure-files). | Supported <br><br> [See the examples](./backup-azure-file-share-rest-api.md#configure-backup-for-an-unprotected-azure-files-using-rest-api). | Currently not supported | Supported <br><br> [See the examples](./backup-rm-template-samples.md). | Supported | Supported <br><br> [See the examples](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/backup_protected_file_share). |
7676
| Backup | Run on-demand backup | Supported <br><br> [See the examples](./backup-azure-afs-automation.md#trigger-an-on-demand-backup). | Supported <br><br> [See the examples](./backup-afs-cli.md#trigger-an-on-demand-backup-for-file-share). | Supported <br><br> [See the examples](./backup-azure-file-share-rest-api.md#trigger-an-on-demand-backup-for-file-share). | N/A | N/A | N/A | N/A |
7777
| Restore | Restore to original or alternate location | Supported <br><br> [See the examples](./restore-afs-powershell.md). | Supported <br><br> [See the examples](./restore-afs-cli.md). | Supported <br><br> [See the examples](./restore-azure-file-share-rest-api.md). | N/A | N/A |N/A | N/A |
7878
| Manage | Monitor jobs | Supported <br><br> [See the examples](./manage-afs-powershell.md#track-backup-and-restore-jobs). | Supported <br><br> [See the examples](./manage-afs-backup-cli.md#monitor-jobs). | Supported <br><br> [See the examples](./manage-azure-file-share-rest-api.md#monitor-jobs). | N/A | N/A |N/A | N/A |

0 commit comments

Comments
 (0)