Azure Mgmt Arizeaiobservabilityeval Dotnet

作者 microsoft354361d83247MIT收录于 2026年10月8日更新于 2026年10月8日

Azure Resource Manager SDK for Arize AI Observability and Evaluation (.NET). Use when managing Arize AI organizations on Azure via Azure Marketplace, creating/updating/deleting Arize resources, or integrating Arize ML observability into .NET applications. Triggers: "Arize AI", "ML observability", "ArizeAIObservabilityEval", "Arize organization".

AI 生成的概览

指导 .NET 开发者使用 Azure Resource Manager SDK 在 Azure 上管理 Arize AI 可观测性组织。

功能
本技能说明用于在 Azure 上管理 Arize AI 可观测性与评估组织的 Azure.ResourceManager.ArizeAIObservabilityEval .NET SDK。内容涵盖安装、使用 Azure Identity 进行身份验证,以及创建、读取、列出、更新和删除 Arize 组织的 CRUD 流程,包括 Azure Marketplace 产品详情、用户信息和 SSO 配置。还列出关键资源类型、枚举、错误处理,以及异步调用和长时间运行操作处理等最佳实践。
适用场景
适用于编写通过 Azure Resource Manager 预配或管理 Arize AI 组织的 .NET 代码,或将 Arize 机器学习可观测性资源集成到 .NET 应用程序中。适合涉及 Azure Marketplace 订阅、资源组和 Arize 组织生命周期操作的任务。
运行要求
需要 .NET SDK 和 NuGet 包 Azure.ResourceManager.ArizeAIObservabilityEval(以及 Azure.Core 和 Azure.ResourceManager),还需要 Azure 凭据和访问 Azure 的网络。使用 AZURE_SUBSCRIPTION_ID 等环境变量;若采用服务主体身份验证,还需 AZURE_TENANT_ID、AZURE_CLIENT_ID 和 AZURE_CLIENT_SECRET。该技能不包含脚本,仅为说明文档。

Azure.ResourceManager.ArizeAIObservabilityEval

.NET SDK for managing Arize AI Observability and Evaluation resources on Azure.

Installation

bash
dotnet add package Azure.ResourceManager.ArizeAIObservabilityEval --version 1.0.0

Package Info

PropertyValue
PackageAzure.ResourceManager.ArizeAIObservabilityEval
Version1.0.0 (GA)
API Version2024-10-01
ARM TypeArizeAi.ObservabilityEval/organizations
DependenciesAzure.Core >= 1.46.2, Azure.ResourceManager >= 1.13.1

Environment Variables

bash
AZURE_SUBSCRIPTION_ID=<your-subscription-id> # Required: Azure subscription IDAZURE_TOKEN_CREDENTIALS=prod  # Required only if DefaultAzureCredential is used in productionAZURE_TENANT_ID=<your-tenant-id> # For service principal auth (optional)AZURE_CLIENT_ID=<your-client-id> # For service principal auth (optional)AZURE_CLIENT_SECRET=<your-client-secret> # For service principal auth (optional)

Authentication

csharp
using Azure.Identity;using Azure.ResourceManager;using Azure.ResourceManager.ArizeAIObservabilityEval;
// Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=<specific_credential>var credential = new DefaultAzureCredential(    DefaultAzureCredential.DefaultEnvironmentVariableName);// Or use a specific credential directly in production:// See https://learn.microsoft.com/dotnet/api/overview/azure/identity-readme?view=azure-dotnet#credential-classes// var credential = new ManagedIdentityCredential();var armClient = new ArmClient(credential);

Core Workflow

Create an Arize AI Organization

csharp
using Azure.Core;using Azure.ResourceManager.Resources;using Azure.ResourceManager.ArizeAIObservabilityEval;using Azure.ResourceManager.ArizeAIObservabilityEval.Models;
// Get subscription and resource groupvar subscriptionId = Environment.GetEnvironmentVariable("AZURE_SUBSCRIPTION_ID");var subscription = await armClient.GetSubscriptionResource(    SubscriptionResource.CreateResourceIdentifier(subscriptionId)).GetAsync();var resourceGroup = await subscription.Value.GetResourceGroupAsync("my-resource-group");
// Get the organization collectionvar collection = resourceGroup.Value.GetArizeAIObservabilityEvalOrganizations();
// Create organization datavar data = new ArizeAIObservabilityEvalOrganizationData(AzureLocation.EastUS){    Properties = new ArizeAIObservabilityEvalOrganizationProperties    {        Marketplace = new ArizeAIObservabilityEvalMarketplaceDetails        {            SubscriptionId = "marketplace-subscription-id",            OfferDetails = new ArizeAIObservabilityEvalOfferDetails            {                PublisherId = "arikimlabs1649082416596",                OfferId = "arize-liftr-1",                PlanId = "arize-liftr-1-plan",                PlanName = "Arize AI Plan",                TermUnit = "P1M",                TermId = "term-id"            }        },        User = new ArizeAIObservabilityEvalUserDetails        {            FirstName = "John",            LastName = "Doe",            EmailAddress = "[email protected]"        }    },    Tags = { ["environment"] = "production" }};
// Create (long-running operation)var operation = await collection.CreateOrUpdateAsync(    WaitUntil.Completed,    "my-arize-org",    data);
var organization = operation.Value;Console.WriteLine($"Created: {organization.Data.Name}");

Get an Organization

csharp
// Option 1: From collectionvar org = await collection.GetAsync("my-arize-org");
// Option 2: Check if exists firstvar exists = await collection.ExistsAsync("my-arize-org");if (exists.Value){    var org = await collection.GetAsync("my-arize-org");}
// Option 3: GetIfExists (returns null if not found)var response = await collection.GetIfExistsAsync("my-arize-org");if (response.HasValue){    var org = response.Value;}

List Organizations

csharp
// List in resource groupawait foreach (var org in collection.GetAllAsync()){    Console.WriteLine($"Org: {org.Data.Name}, State: {org.Data.Properties?.ProvisioningState}");}
// List in subscriptionawait foreach (var org in subscription.Value.GetArizeAIObservabilityEvalOrganizationsAsync()){    Console.WriteLine($"Org: {org.Data.Name}");}

Update an Organization

csharp
// Update tagsvar org = await collection.GetAsync("my-arize-org");var updateData = new ArizeAIObservabilityEvalOrganizationPatch{    Tags = { ["environment"] = "staging", ["team"] = "ml-ops" }};var updated = await org.Value.UpdateAsync(updateData);

Delete an Organization

csharp
var org = await collection.GetAsync("my-arize-org");await org.Value.DeleteAsync(WaitUntil.Completed);

Key Types

TypePurpose
ArizeAIObservabilityEvalOrganizationResourceMain ARM resource for Arize organizations
ArizeAIObservabilityEvalOrganizationCollectionCollection for CRUD operations
ArizeAIObservabilityEvalOrganizationDataResource data model
ArizeAIObservabilityEvalOrganizationPropertiesOrganization properties
ArizeAIObservabilityEvalMarketplaceDetailsAzure Marketplace subscription info
ArizeAIObservabilityEvalOfferDetailsMarketplace offer configuration
ArizeAIObservabilityEvalUserDetailsUser contact information
ArizeAIObservabilityEvalOrganizationPatchPatch model for updates
ArizeAIObservabilityEvalSingleSignOnPropertiesV2SSO configuration

Enums

EnumValues
ArizeAIObservabilityEvalOfferProvisioningStateSucceeded, Failed, Canceled, Provisioning, Updating, Deleting, Accepted
ArizeAIObservabilityEvalMarketplaceSubscriptionStatusPendingFulfillmentStart, Subscribed, Suspended, Unsubscribed
ArizeAIObservabilityEvalSingleSignOnStateInitial, Enable, Disable
ArizeAIObservabilityEvalSingleSignOnTypeSaml, OpenId

Best Practices

  1. Use async methods — All operations support async/await
  2. Handle long-running operations — Use WaitUntil.Completed or poll manually
  3. Use GetIfExistsAsync — Avoid exceptions for conditional logic
  4. Implement retry policies — Configure via ArmClientOptions
  5. Use resource identifiers — For direct resource access without listing
  6. Close clients properly — Use using statements or dispose explicitly

Error Handling

csharp
try{    var org = await collection.GetAsync("my-arize-org");}catch (Azure.RequestFailedException ex) when (ex.Status == 404){    Console.WriteLine("Organization not found");}catch (Azure.RequestFailedException ex){    Console.WriteLine($"Azure error: {ex.Message}");}

Direct Resource Access

csharp
// Access resource directly by ID (without listing)var resourceId = ArizeAIObservabilityEvalOrganizationResource.CreateResourceIdentifier(    subscriptionId,    "my-resource-group",    "my-arize-org");
var org = armClient.GetArizeAIObservabilityEvalOrganizationResource(resourceId);var data = await org.GetAsync();

Links

来源与署名

来源:microsoft/skills位于.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-arizeaiobservabilityeval-dotnet提交354361d

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架