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/storage/blobs/simulate-primary-region-failure.md
+11-13Lines changed: 11 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,23 +3,23 @@ title: Tutorial - Simulate a failure in reading data from the primary region
3
3
titleSuffix: Azure Storage
4
4
description: Simulate an error in reading data from the primary region when the storage account is configured for read-access geo-zone-redundant storage (RA-GZRS).
5
5
services: storage
6
-
author: tamram
6
+
author: pauljewellmsft
7
7
8
8
ms.service: storage
9
9
ms.subservice: blobs
10
10
ms.topic: tutorial
11
-
ms.date: 04/16/2020
12
-
ms.author: tamram
11
+
ms.date: 09/06/2022
12
+
ms.author: pauljewell
13
13
ms.reviewer: artek
14
14
ms.devlang: javascript
15
15
ms.custom: devx-track-js
16
16
---
17
17
18
18
# Tutorial: Simulate a failure in reading data from the primary region
19
19
20
-
This tutorial is part two of a series. In it, you learn about the benefits of [read-access geo-zone-redundant storage](../common/storage-redundancy.md) (RA-GZRS) by simulating a failure.
20
+
This tutorial is part two of a series. In it, you'll learn about the benefits of [read-access geo-zone-redundant storage](../common/storage-redundancy.md) (RA-GZRS) by simulating a failure.
21
21
22
-
In order to simulate a failure, you can use either [static routing](#simulate-a-failure-with-an-invalid-static-route) or [Fiddler](#simulate-a-failure-with-fiddler). Both methods will allow you to simulate failure for requests to the primary endpoint of your [read-access geo-redundant](../common/storage-redundancy.md) (RA-GZRS) storage account, leading the application to read from the secondary endpoint instead.
22
+
In order to simulate a failure, you can use either [static routing](#simulate-a-failure-with-an-invalid-static-route) or [Fiddler](#simulate-a-failure-with-fiddler). Both methods will allow you to simulate failure for requests to the primary endpoint of your RA-GZRS storage account, leading the application to read from the secondary endpoint instead.
23
23
24
24
If you don't have an Azure subscription, [create a free account](https://azure.microsoft.com/free/) before you begin.
25
25
@@ -34,13 +34,13 @@ In part two of the series, you learn how to:
34
34
35
35
Before you begin this tutorial, complete the previous tutorial: [Make your application data highly available with Azure storage][previous-tutorial].
36
36
37
-
To simulate a failure with static routing, you will use an elevated command prompt.
37
+
To simulate a failure with static routing, you'll use an elevated command prompt.
38
38
39
39
To simulate a failure using Fiddler, download and [install Fiddler](https://www.telerik.com/download/fiddler)
40
40
41
41
## Simulate a failure with an invalid static route
42
42
43
-
You can create an invalid static route for all requests to the primary endpoint of your [read-access geo-redundant](../common/storage-redundancy.md) (RA-GZRS) storage account. In this tutorial, the local host is used as the gateway for routing requests to the storage account. Using the local host as the gateway causes all requests to your storage account primary endpoint to loop back inside the host, which subsequently leads to failure. Follow the following steps to simulate a failure, and primary endpoint restoration with an invalid static route.
43
+
You can create an invalid static route for all requests to the primary endpoint of your RA-GZRS storage account. In this tutorial, the local host is used as the gateway for routing requests to the storage account. Using the local host as the gateway causes all requests to your storage account primary endpoint to loop back inside the host, which results in a failed request. Follow the following steps to simulate a failure, and primary endpoint restoration with an invalid static route.
44
44
45
45
### Start and pause the application
46
46
@@ -108,7 +108,7 @@ Open Fiddler, select **Rules** and **Customize Rules**.
108
108
109
109
The Fiddler ScriptEditor launches and displays the **SampleRules.js** file. This file is used to customize Fiddler.
110
110
111
-
Paste the following code sample in the `OnBeforeResponse` function, replacing `STORAGEACCOUNTNAME` with the name of your storage account. Depending on the sample, you may also need to replace `HelloWorld` with the name of the test file (or a prefix such as `sampleFile`) being downloaded. The new code is commented out to ensure that it doesn't run immediately.
111
+
Paste the following code sample in the `OnBeforeResponse` function, replacing `STORAGEACCOUNTNAME` with the name of your storage account. Depending on the sample, you may also need to replace `HelloWorld` with the name of the test file being downloaded, or remove that part of the condition if it doesn't apply. The new code is commented out to ensure that it doesn't run immediately.
112
112
113
113
Once complete, select **File** and **Save** to save your changes. Leave the ScriptEditor window open for use in the following steps.
114
114
@@ -122,6 +122,7 @@ Once complete, select **File** and **Save** to save your changes. Leave the Scri
122
122
// and save the changes.
123
123
124
124
if ((oSession.hostname == "STORAGEACCOUNTNAME.blob.core.windows.net")
125
+
// depending on the sample, you may need to modify or remove the line below
0 commit comments