[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-eb1b1f15-1527-4935-b658-dd709cd82d9a":3,"$fnQ9_lKqte6rSbdEpRlhU7hwRbCr1iY-gc8xuU-7clq4":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"eb1b1f15-1527-4935-b658-dd709cd82d9a","azure-mgmt-weightsandbiases-dotnet","Azure Weights & Biases SDK for .NET。通过Azure Marketplace进行机器学习实验跟踪和模型管理。用于创建W&B实例、管理SSO、市场集成和机器学习可观察性。","cat_coding_devops","mod_coding","sickn33,coding","---\nname: azure-mgmt-weightsandbiases-dotnet\ndescription: Azure Weights & Biases SDK for .NET. ML experiment tracking and model management via Azure Marketplace. Use for creating W&B instances, managing SSO, marketplace integration, and ML observability.\nrisk: unknown\nsource: community\ndate_added: '2026-02-27'\n---\n\n# Azure.ResourceManager.WeightsAndBiases (.NET)\n\nAzure Resource Manager SDK for deploying and managing Weights & Biases ML experiment tracking instances via Azure Marketplace.\n\n## Installation\n\n```bash\ndotnet add package Azure.ResourceManager.WeightsAndBiases --prerelease\ndotnet add package Azure.Identity\n```\n\n**Current Version**: v1.0.0-beta.1 (preview)  \n**API Version**: 2024-09-18-preview\n\n## Environment Variables\n\n```bash\nAZURE_SUBSCRIPTION_ID=\u003Cyour-subscription-id>\nAZURE_RESOURCE_GROUP=\u003Cyour-resource-group>\nAZURE_WANDB_INSTANCE_NAME=\u003Cyour-wandb-instance>\n```\n\n## Authentication\n\n```csharp\nusing Azure.Identity;\nusing Azure.ResourceManager;\nusing Azure.ResourceManager.WeightsAndBiases;\n\nArmClient client = new ArmClient(new DefaultAzureCredential());\n```\n\n## Resource Hierarchy\n\n```\nSubscription\n└── ResourceGroup\n    └── WeightsAndBiasesInstance    # W&B deployment from Azure Marketplace\n        ├── Properties\n        │   ├── Marketplace          # Offer details, plan, publisher\n        │   ├── User                 # Admin user info\n        │   ├── PartnerProperties    # W&B-specific config (region, subdomain)\n        │   └── SingleSignOnPropertiesV2  # Entra ID SSO configuration\n        └── Identity                 # Managed identity (optional)\n```\n\n## Core Workflows\n\n### 1. Create Weights & Biases Instance\n\n```csharp\nusing Azure.ResourceManager.WeightsAndBiases;\nusing Azure.ResourceManager.WeightsAndBiases.Models;\n\nResourceGroupResource resourceGroup = await client\n    .GetDefaultSubscriptionAsync()\n    .Result\n    .GetResourceGroupAsync(\"my-resource-group\");\n\nWeightsAndBiasesInstanceCollection instances = resourceGroup.GetWeightsAndBiasesInstances();\n\nWeightsAndBiasesInstanceData data = new WeightsAndBiasesInstanceData(AzureLocation.EastUS)\n{\n    Properties = new WeightsAndBiasesInstanceProperties\n    {\n        \u002F\u002F Marketplace configuration\n        Marketplace = new WeightsAndBiasesMarketplaceDetails\n        {\n            SubscriptionId = \"\u003Cmarketplace-subscription-id>\",\n            OfferDetails = new WeightsAndBiasesOfferDetails\n            {\n                PublisherId = \"wandb\",\n                OfferId = \"wandb-pay-as-you-go\",\n                PlanId = \"wandb-payg\",\n                PlanName = \"Pay As You Go\",\n                TermId = \"monthly\",\n                TermUnit = \"P1M\"\n            }\n        },\n        \u002F\u002F Admin user\n        User = new WeightsAndBiasesUserDetails\n        {\n            FirstName = \"Admin\",\n            LastName = \"User\",\n            EmailAddress = \"admin@example.com\",\n            Upn = \"admin@example.com\"\n        },\n        \u002F\u002F W&B-specific configuration\n        PartnerProperties = new WeightsAndBiasesPartnerProperties\n        {\n            Region = WeightsAndBiasesRegion.EastUS,\n            Subdomain = \"my-company-wandb\"\n        }\n    },\n    \u002F\u002F Optional: Enable managed identity\n    Identity = new ManagedServiceIdentity(ManagedServiceIdentityType.SystemAssigned)\n};\n\nArmOperation\u003CWeightsAndBiasesInstanceResource> operation = await instances\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"my-wandb-instance\", data);\n\nWeightsAndBiasesInstanceResource instance = operation.Value;\n\nConsole.WriteLine($\"W&B Instance created: {instance.Data.Name}\");\nConsole.WriteLine($\"Provisioning state: {instance.Data.Properties.ProvisioningState}\");\n```\n\n### 2. Get Existing Instance\n\n```csharp\nWeightsAndBiasesInstanceResource instance = await resourceGroup\n    .GetWeightsAndBiasesInstanceAsync(\"my-wandb-instance\");\n\nConsole.WriteLine($\"Instance: {instance.Data.Name}\");\nConsole.WriteLine($\"Location: {instance.Data.Location}\");\nConsole.WriteLine($\"State: {instance.Data.Properties.ProvisioningState}\");\n\nif (instance.Data.Properties.PartnerProperties != null)\n{\n    Console.WriteLine($\"Region: {instance.Data.Properties.PartnerProperties.Region}\");\n    Console.WriteLine($\"Subdomain: {instance.Data.Properties.PartnerProperties.Subdomain}\");\n}\n```\n\n### 3. List All Instances\n\n```csharp\n\u002F\u002F List in resource group\nawait foreach (WeightsAndBiasesInstanceResource instance in \n    resourceGroup.GetWeightsAndBiasesInstances())\n{\n    Console.WriteLine($\"Instance: {instance.Data.Name}\");\n    Console.WriteLine($\"  Location: {instance.Data.Location}\");\n    Console.WriteLine($\"  State: {instance.Data.Properties.ProvisioningState}\");\n}\n\n\u002F\u002F List in subscription\nSubscriptionResource subscription = await client.GetDefaultSubscriptionAsync();\nawait foreach (WeightsAndBiasesInstanceResource instance in \n    subscription.GetWeightsAndBiasesInstancesAsync())\n{\n    Console.WriteLine($\"{instance.Data.Name} in {instance.Id.ResourceGroupName}\");\n}\n```\n\n### 4. Configure Single Sign-On (SSO)\n\n```csharp\nWeightsAndBiasesInstanceResource instance = await resourceGroup\n    .GetWeightsAndBiasesInstanceAsync(\"my-wandb-instance\");\n\n\u002F\u002F Update with SSO configuration\nWeightsAndBiasesInstanceData updateData = instance.Data;\n\nupdateData.Properties.SingleSignOnPropertiesV2 = new WeightsAndBiasSingleSignOnPropertiesV2\n{\n    Type = WeightsAndBiasSingleSignOnType.Saml,\n    State = WeightsAndBiasSingleSignOnState.Enable,\n    EnterpriseAppId = \"\u003Centra-app-id>\",\n    AadDomains = { \"example.com\", \"contoso.com\" }\n};\n\nArmOperation\u003CWeightsAndBiasesInstanceResource> operation = await resourceGroup\n    .GetWeightsAndBiasesInstances()\n    .CreateOrUpdateAsync(WaitUntil.Completed, \"my-wandb-instance\", updateData);\n```\n\n### 5. Update Instance\n\n```csharp\nWeightsAndBiasesInstanceResource instance = await resourceGroup\n    .GetWeightsAndBiasesInstanceAsync(\"my-wandb-instance\");\n\n\u002F\u002F Update tags\nWeightsAndBiasesInstancePatch patch = new WeightsAndBiasesInstancePatch\n{\n    Tags =\n    {\n        { \"environment\", \"production\" },\n        { \"team\", \"ml-platform\" },\n        { \"costCenter\", \"CC-ML-001\" }\n    }\n};\n\ninstance = await instance.UpdateAsync(patch);\nConsole.WriteLine($\"Updated instance: {instance.Data.Name}\");\n```\n\n### 6. Delete Instance\n\n```csharp\nWeightsAndBiasesInstanceResource instance = await resourceGroup\n    .GetWeightsAndBiasesInstanceAsync(\"my-wandb-instance\");\n\nawait instance.DeleteAsync(WaitUntil.Completed);\nConsole.WriteLine(\"Instance deleted\");\n```\n\n### 7. Check Resource Name Availability\n\n```csharp\n\u002F\u002F Check if name is available before creating\n\u002F\u002F (Implement via direct ARM call if SDK doesn't expose this)\ntry\n{\n    await resourceGroup.GetWeightsAndBiasesInstanceAsync(\"desired-name\");\n    Console.WriteLine(\"Name is already taken\");\n}\ncatch (RequestFailedException ex) when (ex.Status == 404)\n{\n    Console.WriteLine(\"Name is available\");\n}\n```\n\n## Key Types Reference\n\n| Type | Purpose |\n|------|---------|\n| `WeightsAndBiasesInstanceResource` | W&B instance resource |\n| `WeightsAndBiasesInstanceData` | Instance configuration data |\n| `WeightsAndBiasesInstanceCollection` | Collection of instances |\n| `WeightsAndBiasesInstanceProperties` | Instance properties |\n| `WeightsAndBiasesMarketplaceDetails` | Marketplace subscription info |\n| `WeightsAndBiasesOfferDetails` | Marketplace offer details |\n| `WeightsAndBiasesUserDetails` | Admin user information |\n| `WeightsAndBiasesPartnerProperties` | W&B-specific configuration |\n| `WeightsAndBiasSingleSignOnPropertiesV2` | SSO configuration |\n| `WeightsAndBiasesInstancePatch` | Patch for updates |\n| `WeightsAndBiasesRegion` | Supported regions enum |\n\n## Available Regions\n\n| Region Enum | Azure Region |\n|-------------|--------------|\n| `WeightsAndBiasesRegion.EastUS` | East US |\n| `WeightsAndBiasesRegion.CentralUS` | Central US |\n| `WeightsAndBiasesRegion.WestUS` | West US |\n| `WeightsAndBiasesRegion.WestEurope` | West Europe |\n| `WeightsAndBiasesRegion.JapanEast` | Japan East |\n| `WeightsAndBiasesRegion.KoreaCentral` | Korea Central |\n\n## Marketplace Offer Details\n\nFor Azure Marketplace integration:\n\n| Property | Value |\n|----------|-------|\n| Publisher ID | `wandb` |\n| Offer ID | `wandb-pay-as-you-go` |\n| Plan ID | `wandb-payg` (Pay As You Go) |\n\n## Best Practices\n\n1. **Use DefaultAzureCredential** — Supports multiple auth methods automatically\n2. **Enable managed identity** — For secure access to other Azure resources\n3. **Configure SSO** — Enable Entra ID SSO for enterprise security\n4. **Tag resources** — Use tags for cost tracking and organization\n5. **Check provisioning state** — Wait for `Succeeded` before using instance\n6. **Use appropriate region** — Choose region closest to your compute\n7. **Monitor with Azure** — Use Azure Monitor for resource health\n\n## Error Handling\n\n```csharp\nusing Azure;\n\ntry\n{\n    ArmOperation\u003CWeightsAndBiasesInstanceResource> operation = await instances\n        .CreateOrUpdateAsync(WaitUntil.Completed, \"my-wandb\", data);\n}\ncatch (RequestFailedException ex) when (ex.Status == 409)\n{\n    Console.WriteLine(\"Instance already exists or name conflict\");\n}\ncatch (RequestFailedException ex) when (ex.Status == 400)\n{\n    Console.WriteLine($\"Invalid configuration: {ex.Message}\");\n}\ncatch (RequestFailedException ex)\n{\n    Console.WriteLine($\"Azure error: {ex.Status} - {ex.Message}\");\n}\n```\n\n## Integration with W&B SDK\n\nAfter creating the Azure resource, use the W&B Python SDK for experiment tracking:\n\n```python\n# Install: pip install wandb\nimport wandb\n\n# Login with your W&B API key from the Azure-deployed instance\nwandb.login(host=\"https:\u002F\u002Fmy-company-wandb.wandb.ai\")\n\n# Initialize a run\nrun = wandb.init(project=\"my-ml-project\")\n\n# Log metrics\nwandb.log({\"accuracy\": 0.95, \"loss\": 0.05})\n\n# Finish run\nrun.finish()\n```\n\n## Related SDKs\n\n| SDK | Purpose | Install |\n|-----|---------|---------|\n| `Azure.ResourceManager.WeightsAndBiases` | W&B instance management (this SDK) | `dotnet add package Azure.ResourceManager.WeightsAndBiases --prerelease` |\n| `Azure.ResourceManager.MachineLearning` | Azure ML workspaces | `dotnet add package Azure.ResourceManager.MachineLearning` |\n\n## Reference Links\n\n| Resource | URL |\n|----------|-----|\n| NuGet Package | https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FAzure.ResourceManager.WeightsAndBiases |\n| W&B Documentation | https:\u002F\u002Fdocs.wandb.ai\u002F |\n| Azure Marketplace | https:\u002F\u002Fazuremarketplace.microsoft.com\u002Fmarketplace\u002Fapps\u002Fwandb.wandb-pay-as-you-go |\n| GitHub Source | https:\u002F\u002Fgithub.com\u002FAzure\u002Fazure-sdk-for-net\u002Ftree\u002Fmain\u002Fsdk\u002Fweightsandbiases |\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,247,1128,"2026-05-16 13:07:08",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"编程开发","coding","mdi-code-braces","代码生成、调试、审查，提升开发效率",2,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"DevOps","devops","mdi-cog-outline","CI\u002FCD、容器化、部署运维",3,162,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"781ec62e-1ed4-460a-bae9-391a54ef79f7","1.0.0","azure-mgmt-weightsandbiases-dotnet.zip",3439,"uploads\u002Fskills\u002Feb1b1f15-1527-4935-b658-dd709cd82d9a\u002Fazure-mgmt-weightsandbiases-dotnet.zip","6cd7d595fad607ed3148037d66e801943ab5bca879e656b446ae580ab457eba0","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":10966}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]