Azure.ResourceManager.ApplicationInsights SDK Acceptance Criteria (.NET)
SDK: Azure.ResourceManager.ApplicationInsightsRepository: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsightsPackage: https://www.nuget.org/packages/Azure.ResourceManager.ApplicationInsightsPurpose: Skill testing acceptance criteria for validating generated C# code correctness
1. Correct Using Statements
1.1 Core Imports
✅ CORRECT: Basic Client Imports
csharp
using Azure;
using Azure.Identity;
using Azure.ResourceManager;
using Azure.ResourceManager.ApplicationInsights;
using Azure.ResourceManager.ApplicationInsights.Models;1.2 Anti-Patterns (ERRORS)
❌ INCORRECT: Using non-existent namespaces
csharp
// WRONG - These don't exist
using Azure.ApplicationInsights;
using Microsoft.ApplicationInsights.Management;2. Client Creation Patterns
2.1 ✅ CORRECT: Create ArmClient
csharp
ArmClient client = new ArmClient(new DefaultAzureCredential());2.2 Anti-Patterns (ERRORS)
❌ INCORRECT: Missing credential
csharp
// WRONG - Must provide credential
ArmClient client = new ArmClient();3. Application Insights Component Operations
3.1 ✅ CORRECT: Create Workspace-based Component (Recommended)
csharp
ApplicationInsightsComponentCollection components = resourceGroup.GetApplicationInsightsComponents();
ApplicationInsightsComponentData data = new ApplicationInsightsComponentData(
AzureLocation.EastUS,
ApplicationInsightsApplicationType.Web)
{
Kind = "web",
WorkspaceResourceId = new ResourceIdentifier(