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/app-service/tutorial-sre-agent.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,9 @@ To complete this tutorial, you need:
44
44
Start by creating a web app that the SRE Agent can monitor.
45
45
46
46
1. Sign in to the https://portal.azure.com.
47
+
47
48
1. In the top search bar, search for **App Services**, then select it from the results.
49
+
48
50
1. Select **+ Create** and choose **Web App**.
49
51
50
52
### Configure the Basics tab
@@ -70,8 +72,11 @@ In the *Basics* tab, provide the following details:
70
72
71
73
72
74
1. Select the **Deployment** tab.
75
+
73
76
1. Under *Authentication settings*, enable **Basic authentication**. Basic authentication is used later for a one-time deployment from GitHub. [Disable Basic Auth](configure-basic-auth-disable.md?tabs=portal) in production.
77
+
74
78
1. Select **Review and create**, then **Create** when validation passes.
79
+
75
80
1. Once deployment completes, you see *Your deployment is complete*.
76
81
77
82
## 2. Deploy the sample app
@@ -97,7 +102,9 @@ Now that your App Service app is created, deploy the sample application from Git
97
102
After deployment, confirm that the sample app is running as expected.
98
103
99
104
1. In the left menu of your App Service, select **Overview**.
105
+
100
106
1. Select **Browse** to open the app in a new browser tab. (It might take a minute to load.)
107
+
101
108
1. The app displays a large counter and two buttons:
102
109
103
110
:::image type="content" source="media/tutorial-sre-agent/verify-sample-primary-slot.png" alt-text="Screenshot of the .NET sample in the primary slot." border="false":::
@@ -109,7 +116,9 @@ After deployment, confirm that the sample app is running as expected.
109
116
To simulate an app failure scenario, add a secondary deployment slot.
110
117
111
118
1. In the left menu of your App Service, under the *Deployment* section, select **Deployment slots**.
119
+
112
120
1. Select **Add slot**.
121
+
113
122
1. Enter the following values:
114
123
115
124
| Property | Value | Remarks |
@@ -122,7 +131,9 @@ To simulate an app failure scenario, add a secondary deployment slot.
122
131
### Deploy the sample app to the slot
123
132
124
133
1. Once the slot is created, select the **broken** slot from the list.
134
+
125
135
1. In the left menu, under the *Deployment* section, select **Deployment Center**.
136
+
126
137
1. In the *Settings* tab, configure:
127
138
128
139
| Property | Value |
@@ -138,8 +149,11 @@ To simulate an app failure scenario, add a secondary deployment slot.
138
149
To control error simulation, configure an app setting your app checks at runtime.
139
150
140
151
1. In the left menu of your App Service, select **Environment variables** under the *Settings* section.
152
+
141
153
1. At the top, make sure you have the correct slot selected (for example, **broken**).
154
+
142
155
1. Under the **App settings** tab, select **+ Add**.
156
+
143
157
1. Enter the following values:
144
158
145
159
| Property | Value | Remarks |
@@ -148,8 +162,11 @@ To control error simulation, configure an app setting your app checks at runtime
148
162
| Value |`1`| Enables error simulation in the app. |
149
163
150
164
1. Make sure the **Deployment slot setting** box is **not** checked.
165
+
151
166
1. Select **Apply** to add the setting.
167
+
152
168
1. At the bottom of the *Environment variables* page, select **Apply** to apply the changes.
169
+
153
170
1. When prompted, select **Confirm** to confirm and restart the app in the selected slot.
0 commit comments