Skip to content

Commit 7187e24

Browse files
committed
PowerShell & CLI
1 parent d14a205 commit 7187e24

15 files changed

+34
-34
lines changed

articles/azure-app-configuration/howto-app-configuration-event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The deployment may take a few minutes to complete. After the deployment has succ
7272

7373
You should see the site with no messages currently displayed.
7474

75-
[!INCLUDE [event-grid-register-provider-cli.md](../../includes/event-grid-register-provider-cli.md)]
75+
[!INCLUDE [register-provider-cli.md](../../articles/event-grid/includes/register-provider-cli.md)]
7676

7777
## Subscribe to your App Configuration store
7878

articles/azure-app-configuration/howto-backup-config-store.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ az storage account create -n $storageName -g $resourceGroupName -l westus --sku
9595
az storage queue create --name $queueName --account-name $storageName --auth-mode login
9696
```
9797

98-
[!INCLUDE [event-grid-register-provider-cli.md](../../includes/event-grid-register-provider-cli.md)]
98+
[!INCLUDE [register-provider-cli.md](../../articles/event-grid/includes/register-provider-cli.md)]
9999

100100
## Subscribe to your App Configuration store events
101101

articles/azure-cache-for-redis/cache-event-grid-quickstart-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The deployment may take a few minutes to complete. After the deployment has succ
6464

6565
You should see the site with no messages currently displayed.
6666

67-
[!INCLUDE [event-grid-register-provider-cli.md](../../includes/event-grid-register-provider-cli.md)]
67+
[!INCLUDE [register-provider-cli.md](../../articles/event-grid/includes/register-provider-cli.md)]
6868

6969
## Subscribe to your Azure Cache for Redis instance
7070

articles/azure-cache-for-redis/cache-event-grid-quickstart-portal.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ Before subscribing to the events for the cache instance, let's create the endpoi
3232
:::image type="content" source="media/cache-event-grid-portal/deploy-to-azure.png" alt-text="Deploy to Azure button.":::
3333

3434
1. On the **Custom deployment** page, do the following steps:
35-
1. For **Resource group**, select the resource group that you created when creating the cache instance. It will be easier for you to clean up after you are done with the tutorial by deleting the resource group.
35+
1. For **Resource group**, select the resource group that you created when creating the cache instance. It will be easier for you to clean up after you're done with the tutorial by deleting the resource group.
3636
2. For **Site Name**, enter a name for the web app.
3737
3. For **Hosting plan name**, enter a name for the App Service plan to use for hosting the web app.
3838
4. Select the check box for **I agree to the terms and conditions stated above**.
3939
5. Select **Purchase**.
4040

4141
| Setting | Suggested value | Description |
4242
| ------------ | ------- | -------------------------------------------------- |
43-
| **Subscription** | Drop down and select your subscription. | The subscription under which to create this web app. |
43+
| **Subscription** | Drop down and select your subscription. | The subscription in which you want to create this web app. |
4444
| **Resource group** | Drop down and select a resource group, or select **Create new** and enter a new resource group name. | By putting all your app resources in one resource group, you can easily manage or delete them together. |
45-
| **Site Name** | Enter a name for your web app. | This value cannot be empty. |
46-
| **Hosting plan name** | Enter a name for the App Service plan to use for hosting the web app. | This value cannot be empty. |
45+
| **Site Name** | Enter a name for your web app. | This value can't be empty. |
46+
| **Hosting plan name** | Enter a name for the App Service plan to use for hosting the web app. | This value can't be empty. |
4747

4848
1. Select Alerts (bell icon) in the portal, and then select **Go to resource group**.
4949

@@ -66,7 +66,7 @@ In this step, you'll subscribe to a topic to tell Event Grid which events you wa
6666

6767
1. In the portal, navigate to your cache instance that you created earlier.
6868
1. On the **Azure Cache for Redis** page, select **Events** on the left menu.
69-
1. Select **Web Hook**. You are sending events to your viewer app using a web hook for the endpoint.
69+
1. Select **Web Hook**. You're sending events to your viewer app using a web hook for the endpoint.
7070

7171
:::image type="content" source="media/cache-event-grid-portal/event-grid-web-hook.png" alt-text="Azure portal Events page.":::
7272

articles/azure-signalr/signalr-howto-event-grid-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Once the deployment succeeds (it might take a few minutes), open your browser, a
8686

8787
`http://<your-site-name>.azurewebsites.net`
8888

89-
[!INCLUDE [event-grid-register-provider-cli.md](../../includes/event-grid-register-provider-cli.md)]
89+
[!INCLUDE [register-provider-cli.md](../../articles/event-grid/includes/register-provider-cli.md)]
9090

9191
## Subscribe to registry events
9292

articles/container-registry/container-registry-event-grid-quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ You should see the sample app rendered with no event messages displayed:
9090

9191
![Web browser showing sample web app with no events displayed][sample-app-02]
9292

93-
[!INCLUDE [event-grid-register-provider-cli.md](../../includes/event-grid-register-provider-cli.md)]
93+
[!INCLUDE [register-provider-cli.md](../../articles/event-grid/includes/register-provider-cli.md)]
9494

9595
## Subscribe to registry events
9696

articles/event-grid/custom-disaster-recovery-client-side.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ ms.custom: devx-track-csharp
99

1010
# Build your own client-side disaster recovery for Azure Event Grid topics
1111

12-
Disaster recovery focuses on recovering from a severe loss of application functionality. This tutorial will walk you through how to set up your eventing architecture to recover if the Event Grid service becomes unhealthy in a particular region.
12+
Disaster recovery focuses on recovering from a severe loss of application functionality. This tutorial walks you through how to set up your eventing architecture to recover if the Event Grid service becomes unhealthy in a particular region.
1313

14-
In this tutorial, you'll learn how to create an active-passive failover architecture for custom topics in Event Grid. You'll accomplish failover by mirroring your topics and subscriptions across two regions and then managing a failover when a topic becomes unhealthy. The architecture in this tutorial fails over all new traffic. it's important to be aware, with this setup, events already in flight won't be recovered until the compromised region is healthy again.
14+
In this tutorial, you learn how to create an active-passive failover architecture for custom topics in Event Grid. You accomplish failover by mirroring your topics and subscriptions across two regions and then managing a failover when a topic becomes unhealthy. The architecture in this tutorial fails over all new traffic. it's important to be aware, with this setup, events already in flight won't be recovered until the compromised region is healthy again.
1515

1616
> [!NOTE]
1717
> Event Grid supports automatic geo disaster recovery (GeoDR) on the server side now. You can still implement client-side disaster recovery logic if you want a greater control on the failover process. For details about automatic GeoDR, see [Server-side geo disaster recovery in Azure Event Grid](geo-disaster-recovery.md).
1818
1919
## Create a message endpoint
2020

21-
To test your failover configuration, you'll need an endpoint to receive your events at. The endpoint isn't part of your failover infrastructure, but will act as our event handler to make it easier to test.
21+
To test your failover configuration, you need an endpoint to receive your events at. The endpoint isn't part of your failover infrastructure, but acts as our event handler to make it easier to test.
2222

23-
To simplify testing, deploy a [pre-built web app](https://github.com/Azure-Samples/azure-event-grid-viewer) that displays the event messages. The deployed solution includes an App Service plan, an App Service web app, and source code from GitHub.
23+
To simplify testing, deploy a [prebuilt web app](https://github.com/Azure-Samples/azure-event-grid-viewer) that displays the event messages. The deployed solution includes an App Service plan, an App Service web app, and source code from GitHub.
2424

2525
1. [Deploy the solution](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure-Samples%2Fazure-event-grid-viewer%2Fmaster%2Fazuredeploy.json) to your subscription. In the Azure portal, provide values for the parameters.
2626
1. The deployment may take a few minutes to complete. After the deployment has succeeded, navigate to the resource group, select the **App Service**, and then select **URL** to navigate to your web app.
2727
`https://<your-site-name>.azurewebsites.net`
28-
Make sure to note this URL as you'll need it later.
28+
Make sure to note this URL as you need it later.
2929
1. You see the site but no events have been posted to it yet.
3030

3131
:::image type="content" source="./media/blob-event-quickstart-portal/view-site.png" alt-text="Screenshot showing the Event Grid Viewer sample web app.":::
@@ -35,7 +35,7 @@ Make sure to note this URL as you'll need it later.
3535

3636
## Create primary and secondary topics
3737

38-
First, create two Event Grid topics. These topics will act as primary and secondary topics. By default, your events will flow through the primary topic. If there is a service outage in the primary region, your secondary will take over.
38+
First, create two Event Grid topics. These topics act as primary and secondary topics. By default, your events flow through the primary topic. If there's a service outage in the primary region, your secondary takes over.
3939

4040
1. Sign in to the [Azure portal](https://portal.azure.com).
4141

@@ -49,31 +49,31 @@ First, create two Event Grid topics. These topics will act as primary and second
4949
1. Select the **Azure subscription** where you want to create a topic.
5050
1. Select an existing **Azure resource group** or create a resource group.
5151
1. Enter a **name** for the topic. Give the topic a logical name and add "-primary" as a suffix to make it easy to track.
52-
1. Select a **region** for the topic. This topic's region will be your primary region.
52+
1. Select a **region** for the topic. This topic's region is your primary region.
5353
1. Select **Review + create** at the bottom of the page.
5454

5555
:::image type="content" source="./media/custom-disaster-recovery/create-primary-topic.png" lightbox="./media/custom-disaster-recovery/create-primary-topic.png" alt-text="Screenshot showing the Create topic page.":::
5656
1. On the **Review + create** page, select **Create** at the bottom of the page.
57-
1. Once the topic has been created, select **Go to resource** to navigate to it and copy the **topic endpoint**. you'll need the URI later.
57+
1. Once the topic has been created, select **Go to resource** to navigate to it and copy the **topic endpoint**. you need the URI later.
5858

5959
:::image type="content" source="./media/custom-disaster-recovery/get-primary-topic-endpoint.png" lightbox="./media/custom-disaster-recovery/get-primary-topic-endpoint.png" alt-text="Screenshot showing the Event Grid topic page.":::
60-
1. Get the access key for the topic, which you'll also need later. Click on **Access keys** in the resource menu and copy Key 1.
60+
1. Get the access key for the topic, which you also need later. Select **Access keys** in the resource menu and copy Key 1.
6161

6262
:::image type="content" source="./media/custom-disaster-recovery/get-primary-access-key.png" lightbox="./media/custom-disaster-recovery/get-primary-access-key.png" alt-text="Screenshot showing the access key of a primary topic.":::
63-
1. Switch back to the **Overview** page, and click **+Event Subscription** to create a subscription connecting your subscribing the event receiver website you made in the pre-requisites to the tutorial.
63+
1. Switch back to the **Overview** page, and select **+Event Subscription** to create a subscription connecting your subscribing the event receiver website you made in the prerequisites to the tutorial.
6464

6565
:::image type="content" source="./media/custom-disaster-recovery/create-event-subscription-link.png" lightbox="./media/custom-disaster-recovery/create-event-subscription-link.png" alt-text="Screenshot showing the selection of the Create event subscription link.":::
6666
1. On the **Create Event Subscription** page, follow these steps:
6767
1. Give the event subscription a logical **name** and add "-primary" as a suffix to make it easy to track.
6868
1. For **Endpoint Type**, select **Web Hook**.
6969

7070
:::image type="content" source="./media/custom-disaster-recovery/create-event-subscription-page.png" lightbox="./media/custom-disaster-recovery/create-event-subscription-page.png" alt-text="Screenshot showing the selection of the Create Event Subscription page.":::
71-
1. Click **Select an endpoint**.
71+
1. Choose **Select an endpoint**.
7272
1. On the **Select Web Hook** page, set the endpoint to your event receiver's event URL, which should look something like: `https://<your-event-reciever>.azurewebsites.net/api/updates`, and then select **Confirm Selection**. Remember to add `/api/updates` to the URL of the web app.
7373

7474
:::image type="content" source="./media/custom-disaster-recovery/select-webhook.png" lightbox="./media/custom-disaster-recovery/select-webhook.png" alt-text="Screenshot showing the selection of the Select Web Hook page.":::
75-
1. Now, back on the **Create Event Subscription** page, select **Create** at the bottom pf the page.
76-
1. Repeat the same flow to create your secondary topic and subscription. This time, replace the "-primary" suffix with "-secondary" for easier tracking. Finally, make sure you put it in a **different Azure Region**. While you can put it anywhere you want, it's recommended that you use the [Azure Paired Regions](../availability-zones/cross-region-replication-azure.md). Putting the secondary topic and subscription in a different region ensures that your new events will flow even if the primary region goes down.
75+
1. Now, back on the **Create Event Subscription** page, select **Create** at the bottom of the page.
76+
1. Repeat the same flow to create your secondary topic and subscription. This time, replace the "-primary" suffix with "-secondary" for easier tracking. Finally, make sure you put it in a **different Azure Region**. While you can put it anywhere you want, it's recommended that you use the [Azure Paired Regions](../availability-zones/cross-region-replication-azure.md). Putting the secondary topic and subscription in a different region ensures that your new events flow even if the primary region goes down.
7777

7878
You should now have:
7979

@@ -85,11 +85,11 @@ You should now have:
8585

8686
## Implement client-side failover
8787

88-
Now that you have a regionally redundant pair of topics and subscriptions setup, you're ready to implement client-side failover. There are several ways to accomplish it, but all failover implementations will have a common feature: if one topic is no longer healthy, traffic will redirect to the other topic.
88+
Now that you have a regionally redundant pair of topics and subscriptions setup, you're ready to implement client-side failover. There are several ways to accomplish it, but all failover implementations have a common feature: if one topic is no longer healthy, traffic will redirect to the other topic.
8989

9090
### Basic client-side implementation
9191

92-
The following sample code is a simple .NET publisher that will always attempt to publish to your primary topic first. If it doesn't succeed, it will then fail over the secondary topic. In either case, it also checks the health api of the other topic by doing a GET on `https://<topic-name>.<topic-region>.eventgrid.azure.net/api/health`. A healthy topic should always respond with **200 OK** when a GET is made on the **/api/health** endpoint.
92+
The following sample code is a simple .NET publisher that attempts to publish to your primary topic first. If it doesn't succeed, it fails over the secondary topic. In either case, it also checks the health api of the other topic by doing a GET on `https://<topic-name>.<topic-region>.eventgrid.azure.net/api/health`. A healthy topic should always respond with **200 OK** when a GET is made on the **/api/health** endpoint.
9393

9494
> [!NOTE]
9595
> The following sample code is only for demonstration purposes and is not intended for production use.
@@ -187,17 +187,17 @@ Now that you have all of your components in place, you can test out your failove
187187
* primaryTopicKey - the key for your primary topic.
188188
* secondaryTopicKey - the key for your secondary topic.
189189

190-
Try running the event publisher. You should see your test events land in your Event Grid viewer like below.
190+
Try running the event publisher. You should see your test events land in your Event Grid viewer.
191191

192192
:::image type="content" source="./media/custom-disaster-recovery/event-grid-viewer.png" alt-text="Screenshot showing the Event Grid Viewer app with posted events.":::
193193

194-
To make sure your failover is working, you can change a few characters in your primary topic key to make it no longer valid. Try running the publisher again. You should still see new events appear in your Event Grid viewer, however when you look at your console, you'll see that they are now being published via the secondary topic.
194+
To make sure your failover is working, you can change a few characters in your primary topic key to make it no longer valid. Try running the publisher again. You should still see new events appear in your Event Grid viewer, however when you look at your console, you see that they're now being published via the secondary topic.
195195

196196
### Possible extensions
197197

198198
There are many ways to extend this sample based on your needs. For high-volume scenarios, you may want to regularly check the topic's health api independently. That way, if a topic were to go down, you don't need to check it with every single publish. Once you know a topic isn't healthy, you can default to publishing to the secondary topic.
199199

200-
Similarly, you may want to implement failback logic based on your specific needs. If publishing to the closest data center is critical for you to reduce latency, you can periodically probe the health api of a topic that has failed over. Once it's healthy again, you'll know it's safe to failback to the closer data center.
200+
Similarly, you may want to implement failback logic based on your specific needs. If publishing to the closest data center is critical for you to reduce latency, you can periodically probe the health api of a topic that has failed over. Once it's healthy again, you know it's safe to failback to the closer data center.
201201

202202
## Next steps
203203

articles/event-grid/custom-event-quickstart-powershell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The following example creates a resource group named *gridResourceGroup* in the
3232
New-AzResourceGroup -Name gridResourceGroup -Location westus2
3333
```
3434

35-
[!INCLUDE [event-grid-register-provider-powershell.md](../../includes/event-grid-register-provider-powershell.md)]
35+
[!INCLUDE [register-provider-powershell.md](includes/register-provider-powershell.md)]
3636

3737
## Create a custom topic
3838

articles/event-grid/custom-event-quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Create a resource group with the [az group create](/cli/azure/group#az-group-cre
3131
az group create --name gridResourceGroup --location westus2
3232
```
3333

34-
[!INCLUDE [event-grid-register-provider-cli.md](../../includes/event-grid-register-provider-cli.md)]
34+
[!INCLUDE [register-provider-cli.md](includes/register-provider-cli.md)]
3535

3636
## Create a custom topic
3737

articles/event-grid/custom-event-to-eventhub.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Create a resource group with the [az group create](/cli/azure/group#az-group-cre
3030
az group create --name gridResourceGroup --location westus2
3131
```
3232

33-
[!INCLUDE [event-grid-register-provider-cli.md](../../includes/event-grid-register-provider-cli.md)]
33+
[!INCLUDE [register-provider-cli.md](includes/register-provider-cli.md)]
3434

3535
## Create a custom topic
3636

0 commit comments

Comments
 (0)