Chuyển đến nội dung
Skillpedia
Agent48k · #3959

azure-mgmt-mongodbatlas-dotnet

Skill này làm gì

Công cụ này cho phép bạn quản lý các tổ chức MongoDB Atlas như tài nguyên Azure. Nó tích hợp thanh toán của MongoDB Atlas với Azure Marketplace.

Khi nào nên dùng

  • ✓Khi thiết lập quyền truy cập Azure cho tổ chức MongoDB Atlas của bạn.
  • ✓Khi bạn muốn gộp thanh toán MongoDB Atlas với các gói đăng ký Azure của mình.
  • ✓Khi bạn quản lý vòng đời tổ chức MongoDB Atlas bằng các công cụ của Azure.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/azure-mgmt-mongodbatlas-dotnet/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/azure-mgmt-mongodbatlas-dotnet/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo một tổ chức MongoDB Atlas tên “my-atlas-org” ở khu vực “EastUS2” với thông tin marketplace và người dùng.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Bạn dùng một đoạn mã đặc biệt (SDK) để kết nối với Azure. Mã này cho phép tạo, xem, cập nhật hoặc xóa tổ chức MongoDB Atlas, coi chúng như thể là tài nguyên Azure.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Azure.ResourceManager.MongoDBAtlas SDK

Manage MongoDB Atlas Organizations as Azure ARM resources with unified billing through Azure Marketplace.

Package Information

Property Value
Package Azure.ResourceManager.MongoDBAtlas
Version 1.0.0 (GA)
API Version 2025-06-01
Resource Type MongoDB.Atlas/organizations
NuGet Azure.ResourceManager.MongoDBAtlas

Installation

dotnet add package Azure.ResourceManager.MongoDBAtlas
dotnet add package Azure.Identity
dotnet add package Azure.ResourceManager

Important Scope Limitation

This SDK manages MongoDB Atlas Organizations as Azure ARM resources for marketplace integration. It does NOT directly manage:

  • Atlas clusters
  • Databases
  • Collections
  • Users/roles

For cluster management, use the MongoDB Atlas API directly after creating the organization.

Authentication

using Azure.Identity;
using Azure.ResourceManager;
using Azure.ResourceManager.MongoDBAtlas;
using Azure.ResourceManager.MongoDBAtlas.Models;

// Create ARM client with DefaultAzureCredential
var credential = new DefaultAzureCredential();
var armClient = new ArmClient(credential);

Core Types

Type Purpose
MongoDBAtlasOrganizationResource ARM resource representing an Atlas organization
MongoDBAtlasOrganizationCollection Collection of organizations in a resource group
MongoDBAtlasOrganizationData Data model for organization resource
MongoDBAtlasOrganizationProperties Organization-specific properties
MongoDBAtlasMarketplaceDetails Azure Marketplace subscription details
MongoDBAtlasOfferDetails Marketplace offer configuration
MongoDBAtlasUserDetails User information for the organization
MongoDBAtlasPartnerProperties MongoDB-specific properties (org name, ID)

Workflows

Get Organization Collection

// Get resource group
var subscription = await armClient.GetDefaultSubscriptionAsync();
var resourceGroup = await subscription.GetResourceGroupAsync("my-resource-group");

// Get organizations collection
MongoDBAtlasOrganizationCollection organizations = 
    resourceGroup.Value.GetMongoDBAtlasOrganizations();

Create Organization

var organizationName = "my-atlas-org";
var location = AzureLocation.EastUS2;

// Build organization data
var organizationData = new MongoDBAtlasOrganizationData(location)
{
    Properties = new MongoDBAtlasOrganizationProperties(
        marketplace: new MongoDBAtlasMarketplaceDetails(
            subscriptionId: "your-azure-subscription-id",
            offerDetails: new MongoDBAtlasOfferDetails(
                publisherId: "mongodb",
                offerId: "mongodb_atlas_azure_native_prod",
                planId: "private_plan",
                planName: "Pay as You Go (Free) (Private)",
                termUnit: "P1M",
                termId: "gmz7xq9ge3py"
            )
        ),
        user: new MongoDBAtlasUserDetails(
            emailAddress: "admin@example.com",
            upn: "admin@example.com"
        )
        {
            FirstName = "Admin",
            LastName = "User"
        }
    )
    {
        PartnerProperties = new MongoDBAtlasPartnerProperties
        {
            OrganizationName = organizationName
        }
    },
    Tags = { ["Environment"] = "Production" }
};

// Create the organization (long-running operation)
var operation = await organizations.CreateOrUpdateAsync(
    WaitUntil.Completed,
    organizationName,
    organizationData
);

MongoDBAtlasOrganizationResource organization = operation.Value;
Console.WriteLine($"Created: {organization.Id}");

Get Existing Organization

// Option 1: From collection
MongoDBAtlasOrganizationResource org = 
    await organizations.GetAsync("my-atlas-org");

// Option 2: From resource identifier
var resourceId = MongoDBAtlasOrganizationResource.CreateResourceIdentifier(
    subscriptionId: "subscription-id",
    resourceGroupName: "my-resource-group",
    organizationName: "my-atlas-org"
);
MongoDBAtlasOrganizationResource org2 = 
    armClient.GetMongoDBAtlasOrganizationResource(resourceId);
await org2.GetAsync(); // Fetch data

List Organizations

// List in resource group
await foreach (var org in organizations.GetAllAsync())
{
    Console.WriteLine($"Org: {org.Data.Name}");

…
Câu hỏi thường gặp

“Tổ chức MongoDB Atlas” là gì?

Đó là nơi chứa các dự án và cơ sở dữ liệu của bạn trong MongoDB Atlas, giúp quản lý quyền truy cập và cài đặt ở cấp cao hơn.

“Tài nguyên ARM của Azure” là gì?

Đó là các tài nguyên bạn quản lý trong Microsoft Azure, như máy ảo, cơ sở dữ liệu và trong trường hợp này là các tổ chức MongoDB Atlas.

Tôi có thể quản lý cơ sở dữ liệu và cụm (cluster) bằng công cụ này không?

Không. Công cụ này tập trung vào việc quản lý tổ chức MongoDB Atlas chính. Để quản lý cluster và cơ sở dữ liệu, bạn cần dùng trực tiếp giao diện MongoDB Atlas.

Chi tiết

Mô tả gốc của tác giả

Manage MongoDB Atlas Organizations as Azure ARM resources with unified billing through Azure Marketplace.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#3959
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự