You manage many App Service apps, each linked to an Application Insights instance, and want to remove Classic availability tests via PowerShell. Which condition should replace $condition in: Get-AzApplicationInsightsWebTest | Where-Object { $condition } ?
Choose an answer
Tap an option to check your answer.
Correct answer: $_.WebTestKind -eq "ping".
Why this is the answer
The correct condition is $.WebTestKind -eq "ping" because Classic availability tests, which are being deprecated, are identified by the WebTestKind property with a value of "ping". This property distinguishes them from the newer URL ping tests. $.Type -eq "ping" is incorrect because Type refers to the resource type, which for all Application Insights web tests is Microsoft.Insights/webtests, not "ping". $.WebTestKind -eq "standard" is incorrect because "standard" refers to the new, recommended URL ping tests, not the Classic tests you intend to remove. $.Type -eq "standard" is incorrect for the same reasons as the other Type option; Type is the resource type, and "standard" is a WebTestKind value for the newer tests.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed