Skip to content

Commit d6fe562

Browse files
authored
Merge pull request #206969 from hhunter-ms/hh-1973772
[Change Analysis] Add set up steps to tutorial
2 parents e38b9b9 + 1eabaff commit d6fe562

File tree

1 file changed

+59
-8
lines changed

1 file changed

+59
-8
lines changed

articles/azure-monitor/change/tutorial-outages.md

Lines changed: 59 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: hannahhunter
66
author: hhunter-ms
77
ms.contributor: cawa
88
ms.reviewer: cawa
9-
ms.date: 05/12/2022
9+
ms.date: 08/04/2022
1010
ms.subservice: change-analysis
1111
ms.custom: devx-track-azurepowershell
1212
---
@@ -15,21 +15,72 @@ ms.custom: devx-track-azurepowershell
1515

1616
When issues happen, one of the first things to check is what changed in application, configuration and resources to triage and root cause issues. Change Analysis provides a centralized view of the changes in your subscriptions for up to the past 14 days to provide the history of changes for troubleshooting issues.
1717

18-
In this tutorial, you learn how to:
18+
In this tutorial, you will:
1919

2020
> [!div class="checklist"]
21-
> * Enable Change Analysis to track changes for Azure resources and for Azure Web App configurations
22-
> * Troubleshoot a Web App issue using Change Analysis
21+
> - Clone, create, and deploy a [sample web application](https://github.com/Azure-Samples/changeanalysis-webapp-storage-sample) with a storage account.
22+
> - Enable Change Analysis to track changes for Azure resources and for Azure Web App configurations
23+
> - Troubleshoot a Web App issue using Change Analysis
2324
2425
## Pre-requisites
2526

26-
An Azure Web App with a Storage account dependency. Follow instructions at [ChangeAnalysis-webapp-storage-sample](https://github.com/Azure-Samples/changeanalysis-webapp-storage-sample) if you haven't already deployed one.
27+
- Install [.NET 5.0 or above](https://dotnet.microsoft.com/download).
28+
- Install [the Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli).
2729

28-
## Enable Change Analysis
30+
## Set up the test application
31+
32+
### Clone
2933

30-
In the Azure portal, navigate to theChange Analysis service home page.
34+
1. In your preferred terminal, log in to your Azure subscription.
35+
36+
```bash
37+
az login
38+
az account set --s {azure-subscription-id}
39+
```
40+
41+
1. Clone the [sample web application with storage to test Change Analysis](https://github.com/Azure-Samples/changeanalysis-webapp-storage-sample).
42+
43+
```bash
44+
git clone https://github.com/Azure-Samples/changeanalysis-webapp-storage-sample.git
45+
```
46+
47+
1. Change the working directory to the project folder.
48+
49+
```bash
50+
cd changeanalysis-webapp-storage-sample
51+
```
52+
53+
### Create and deploy
54+
55+
1. Create and deploy the web application.
56+
57+
```bash
58+
az webapp up --name {webapp_name} --sku S2 --location eastus
59+
```
60+
61+
1. Make a note of the resource group created, if you'd like to deploy your storage account in the same resource group.
62+
63+
1. Create the storage account.
64+
65+
```bash
66+
az storage account create --name {storage_name} --resource-group {resourcegroup_name} --sku Standard_RAGRS --https-only
67+
```
68+
69+
1. Show your new storage account connection string.
70+
71+
```bash
72+
az storage account show-connection-string -g {resourcegroup_name} -n {storage_name}
73+
```
74+
75+
1. Connect the web application to the storage account through **App Settings**.
76+
77+
```bash
78+
az webapp config appsettings set -g {resourcegroup_name} -n {webapp_name} --settings AzureStorageConnection={storage_connectionstring_from_previous_step}
79+
```
80+
81+
## Enable Change Analysis
3182

32-
If this is your first time using Change Analysis service, the page may take up to a few minutes to register the `Microsoft.ChangeAnalysis` resource provider in your selected subscriptions.
83+
In the Azure portal, [navigate to the Change Analysis standalone UI](./change-analysis-visualizations.md). This may take a few minutes as the `Microsoft.ChangeAnalysis` resource provider is registered.
3384

3485
:::image type="content" source="./media/change-analysis/change-analysis-blade.png" alt-text="Screenshot of Change Analysis in Azure portal.":::
3586

0 commit comments

Comments
 (0)