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/azure-monitor/app/change-analysis.md
+22-40Lines changed: 22 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,57 +82,39 @@ In Azure Monitor, Change Analysis is currently built into the self-service **Dia
82
82
83
83
### Enable Change Analysis at scale
84
84
85
-
If your subscription includes numerous web apps, enabling the service at the level of the web app would be inefficient. In this case, follow these alternative instructions.
85
+
If your subscription includes numerous web apps, enabling the service at the level of the web app would be inefficient. Run the following script to enable all web apps in your subscription.
86
86
87
-
### Register the Change Analysis resource provider for your subscription
87
+
Pre-requisites:
88
+
* PowerShell Az Module. Follow instructions at [Install the Azure PowerShell module](https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-2.6.0)
88
89
89
-
1. Register the Change Analysis feature flag (preview). Because the feature flag is in preview, you need to register it to make it visible to your subscription:
90
+
Run the following script:
90
91
91
-
1. Open [Azure Cloud Shell](https://azure.microsoft.com/features/cloud-shell/).
92
+
```PowerShell
93
+
# Log in to your Azure subscription
94
+
Connect-AzAccount
92
95
93
-

96
+
# Get subscription Id
97
+
$SubscriptionId = Read-Host -Prompt 'Input your subscription Id'
94
98
95
-
1. Change the shell type to **PowerShell**.
99
+
# Make Feature Flag visible to the subscription
100
+
Set-AzContext -SubscriptionId $SubscriptionId
96
101
97
-

1. Register the Change Analysis resource provider for the subscription.
115
+
```
108
116
109
-
- Go to **Subscriptions**, and select the subscription you want to enable in the change service. Then select resource providers:
110
117
111
-

112
-
113
-
- Select **Microsoft.ChangeAnalysis**. Then at the top of the page, select **Register**.
114
-
115
-
- After the resource provider is enabled, you can set a hidden tag on the web app to detect changes at the level of deployment. To set a hidden tag, follow the instructions under **Unable to fetch Change Analysis information**.
116
-
117
-
- Alternatively, you can use a PowerShell script to register the resource provider:
118
-
119
-
```PowerShell
120
-
Get-AzureRmResourceProvider -ListAvailable | Select-Object ProviderNamespace, RegistrationState #Check if RP is ready for registration
121
-
122
-
Register-AzureRmResourceProvider -ProviderNamespace "Microsoft.ChangeAnalysis" #Register the Change Analysis RP
123
-
```
124
-
125
-
To use PowerShell to set a hidden tag on a web app, run the following command:
> After you add the hidden tag, you might still need to wait up to 4 hours before you start seeing changes. Results are delayed because Change Analysis scans your web app only every 4 hours. The 4-hour schedule limits the scan's performance impact.
0 commit comments