Skip to content

Commit a9fe208

Browse files
author
David Curwin
committed
added missing links
1 parent ad3e0e4 commit a9fe208

File tree

3 files changed

+19
-21
lines changed

3 files changed

+19
-21
lines changed

articles/backup/tutorial-sap-hana-backup-cli.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ westus2 saphanaVault saphanaResourceGroup
6565

6666
For the SAP HANA instance (the VM with SAP HANA installed on it) to be discovered by the Azure services, a [pre-registration script](https://aka.ms/scriptforpermsonhana) must be run on the SAP HANA machine. Make sure that all the [prerequisites](https://docs.microsoft.com/azure/backup/tutorial-backup-sap-hana-db#prerequisites) are met before running the script. To learn more about what the script does, refer to the [setting up permissions](https://docs.microsoft.com/azure/backup/tutorial-backup-sap-hana-db#setting-up-permissions) section.
6767

68-
Once the script is run, the SAP HANA instance can be registered with the recovery services vault we created earlier. To register the instance, use the [az backup container register]() cmdlet. *VMResourceId* is the resource ID of the VM that you created to install SAP HANA.
68+
Once the script is run, the SAP HANA instance can be registered with the recovery services vault we created earlier. To register the instance, use the [az backup container register](https://docs.microsoft.com/cli/azure/backup/container?view=azure-cli-latest#az-backup-container-register) cmdlet. *VMResourceId* is the resource ID of the VM that you created to install SAP HANA.
6969

7070
```azurecli-interactive
7171
az backup container register --resource-group saphanaResourceGroup \
@@ -79,9 +79,9 @@ az backup container register --resource-group saphanaResourceGroup \
7979
>[!NOTE]
8080
>If the VM is not in the same resource group as the vault, then *saphanaResourceGroup* refers to the resource group where the vault was created.
8181
82-
Registering the SAP HANA instance automatically discovers all its current databases. However, to discover any new databases that may be added in the future refer to the [Discovering new databases added to the registered SAP HANA]() instance section.
82+
Registering the SAP HANA instance automatically discovers all its current databases. However, to discover any new databases that may be added in the future refer to the [Discovering new databases added to the registered SAP HANA](tutorial-sap-hana-manage-cli.md#protect-new-databases-added-to-an-sap-hana-instance) instance section.
8383

84-
To check if the SAP HANA instance is successfully registered with your vault, use the [az backup container list]() cmdlet. You'll see the following response:
84+
To check if the SAP HANA instance is successfully registered with your vault, use the [az backup container list](https://docs.microsoft.com/cli/azure/backup/container?view=azure-cli-latest#az-backup-container-list) cmdlet. You'll see the following response:
8585

8686
```output
8787
Name Friendly Name Resource Group Type Registration Status
@@ -93,7 +93,7 @@ Note that “name” in the above output refers to the container name, this cont
9393

9494
## Enable backup on SAP HANA database
9595

96-
The [az backup protectable-item list]() cmdlet lists out all the databases discovered on the SAP HANA instance that you registered in the previous step.
96+
The [az backup protectable-item list](https://docs.microsoft.com/cli/azure/backup/protectable-item?view=azure-cli-latest#az-backup-protectable-item-list) cmdlet lists out all the databases discovered on the SAP HANA instance that you registered in the previous step.
9797

9898
```azurecli-interactive
9999
az backup protectable-item list --resource-group saphanaResourceGroup \
@@ -114,7 +114,7 @@ saphanadatabase;hxe;hxe SAPHanaDatabase HXE hxehost
114114

115115
As you can see from the above output, the SID of the SAP HANA system is HXE. In this tutorial, we'll configure backup for the *saphanadatabase;hxe;hxe* database that resides on the *hxehost* server.
116116

117-
To protect and configure backup on a database, one at a time, we use the [az backup protection enable-for-azurewl]() cmdlet. Provide the name of the policy that you want to use. To create a policy using CLI, use the [az backup policy create](https://docs.microsoft.com//cli/azure/backup/policy?view=azure-cli-latest#az-backup-policy-create) cmdlet. For this tutorial, we'll be using the *sapahanaPolicy* policy.
117+
To protect and configure backup on a database, one at a time, we use the [az backup protection enable-for-azurewl](https://docs.microsoft.com/cli/azure/backup/protection?view=azure-cli-latest#az-backup-protection-enable-for-azurewl) cmdlet. Provide the name of the policy that you want to use. To create a policy using CLI, use the [az backup policy create](https://docs.microsoft.com//cli/azure/backup/policy?view=azure-cli-latest#az-backup-policy-create) cmdlet. For this tutorial, we'll be using the *sapahanaPolicy* policy.
118118

119119
```azurecli-interactive
120120
az backup protection enable-for-azurewl --resource-group saphanaResourceGroup \
@@ -170,6 +170,6 @@ The response will give you the job name. This job name can be used to track the
170170
171171
## Next steps
172172

173-
* To learn how to restore an SAP HANA database in Azure VM using CLI, continue to the tutorial – [Restore an SAP HANA database in Azure VM using CLI]()
173+
* To learn how to restore an SAP HANA database in Azure VM using CLI, continue to the tutorial – [Restore an SAP HANA database in Azure VM using CLI](tutorial-sap-hana-restore-cli.md)
174174

175-
* To learn how to back up an SAP HANA database running in Azure VM using Azure portal, refer to [Backup an SAP HANA databases on Azure VMs](https://docs.microsoft.com/azure/backup/backup-azure-sap-hana-database-troubleshoot)
175+
* To learn how to back up an SAP HANA database running in Azure VM using Azure portal, refer to [Backup an SAP HANA databases on Azure VMs](https://docs.microsoft.com/azure/backup/backup-azure-sap-hana-database)

articles/backup/tutorial-sap-hana-manage-cli.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ cb110094-9b15-4c55-ad45-6899200eb8dd SAPHANA
7676

7777
[Registering an SAP HANA instance with a recovery services vault](tutorial-sap-hana-backup-cli.md#register-and-protect-the-sap-hana-instance) automatically discovers all the databases on this instance.
7878

79-
However, in cases when new databases are added to the SAP HANA instance later, use the [az backup protectable-item initialize]() cmdlet. This cmdlet discovers the new databases added.
79+
However, in cases when new databases are added to the SAP HANA instance later, use the [az backup protectable-item initialize](https://docs.microsoft.com/cli/azure/backup/protectable-item?view=azure-cli-latest#az-backup-protectable-item-initialize) cmdlet. This cmdlet discovers the new databases added.
8080

8181
```azurecli-interactive
8282
az backup protectable-item initialize --resource-group saphanaResourceGroup \
@@ -85,7 +85,7 @@ az backup protectable-item initialize --resource-group saphanaResourceGroup \
8585
--workload-type SAPHANA
8686
```
8787

88-
Then use the [az backup protectable-item list]() cmdlet to list all the databases that have been discovered on your SAP HANA instance. This list, however, excludes those databases on which backup has already been configured. Once the database to be backed-up is discovered, refer to [Enable backup on SAP HANA database](tutorial-sap-hana-backup-cli.md#enable-backup-on-sap-hana-database).
88+
Then use the [az backup protectable-item list](https://docs.microsoft.com/cli/azure/backup/protectable-item?view=azure-cli-latest#az-backup-protectable-item-list) cmdlet to list all the databases that have been discovered on your SAP HANA instance. This list, however, excludes those databases on which backup has already been configured. Once the database to be backed-up is discovered, refer to [Enable backup on SAP HANA database](tutorial-sap-hana-backup-cli.md#enable-backup-on-sap-hana-database).
8989

9090
```azurecli-interactive
9191
az backup protectable-item list --resource-group saphanaResourceGroup \
@@ -170,7 +170,7 @@ To check the status of this operation, use the [az backup job show](https://docs
170170

171171
When you stop protection for the SAP HANA database with retain data, you can later resume protection. If you don't retain the backed-up data, you won't be able to resume protection.
172172

173-
To resume protection, use the [az backup protection resume]() cmdlet.
173+
To resume protection, use the [az backup protection resume](https://docs.microsoft.com/cli/azure/backup/protection?view=azure-cli-latest#az-backup-protection-resume) cmdlet.
174174

175175
```azurecli-interactive
176176
az backup protection resume --resource-group saphanaResourceGroup \

articles/backup/tutorial-sap-hana-restore-cli.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This tutorial assumes you have an SAP HANA database running on Azure VM that is
2828

2929
## View restore points for a backed-up database
3030

31-
To view the list of all the recovery points for a database, use the [az backup recoverypoint list](https://docs.microsoft.com/cli/azure/backup/recoverypoint?view=azure-cli-latest#az-backup-recoverypoint-list) cmdlet as follows:
31+
To view the list of all the recovery points for a database, use the [az backup recoverypoint list](https://docs.microsoft.com/cli/azure/backup/recoverypoint?view=azure-cli-latest#az-backup-recoverypoint-show-log-chain) cmdlet as follows:
3232

3333
```azurecli-interactive
3434
az backup recoverypoint list --resource-group saphanaResourceGroup \
@@ -51,7 +51,7 @@ DefaultRangeRecoveryPoint AzureWorkload
5151
As you can see, the list above contains three recovery points: one each for full, differential, and log backup.
5252

5353
>[!NOTE]
54-
>You can also view the start and end points of every unbroken log backup chain, using the [az backup recoverypoint show-log-chain]() cmdlet.
54+
>You can also view the start and end points of every unbroken log backup chain, using the [az backup recoverypoint show-log-chain](https://docs.microsoft.com/cli/azure/backup/recoverypoint?view=azure-cli-latest#az-backup-recoverypoint-show-log-chain) cmdlet.
5555
5656
## Prerequisites to restore a database
5757

@@ -68,7 +68,7 @@ Azure Backup can restore SAP HANA databases that are running on Azure VMs as fol
6868
* Restore to a specific date or time (to the second) by using log backups. Azure Backup automatically determines the appropriate full, differential backups and the chain of log backups that are required to restore based on the selected time.
6969
* Restore to a specific full or differential backup to restore to a specific recovery point.
7070

71-
To restore a database, use the [az restore restore-azurewl]() cmdlet, which requires a recovery config object as one of the inputs. This object can be generated using the [az backup recoveryconfig show]() cmdlet. The recovery config object contains all the details to perform a restore. One of them being the restore mode – **OriginalWorkloadRestore** or **AlternateWorkloadRestore**.
71+
To restore a database, use the [az restore restore-azurewl](https://docs.microsoft.com/cli/azure/backup/restore?view=azure-cli-latest#az-backup-restore-restore-azurewl) cmdlet, which requires a recovery config object as one of the inputs. This object can be generated using the [az backup recoveryconfig show](https://docs.microsoft.com/cli/azure/backup/recoveryconfig?view=azure-cli-latest#az-backup-recoveryconfig-show) cmdlet. The recovery config object contains all the details to perform a restore. One of them being the restore mode – **OriginalWorkloadRestore** or **AlternateWorkloadRestore**.
7272

7373
>[!NOTE]
7474
> **OriginalWorkloadRestore** - Restore the data to the same SAP HANA instance as the original source. This option overwrites the original database. <br>
@@ -78,11 +78,9 @@ To restore a database, use the [az restore restore-azurewl]() cmdlet, which requ
7878

7979
To restore a database to an alternate location, use **AlternateWorkloadRestore** as the restore mode. You must then choose the restore point, which could either be a previous point-in-time or any of the previous restore points.
8080

81-
In this tutorial, you'll restore to a previous restore point. [View the list of restore points]() for the database and choose the point you want to restore to. This tutorial will use the restore point with the name *7660777527047692711*.
81+
In this tutorial, you'll restore to a previous restore point. [View the list of restore points](#view-restore-points-for-a-backed-up-database) for the database and choose the point you want to restore to. This tutorial will use the restore point with the name *7660777527047692711*.
8282

83-
Using the above restore point name and the restore mode, let's create the recovery config object using the [az backup recoveryconfig show]() cmdlet.
84-
85-
Let's look at what each of the remaining parameters in the [az backup recoveryconfig show]() cmdlet mean:
83+
Using the above restore point name and the restore mode, let's create the recovery config object using the [az backup recoveryconfig show](https://docs.microsoft.com/cli/azure/backup/recoveryconfig?view=azure-cli-latest#az-backup-recoveryconfig-show) cmdlet. Let's look at what each of the remaining parameters in this cmdlet mean:
8684

8785
* **--target-item-name** This is the name that the restored database will be using. In this case, we used the name *restored_database*.
8886
* **--target-server-name** This is the name of an SAP HANA server that is successfully registered to a recovery services vault and lies in the same region as the database to be restored. For this tutorial, we'll restore the database to the same SAP HANA server that we have protected, named *hxehost*.
@@ -109,7 +107,7 @@ The response to the above query will be a recovery config object that looks some
109107
"{\"restore_mode\": \"OriginalLocation\", \"container_uri\": \" VMAppContainer;Compute;saphanaResourceGroup;saphanaVM \", \"item_uri\": \"SAPHanaDatabase;hxe;hxe\", \"recovery_point_id\": \"DefaultRangeRecoveryPoint\", \"log_point_in_time\": \"28-11-2019-09:53:00\", \"item_type\": \"SAPHana\", \"source_resource_id\": \"/subscriptions/ef4ab5a7-c2c0-4304-af80-af49f48af3d1/resourceGroups/saphanaResourceGroup/providers/Microsoft.Compute/virtualMachines/saphanavm\", \"database_name\": null, \"container_id\": null, \"alternate_directory_paths\": null}"
110108
```
111109

112-
Now, to restore the database run the [az restore restore-azurewl]() cmdlet. To use this command, we will enter the above json output that is saved to a file named *recoveryconfig.json*.
110+
Now, to restore the database run the [az restore restore-azurewl](https://docs.microsoft.com/cli/azure/backup/restore?view=azure-cli-latest#az-backup-restore-restore-azurewl) cmdlet. To use this command, we will enter the above json output that is saved to a file named *recoveryconfig.json*.
113111

114112
```azurecli-interactive
115113
az backup restore restore-azurewl --resource-group saphanaResourceGroup \
@@ -132,7 +130,7 @@ The response will give you the job name. This job name can be used to track the
132130

133131
To restore to the original location, we'll use **OrignialWorkloadRestore** as the restore mode. You must then choose the restore point, which could either be a previous point-in-time or any of the previous restore points.
134132

135-
For this tutorial, we'll choose the previous point-in-time “28-11-2019-09:53:00” to restore to. You can provide this restore point in the following formats: dd-mm-yyyy, dd-mm-yyyy-hh:mm:ss. To choose a valid point-in-time to restore to, use the [az backup recoverypoint show-log-chain]() cmdlet, which lists the intervals of unbroken log chain backups.
133+
For this tutorial, we'll choose the previous point-in-time “28-11-2019-09:53:00” to restore to. You can provide this restore point in the following formats: dd-mm-yyyy, dd-mm-yyyy-hh:mm:ss. To choose a valid point-in-time to restore to, use the [az backup recoverypoint show-log-chain](https://docs.microsoft.com/cli/azure/backup/recoverypoint?view=azure-cli-latest#az-backup-recoverypoint-show-log-chain) cmdlet, which lists the intervals of unbroken log chain backups.
136134

137135
```azurecli-interactive
138136
az backup recoveryconfig show --resource-group saphanaResourceGroup \
@@ -150,7 +148,7 @@ The response to the above query will be a recovery config object that looks as f
150148
"{\"restore_mode\": \"OriginalLocation\", \"container_uri\": \" VMAppContainer;Compute;saphanaResourceGroup;saphanaVM \", \"item_uri\": \"SAPHanaDatabase;hxe;hxe\", \"recovery_point_id\": \"DefaultRangeRecoveryPoint\", \"log_point_in_time\": \"28-11-2019-09:53:00\", \"item_type\": \"SAPHana\", \"source_resource_id\": \"/subscriptions/ef4ab5a7-c2c0-4304-af80-af49f48af3d1/resourceGroups/saphanaResourceGroup/providers/Microsoft.Compute/virtualMachines/saphanavm\", \"database_name\": null, \"container_id\": null, \"alternate_directory_paths\": null}"
151149
```
152150

153-
Now, to restore the database run the [az restore restore-azurewl]() cmdlet. To use this command, we will enter the above json output that is saved to a file named *recoveryconfig.json*.
151+
Now, to restore the database run the [az restore restore-azurewl](https://docs.microsoft.com/cli/azure/backup/restore?view=azure-cli-latest#az-backup-restore-restore-azurewl) cmdlet. To use this command, we will enter the above json output that is saved to a file named *recoveryconfig.json*.
154152

155153
```azurecli-interactive
156154
az backup restore restore-azurewl --resource-group saphanaResourceGroup \
@@ -171,6 +169,6 @@ The response will give you the job name. This job name can be used to track the
171169

172170
## Next steps
173171

174-
* To learn how to manage a backed-up SAP HANA database in Azure VM using CLI, continue to the tutorial [Manage an SAP HANA database in Azure VM using CLI](tutorial-sap-hana-backup-cli.md)
172+
* To learn how to manage SAP HANA databases that are backed up using Azure CLI, continue to the tutorial [Manage an SAP HANA database in Azure VM using CLI](tutorial-sap-hana-backup-cli.md)
175173

176174
* To learn how to restore an SAP HANA database running in Azure VM using the Azure portal, refer to [Restore an SAP HANA databases on Azure VMs](https://docs.microsoft.com/azure/backup/sap-hana-db-restore)

0 commit comments

Comments
 (0)