Cloud service · Azure · Updated

Microsoft Playwright Testing - Microsoft Playwright Testing is a managed Azure service for running Playwright end-to-end tests against cloud-hosted browsers, with an announced retirement date of March 8, 2026.

In short

The service provides scalable browser infrastructure for automated web application testing, with parallel execution and centralized test results and diagnostic artifacts. Test code runs on a developer workstation or CI agent and controls remote browsers. Microsoft announced retirement for March 8, 2026 and directs customers to create Playwright Workspaces in Azure App Testing.

Cloud Services Hub →

7 key features of Microsoft Playwright Testing

01
Managed cloud browsers

Run browser interactions on managed infrastructure instead of maintaining a browser fleet. Test orchestration remains on the workstation or CI agent, which still needs sufficient compute capacity.

02
Parallel test execution

Use multiple Playwright workers to execute independent scenarios concurrently. Increase concurrency gradually and isolate test data to avoid contention in the application under test.

03
Cross-browser validation

Exercise supported browser and operating-system combinations through test configuration. Check service compatibility rather than assuming that every locally available browser channel or desktop platform is supported.

04
Existing test reuse

Connect existing Playwright suites to cloud browsers using integration packages and workspace settings. Keep application assertions separate from service configuration to simplify maintenance and migration.

05
Centralized reporting

Publish test outcomes and diagnostic artifacts such as logs, screenshots, and traces for shared investigation. Configure artifact capture explicitly and avoid exposing sensitive application data.

06
Microsoft Entra ID authentication

Microsoft Entra ID authentication was introduced in preview for accessing the testing service. Workspace authentication and authentication to the application under test are separate concerns.

07
NUnit support

Preview NUnit support enables C# teams to use the service for browser-based tests. This does not imply support for every .NET test runner or every Playwright language binding.

Where Microsoft Playwright Testing is used

  1. 01
    Pull-request regression checks

    Run critical user journeys after deploying a branch to a test environment, and fail the pipeline when assertions fail. Use Playwright Workspaces in Azure App Testing for new implementations.

  2. 02
    Cross-browser release validation

    Validate checkout, navigation, and form submission across supported browser configurations before release. Report results per configuration so browser-specific failures remain visible.

  3. 03
    Large functional regression suites

    Distribute independent scenarios across concurrent browser sessions to reduce elapsed execution time. Provide sufficient client capacity and unique test accounts so additional workers do not introduce bottlenecks.

  4. 04
    Collaborative failure investigation

    Publish CI results and traces so developers and testers can inspect the same evidence. Capture detailed artifacts selectively to balance diagnostic value, data exposure, and reporting consumption.

  5. 05
    Migration to Azure App Testing

    Move existing automation to a new Playwright Workspace in preparation for the announced March 8, 2026 retirement. Compare authentication behavior, network connectivity, representative test outcomes, and result handling before switching pipelines.

How Microsoft Playwright Testing is priced

Consumption-based browser execution

Browser execution is metered in browser minutes rather than only pipeline wall-clock time. Concurrent browser sessions contribute to aggregate consumption, so higher parallelism does not necessarily reduce execution charges; use current Azure App Testing pricing when estimating replacement deployments.

Usage-based reporting

The service's reporting capability has separate usage-based pricing for published test results. Include reporting consumption when reviewing costs, and check the replacement service's current reporting options and billing before migration.

Services Microsoft Playwright Testing works with

A common architecture uses Azure Pipelines for test orchestration, an Azure App Service staging slot for the application, and a managed Playwright workspace for browser execution. The agent runs fixtures and assertions while remote browsers interact with the application. Pipeline configuration must explicitly evaluate test outcomes, retain diagnostic evidence, and block deployment promotion when required checks fail.

Identity, secrets, and connectivity are separate design concerns. Microsoft Entra ID controls access to the testing workspace, while dedicated application accounts authenticate user journeys. The runner can retrieve those accounts' credentials from Azure Key Vault. Network access available to the runner does not automatically provide equivalent access from cloud browsers, so validate endpoint reachability and application access restrictions independently.

Application Insights adds server-side evidence when tests and applications share a correlation identifier. Browser traces can then be investigated alongside request failures and exceptions. New architectures should target Playwright Workspaces in Azure App Testing, and existing integrations should be migrated in preparation for the announced March 8, 2026 retirement. Validate package compatibility, workspace permissions, artifact handling, and deployment gates during that transition.

Azure DevOps

Azure Pipelines can run the test runner on a build agent and connect it to managed cloud browsers. For example, deploy a staging build, execute checkout smoke tests, and block promotion when the runner returns a failure. Update workspace connection settings and authentication when migrating to Playwright Workspaces for the announced March 8, 2026 retirement.

App Service

An App Service application can be the target of browser-based end-to-end tests without requiring a special hosting connector. For example, deploy to a staging slot, set the test base URL to its hostname, and verify order creation before swapping slots. Confirm that remote browsers can reach the endpoint and satisfy its access restrictions.

Azure Key Vault

The CI runner can retrieve application test credentials from Key Vault before starting the suite. For example, load a staging-user password into a protected runtime variable instead of storing it in the repository. This is a runner-side integration, and diagnostic artifacts still need controls to prevent secret disclosure.

Azure Monitor

Application telemetry can complement browser diagnostics when investigating failures. For example, instrument test requests with a nonsecret run identifier and use it to find related server exceptions in Application Insights. This correlation requires application or test instrumentation and is not an automatic export from Playwright reporting.

Azure Blob Storage

With reporting enabled in Playwright Workspaces, the Azure Playwright reporter uploads HTML reports and their artifacts, such as screenshots and traces, to a linked blob storage account. The workspace portal links to the uploaded reports so you can inspect failed runs.

Azure Policy

Playwright workspace deployments can be governed by Azure Policy rules that target the workspace resource type. For example, a deny policy can block workspace creation outside approved Azure regions.

Azure portal

You can create and configure a Playwright workspace in the Azure portal, copy its regional endpoint, and manage its authentication and reporting settings. The portal also displays published test runs and links to their reports.

Azure Resource Manager

Microsoft Playwright Testing workspaces are Azure Resource Manager resources. An ARM template can provision a workspace and set configuration options such as whether access-token authentication is enabled.

Azure role-based access control (Azure RBAC)

Playwright workspaces use Azure RBAC to control who can manage a workspace or use it to run tests with Microsoft Entra authentication. When blob-backed reporting is enabled, test runners also need a storage data role, such as Storage Blob Data Contributor, to upload reports.

Foundry Agent Service

The Browser Automation tool in Foundry Agent Service uses a connected Playwright workspace to provide cloud-hosted browsers. The tool uses those browsers to navigate pages and interact with web interfaces on an agent's behalf.

What is Microsoft Playwright Testing

2 min read

Microsoft Playwright Testing provides managed browser infrastructure for automated end-to-end testing of web applications. It connects existing Playwright test suites to cloud-hosted browsers, allowing engineers to increase parallel execution without maintaining a browser worker fleet. The service also supports publishing test results and diagnostic artifacts to a shared portal for investigation.

Microsoft announced that Microsoft Playwright Testing will retire on March 8, 2026, and that remaining resources will stop working after that date. Microsoft directs customers to create a new Playwright Workspace in Azure App Testing to continue running their tests. New implementations should target that replacement, and existing implementations should follow the migration guidance rather than treating the change as a product rename.

The execution model separates test orchestration from browser hosting. A developer workstation or CI agent runs the test runner, fixtures, assertions, and other test code, while managed browsers perform browser interactions remotely. Increasing browser concurrency therefore does not remove client-side resource requirements. CPU-intensive fixtures, large datasets, and excessive worker counts can still exhaust the CI agent or increase execution latency.

Existing Playwright tests can use cloud browsers through service-specific integration packages and configuration. Playwright Test supports JavaScript and TypeScript workflows, and NUnit support for C# was introduced in preview. Browser and operating-system coverage depends on service-supported combinations and compatible Playwright versions. Do not assume that every platform, browser channel, or language binding supported by open-source Playwright is supported by the managed service.

Parallel execution requires independent tests and isolated application data. Shared accounts, mutable records, and order-dependent scenarios can produce failures when multiple workers run concurrently. Use unique test data, clean up created records, and increase concurrency gradually while observing application capacity and client utilization. Parallel functional testing does not replace a dedicated load test with an explicit traffic model.

Centralized reporting helps engineers inspect failures using results, logs, screenshots, and traces. Configure the runner and reporter to capture and publish the required evidence. Screenshots and traces can contain personal information, page content, or authentication details, so use dedicated test accounts and review artifact access and handling requirements.

Network connectivity also requires explicit validation. Cloud browsers need a supported path to the application under test; connectivity from the CI agent alone does not establish browser access. During migration to Azure App Testing, validate workspace authentication, application reachability, representative authenticated journeys, artifact handling, and parallel execution before switching deployment gates.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.