microsoft/skills

azure-resource-manager-playwright-dotnet

用 .NET ARM SDK 建立 Playwright Workspace并查询配额

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

azure-resource-manager-playwright-dotnet 是什么?

这个 Skill 使用 Azure.ResourceManager.Playwright 管理 Microsoft Playwright Testing workspace、区域亲和、本地认证、订阅/工作区配额和名称可用性。它不运行测试;测试执行要用对应 Playwright/NUnit 客户端。

中文说明由本站依据来源整理;英文原文保留在页面下方。

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 azure-resource-manager-playwright-dotnet,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 azure-resource-manager-playwright-dotnet

请在 Codex 的当前工作环境中安装并检查 azure-resource-manager-playwright-dotnet 这个 Skill。

项目身份:microsoft/skills / azure-resource-manager-playwright-dotnet
来源:https://github.com/microsoft/skills/blob/f03ec5392f7a0f3aca12af47477e92f1edf7b44c/.github/plugins/azure-sdk-dotnet/skills/azure-resource-manager-playwright-dotnet/SKILL.md
已定位的源文件:.github/plugins/azure-sdk-dotnet/skills/azure-resource-manager-playwright-dotnet/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 安装 Azure.ResourceManager.Playwright 和 Azure.Identity,配置订阅与 ARM权限。
  • 核对服务区域、工作区命名、localAuth策略及配额;云端测试可能按用量计费。
  • 了解控制面创建得到的 DataplaneUri 和 workspace ID 将由另一测试执行 SDK 使用。

实际使用顺序

  1. 先查询目标区域订阅配额,列出现有 workspaces 和 provisioning state。
  2. 用名称可用性 API 检查 workspace name,创建前确定 regionalAffinity 和 localAuth设置。
  3. 创建完成后保存 workspace ID 与 DataplaneUri,交给测试执行工程配置 Playwright service URL。
  4. 需要扩容量时确认工作区/订阅配额并走测试执行SDK;资源更新与实际跑测试分开验证。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

请为目标订阅生成只读 Playwright workspace盘点草案:列出工作区名称、区域、状态、DataplaneUri以及指定区域配额的limit/used,不创建或删除工作区。
预期结果

得到控制面盘点流程;未访问 Azure 或执行测试。

使用前先看这些限制

使用条件与边界

  • ARM SDK不运行 Playwright tests;DataplaneUri是测试服务入口,不是 ARM 管理 endpoint。
  • localAuth 启用会影响认证方式,应按组织安全策略配置,避免无意放宽访问。
  • 源文将测试执行 SDK标为历史 MicrosoftPlaywrightTesting.NUnit,当前采用前应按实际服务迁移状态核对。
针对这个 Skill 的疑问

常见问题

创建工作区后可以直接调用测试了吗?

还需要配置对应测试执行包、服务URL、身份凭据与测试项目;工作区资源就绪本身不运行测试。

为什么ARM显示成功但 Playwright 无法连接?

检查 workspace provisioningState、DataplaneUri、测试客户端包与版本、身份授权/区域和配额。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

.github/plugins/azure-sdk-dotnet/skills/azure-resource-manager-playwright-dotnet/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Azure Resource Manager SDK for Microsoft Playwright Testing in .NET. Use for MANAGEMENT PLANE operations: creating/managing Playwright Testing workspaces, checking name availability, and managing workspace quotas via Azure Resource Manager. NOT for running Playwright tests - use Azure.Developer.MicrosoftPlaywrightTesting.NUnit for that. Triggers: "Playwright workspace", "create Playwright Testing workspace", "manage Playwright resources", "ARM Playwright", "PlaywrightWorkspaceResource", "provision Playwright Testing".

查看源文件章节 / Source sections
  • 原文:Azure.ResourceManager.Playwright (.NET)
  • 安装 / Installation
  • 原文:Environment Variables
  • 原文:Authentication
  • 原文:Resource Hierarchy
  • 原文:Core Workflow
  • 原文:1. Create Playwright Workspace
  • 原文:2. Get Existing Workspace
  • 原文:3. List Workspaces
  • 原文:4. Update Workspace
  • 原文:5. Check Name Availability
  • 原文:6. Get Quota Information
  • 原文:7. Delete Workspace
  • 原文:Key Types Reference
  • 原文:Workspace Properties
  • 原文:Best Practices
  • 原文:Error Handling
  • 原文:Integration with Test Execution
  • 原文:Related SDKs
  • 原文:API Information
  • 原文:Documentation Links
原文:Azure.ResourceManager.Playwright (.NET)

Management plane SDK for provisioning and managing Microsoft Playwright Testing workspaces via Azure Resource Manager. > **⚠️ Management vs Test Execution** > - **This SDK (Azure.ResourceManager.Playwright)**: Create workspaces, manage quotas, check name availability > - **Test Execution SDK (Azure.Developer.MicrosoftPlaywrightTesting.NUnit)**: Run Playwright tests at scale on cloud browsers

安装 / Installation

```bash dotnet add package Azure.ResourceManager.Playwright dotnet add package Azure.Identity ``` **Current Versions**: Stable v1.0.0, Preview v1.0.0-beta.1

原文:Environment Variables

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

原文:Authentication

```csharp using Azure.Identity; using Azure.ResourceManager; using Azure.ResourceManager.Playwright; // 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); // Get subscription var subscriptionId = Environment.GetEnvironmentVariable("AZURE_SUBSCRIPTION_ID"); var subscription = armClient.GetSubscriptionResource( new ResourceIdentifier($"/subscriptions/{subscriptionId}")); ```

原文:Resource Hierarchy

``` ArmClient └── SubscriptionResource ├── PlaywrightQuotaResource (subscription-level quotas) └── ResourceGroupResource └── PlaywrightWorkspaceResource └── PlaywrightWorkspaceQuotaResource (workspace-level quotas) ```

原文:1. Create Playwright Workspace

```csharp using Azure.ResourceManager.Playwright; using Azure.ResourceManager.Playwright.Models; // Get resource group var resourceGroup = await subscription .GetResourceGroupAsync("my-resource-group"); // Define workspace var workspaceData = new PlaywrightWorkspaceData(AzureLocation.WestUS3) { // Optional: Configure regional affinity and local auth RegionalAffinity = PlaywrightRegionalAffinity.Enabled, LocalAuth = PlaywrightLocalAuth.Enabled, Tags = { ["Team"] = "Dev Exp", ["Environment"] = "Production" } }; // Create workspace (long-running operation) var workspaceCollection = resourceGroup.Value.GetPlaywrightWorkspaces(); var operation = await workspaceCollection.CreateOrUpdateAsync( WaitUntil.Completed, "my-playwright-workspace", workspaceData); PlaywrightWorkspaceResource workspace = operation.Value; // Get the data plane URI for running tests Console.WriteLine($"Data Plane URI: {workspace.Data.DataplaneUri}"); Console.WriteLine($"Workspace ID: {workspace.Data.WorkspaceId}"); ```

文件 SHA256:019b205f338274a141a25801d9d4320a9d2e65e44f175a2012ede29d58c374d2

仓库许可证记录:MIT;skill-declaration-captured-not-interpreted,查看来源。

SKILL.md原文description · 2026-11-16T12:36:35.145Z

Azure Resource Manager SDK for Microsoft Playwright Testing in .NET. Use for MANAGEMENT PLANE operations: creating/managing Playwright Testing workspaces, checking name availability, and managing workspace quotas via Azure Resource Manager. NOT for running Playwright tests - use Azure.Developer.MicrosoftPlaywrightTesting.NUnit for that. Triggers: "Playwright workspace", "create Playwright Testing workspace", "manage Playwright resources", "ARM Playwright", "PlaywrightWorkspaceResource", "provision Playwright Testing".

查看历史简介来源

历史收录数据

来源仓库microsoft/skills
Skill源路径.github/plugins/azure-sdk-dotnet/skills/azure-resource-manager-playwright-dotnet/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源