nerdexam
MicrosoftMicrosoft

AZ-400 · Question #521

AZ-400 Question #521: Real Exam Question with Answer & Explanation

This hotspot question tests knowledge of enabling Azure Change Analysis for web apps using Azure CLI or PowerShell scripts, specifically the correct commands and parameters needed to register the provider and enable the feature.

Submitted by olafpl· Mar 6, 2026Implement an instrumentation strategy

Question

Hotspot Question You have an Azure subscription that contains multiple web apps. You need to enable Change Analysis for the web apps. How should you complete the script? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer:

Options

  • __typehotspot
  • variantdropdown

Explanation

This hotspot question tests knowledge of enabling Azure Change Analysis for web apps using Azure CLI or PowerShell scripts, specifically the correct commands and parameters needed to register the provider and enable the feature.

Approach. To enable Change Analysis for web apps in Azure, you need to register the 'Microsoft.ChangeAnalysis' resource provider using 'Register-AzResourceProvider -ProviderNamespace Microsoft.ChangeAnalysis' (PowerShell) or 'az provider register --namespace Microsoft.ChangeAnalysis' (Azure CLI). Then, to enable Change Analysis at the web app level, you use the Azure CLI command 'az webapp update' with the '--set' flag to set 'siteConfig.changeAnalysisState' to 'Enabled', or via the REST API by setting the 'changeAnalysisState' property. The script typically loops through all web apps in the subscription, retrieves each app's resource group and name, and applies the enablement command to each one. The correct selections involve choosing 'Microsoft.ChangeAnalysis' as the provider namespace and 'az webapp update' or the equivalent PowerShell cmdlet to enable the feature per app.

Concept tested. Enabling Azure Change Analysis for web apps via scripting - specifically registering the Microsoft.ChangeAnalysis resource provider and enabling Change Analysis at the individual web app level using Azure CLI or PowerShell commands with the correct namespace, resource type, and configuration properties.

Reference. https://learn.microsoft.com/en-us/azure/azure-monitor/change/change-analysis-enable

Topics

#Azure PowerShell#Change Analysis#Azure Resource Provider#configuration management

Community Discussion

No community discussion yet for this question.

Full AZ-400 PracticeBrowse All AZ-400 Questions