Skip to content

Commit e7bab77

Browse files
Apply suggestions from code review
Co-authored-by: Abhishek Mallick <[email protected]>
1 parent e81429f commit e7bab77

7 files changed

+21
-21
lines changed

articles/backup/backup-azure-data-protection-use-rest-api-backup-postgresql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ GET https://management.azure.com/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx
257257
"innerError": {
258258
"code": "UserErrorMissingRequiredPermissions",
259259
"additionalInfo": {
260-
"DetailedNonLocalisedMessage": "Validate for Protection failed. Exception Message: The client 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb' with object id 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb' does not have authorization to perform action 'Microsoft.Authorization/roleAssignments/read' over scope '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/ossdemoRG/providers/Microsoft.DBforPostgreSQL/servers/testpostgresql/providers/Microsoft.Authorization' or the scope is invalid. If access was recently granted, please refresh your credentials."
260+
"DetailedNonLocalisedMessage": "Validate for Protection failed. Exception Message: The client '00001111-aaaa-2222-bbbb-3333cccc4444' with object id 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb' does not have authorization to perform action 'Microsoft.Authorization/roleAssignments/read' over scope '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/ossdemoRG/providers/Microsoft.DBforPostgreSQL/servers/testpostgresql/providers/Microsoft.Authorization' or the scope is invalid. If access was recently granted, please refresh your credentials."
261261
}
262262
},
263263
"isRetryable": false,

articles/backup/backup-azure-database-postgresql-flex-use-rest-api.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ After you set the relevant permissions to the vault and PostgreSQL flexible serv
5151
{
5252
"backupInstance": {
5353
"dataSourceInfo": {
54-
"resourceID": "/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourcegroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver",
54+
"resourceID": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourcegroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver",
5555
"resourceUri": "",
5656
"datasourceType": "Microsoft.DBforPostgreSQL/flexibleServers",
5757
"resourceName": "pgflextestserver",
@@ -60,7 +60,7 @@ After you set the relevant permissions to the vault and PostgreSQL flexible serv
6060
"objectType": "Datasource"
6161
},
6262
"dataSourceSetInfo": {
63-
"resourceID": "/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourcegroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver",
63+
"resourceID": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourcegroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver",
6464
"resourceUri": "",
6565
"datasourceType": "Microsoft.DBforPostgreSQL/flexibleServers",
6666
"resourceName": "pgflextestserver",
@@ -103,7 +103,7 @@ The request body that we prepared earlier will be used to provide details of the
103103
{
104104
"backupInstance": {
105105
"dataSourceInfo": {
106-
"resourceID": "/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourcegroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver",
106+
"resourceID": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourcegroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver",
107107
"resourceUri": "",
108108
"datasourceType": "Microsoft.DBforPostgreSQL/flexibleServers",
109109
"resourceName": "pgflextestserver",
@@ -112,7 +112,7 @@ The request body that we prepared earlier will be used to provide details of the
112112
"objectType": "Datasource"
113113
},
114114
"dataSourceSetInfo": {
115-
"resourceID": "/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourcegroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver",
115+
"resourceID": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourcegroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver",
116116
"resourceUri": "",
117117
"datasourceType": "Microsoft.DBforPostgreSQL/flexibleServers",
118118
"resourceName": "pgflextestserver",
@@ -257,7 +257,7 @@ GET https://management.azure.com/subscriptions/00001111-aaaa-2222-bbbb-3333cccc4
257257
"innerError": {
258258
"code": "UserErrorMissingRequiredPermissions",
259259
"additionalInfo": {
260-
"DetailedNonLocalisedMessage": "Validate for Protection failed. Exception Message: The client 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb' with object id 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb' does not have authorization to perform action 'Microsoft.Authorization/roleAssignments/read' over scope '/subscriptions/00001111-aaaa-2222-bbbb-3333cccc4444/resourceGroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver/providers/Microsoft.Authorization' or the scope is invalid. If access was recently granted, please refresh your credentials."
260+
"DetailedNonLocalisedMessage": "Validate for Protection failed. Exception Message: The client '00001111-aaaa-2222-bbbb-3333cccc4444' with object id 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb' does not have authorization to perform action 'Microsoft.Authorization/roleAssignments/read' over scope '/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver/providers/Microsoft.Authorization' or the scope is invalid. If access was recently granted, please refresh your credentials."
261261
}
262262
},
263263
"isRetryable": false,
@@ -328,7 +328,7 @@ We'll use the [same request body that we used to validate the backup request](ba
328328
"type": "Microsoft.DataProtection/backupvaults/backupInstances",
329329
"properties": {
330330
"dataSourceInfo": {
331-
"resourceID": "/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourcegroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver",
331+
"resourceID": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourcegroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver",
332332
"resourceUri": "",
333333
"datasourceType": "Microsoft.DBforPostgreSQL/flexibleServers",
334334
"resourceName": "pgflextestserver",
@@ -337,7 +337,7 @@ We'll use the [same request body that we used to validate the backup request](ba
337337
"objectType": "Datasource"
338338
},
339339
"dataSourceSetInfo": {
340-
"resourceID": "/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourcegroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver",
340+
"resourceID": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourcegroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver",
341341
"resourceUri": "",
342342
"datasourceType": "Microsoft.DBforPostgreSQL/flexibleServers",
343343
"resourceName": "pgflextestserver",
@@ -394,7 +394,7 @@ X-Powered-By: ASP.NET
394394
"properties": {
395395
"friendlyName": "pgflextestserver-857d23b1-c679-4c94-ade6-c4d34635e149",
396396
"dataSourceInfo": {
397-
"resourceID": "/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourcegroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver",
397+
"resourceID": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourcegroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver",
398398
"resourceUri": "",
399399
"datasourceType": "Microsoft.DBforPostgreSQL/flexibleServers",
400400
"resourceName": "pgflextestserver",
@@ -403,7 +403,7 @@ X-Powered-By: ASP.NET
403403
"objectType": "Datasource"
404404
},
405405
"dataSourceSetInfo": {
406-
"resourceID": "/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourcegroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver",
406+
"resourceID": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourcegroups/pgflextest/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflextestserver",
407407
"resourceUri": "",
408408
"datasourceType": "Microsoft.DBforPostgreSQL/flexibleServers",
409409
"resourceName": "pgflextestserver",

articles/backup/backup-azure-dataprotection-use-rest-api-backup-blobs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ GET https://management.azure.com/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx
313313
"innerError": {
314314
"code": "UserErrorMissingRequiredPermissions",
315315
"additionalInfo": {
316-
"DetailedNonLocalisedMessage": "Validate for Protection failed. Exception Message: The client 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb' with object id 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb' does not have authorization to perform action 'Microsoft.Authorization/roleAssignments/read' over scope '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/RG-BlobBackup/providers/Microsoft.Storage/storageAccounts/msblobbackup/providers/Microsoft.Authorization' or the scope is invalid. If access was recently granted, please refresh your credentials."
316+
"DetailedNonLocalisedMessage": "Validate for Protection failed. Exception Message: The client '00001111-aaaa-2222-bbbb-3333cccc4444' with object id 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb' does not have authorization to perform action 'Microsoft.Authorization/roleAssignments/read' over scope '/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/RG-BlobBackup/providers/Microsoft.Storage/storageAccounts/msblobbackup/providers/Microsoft.Authorization' or the scope is invalid. If access was recently granted, please refresh your credentials."
317317
}
318318
},
319319
"isRetryable": false,

articles/backup/backup-azure-dataprotection-use-rest-api-backup-disks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ GET https://management.azure.com/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx
260260
"innerError": {
261261
"code": "UserErrorMissingRequiredPermissions",
262262
"additionalInfo": {
263-
"DetailedNonLocalisedMessage": "Validate for Protection failed. Exception Message: The client 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb' with object id 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb' does not have authorization to perform action 'Microsoft.Authorization/roleAssignments/read' over scope '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/RG-DiskBackup/providers/Microsoft.Compute/disks/msdiskbackup/providers/Microsoft.Authorization' or the scope is invalid. If access was recently granted, please refresh your credentials."
263+
"DetailedNonLocalisedMessage": "Validate for Protection failed. Exception Message: The client '00001111-aaaa-2222-bbbb-3333cccc4444' with object id 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb' does not have authorization to perform action 'Microsoft.Authorization/roleAssignments/read' over scope '/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/RG-DiskBackup/providers/Microsoft.Compute/disks/msdiskbackup/providers/Microsoft.Authorization' or the scope is invalid. If access was recently granted, please refresh your credentials."
264264
}
265265
},
266266
"isRetryable": false,

articles/backup/manage-azure-sql-vm-rest-api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ X-Powered-By : ASP.NET
183183
Body:
184184
{
185185
"id": "aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e",
186-
"name": "aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e",
186+
"name": "TestOBJ",
187187
"status": "Succeeded",
188188
"startTime": "2021-11-26T05:36:36.5262731Z",
189189
"endTime": "2021-11-26T05:36:36.5262731Z",
@@ -197,15 +197,15 @@ Body:
197197
Then, track the resulting operation using the location header or Azure-AsyncOperation header with a *GET* command:
198198

199199
```http
200-
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupoperations/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e?api-version=2016-12-01
200+
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupoperations/0000aaaa-11bb-cccc-dd22-eeeeee333333?api-version=2016-12-01
201201
```
202202

203203
### Response body
204204

205205
```json
206206
{
207-
"id": "aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e",
208-
"name": "aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e",
207+
"id": "aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb",
208+
"name": "TestOBJ",
209209
"status": "Succeeded",
210210
"startTime": "2021-11-26T05:36:36.5262731Z",
211211
"endTime": "2021-11-26T05:36:36.5262731Z",

articles/backup/quick-backup-hana-cli.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ Follow these steps:
4040
1. To register and protect the SAP HANA database running on primary Azure VM, run the following command:
4141

4242
```azurecli
43-
az backup container register --resource-group hanarghsr2 --vault-name hanavault10 --workload-type SAPHANA --backup-management-type AzureWorkload --resource-id "/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/hanarghsr2/providers/Microsoft.Compute/virtualMachines/hsr-primary"
43+
az backup container register --resource-group hanarghsr2 --vault-name hanavault10 --workload-type SAPHANA --backup-management-type AzureWorkload --resource-id "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/hanarghsr2/providers/Microsoft.Compute/virtualMachines/hsr-primary"
4444
```
4545
4646
1. To register and protect the SAP HANA database running on secondary Azure VM, run the following command:
4747
4848
```azurecli
49-
az backup container register --resource-group hanarghsr2 --vault-name hanavault10 --workload-type SAPHANA --backup-management-type AzureWorkload --resource-id "/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/hanarghsr2/providers/Microsoft.Compute/virtualMachines/hsr-secondary"
49+
az backup container register --resource-group hanarghsr2 --vault-name hanavault10 --workload-type SAPHANA --backup-management-type AzureWorkload --resource-id "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/hanarghsr2/providers/Microsoft.Compute/virtualMachines/hsr-secondary"
5050
```
5151
5252
To identify `resource-id`, run the following command:
@@ -55,7 +55,7 @@ To identify `resource-id`, run the following command:
5555
az vm show --name hsr-primary --resource-group hanarghsr2
5656
```
5757

58-
For example, `id` is `/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/hanarghsr2/providers/Microsoft.Compute/virtualMachines/hsr-primary`.
58+
For example, `id` is `/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/hanarghsr2/providers/Microsoft.Compute/virtualMachines/hsr-primary`.
5959

6060
## Check the registration of primary and secondary servers to the vault
6161

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ To register and protect database instance, follow these steps:
120120
1. To register and protect the SAP HANA database running on primary Azure VM, run the following command:
121121
122122
```azurecli
123-
az backup container register --resource-group hanarghsr2 --vault-name hanavault10 --workload-type SAPHANA --backup-management-type AzureWorkload --resource-id "/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/hanarghsr2/providers/Microsoft.Compute/virtualMachines/hsr-primary"
123+
az backup container register --resource-group hanarghsr2 --vault-name hanavault10 --workload-type SAPHANA --backup-management-type AzureWorkload --resource-id "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/hanarghsr2/providers/Microsoft.Compute/virtualMachines/hsr-primary"
124124
```
125125
126126
1. To register and protect the SAP HANA database running on secondary Azure VM, run the following command:
127127
128128
```azurecli
129-
az backup container register --resource-group hanarghsr2 --vault-name hanavault10 --workload-type SAPHANA --backup-management-type AzureWorkload --resource-id "/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/hanarghsr2/providers/Microsoft.Compute/virtualMachines/hsr-secondary"
129+
az backup container register --resource-group hanarghsr2 --vault-name hanavault10 --workload-type SAPHANA --backup-management-type AzureWorkload --resource-id "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/hanarghsr2/providers/Microsoft.Compute/virtualMachines/hsr-secondary"
130130
```
131131
132132
To identify `resource-id`, run the following command:

0 commit comments

Comments
 (0)