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
Current Versions: Stable v1.0.0, Preview v1.0.0-beta.1
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
- Use
WaitUntil.Completedfor operations that must finish before proceeding - Use
WaitUntil.Startedwhen you want to poll manually or run operations in parallel - Always use
DefaultAzureCredential— never hardcode keys - Handle
RequestFailedExceptionfor ARM API errors - Use
CreateOrUpdateAsyncfor idempotent operations - Navigate hierarchy via
Get*methods (e.g.,resourceGroup.GetPlaywrightWorkspaces()) - Store the DataplaneUri after workspace creation for test execution configuration
Error Handling
Integration with Test Execution
After creating a workspace, use the DataplaneUri to configure your Playwright tests:
Related SDKs
API Information
- Resource Provider:
Microsoft.LoadTestService - Default API Version:
2025-09-01 - Resource Type:
Microsoft.LoadTestService/playwrightWorkspaces
