1. Packages
  2. Azure Native
  3. API Docs
  4. loadtestservice
  5. PlaywrightWorkspace
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.7.1 published on Wednesday, Aug 13, 2025 by Pulumi

azure-native.loadtestservice.PlaywrightWorkspace

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.7.1 published on Wednesday, Aug 13, 2025 by Pulumi

    Playwright workspace resource.

    Uses Azure REST API version 2025-07-01-preview.

    Example Usage

    PlaywrightWorkspaces_CreateOrUpdate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var playwrightWorkspace = new AzureNative.LoadTestService.PlaywrightWorkspace("playwrightWorkspace", new()
        {
            LocalAuth = AzureNative.LoadTestService.EnablementStatus.Enabled,
            Location = "westus3",
            PlaywrightWorkspaceName = "myWorkspace",
            RegionalAffinity = AzureNative.LoadTestService.EnablementStatus.Enabled,
            ResourceGroupName = "dummyrg",
            Tags = 
            {
                { "Team", "Dev Exp" },
            },
        });
    
    });
    
    package main
    
    import (
    	loadtestservice "github.com/pulumi/pulumi-azure-native-sdk/loadtestservice/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := loadtestservice.NewPlaywrightWorkspace(ctx, "playwrightWorkspace", &loadtestservice.PlaywrightWorkspaceArgs{
    			LocalAuth:               pulumi.String(loadtestservice.EnablementStatusEnabled),
    			Location:                pulumi.String("westus3"),
    			PlaywrightWorkspaceName: pulumi.String("myWorkspace"),
    			RegionalAffinity:        pulumi.String(loadtestservice.EnablementStatusEnabled),
    			ResourceGroupName:       pulumi.String("dummyrg"),
    			Tags: pulumi.StringMap{
    				"Team": pulumi.String("Dev Exp"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.loadtestservice.PlaywrightWorkspace;
    import com.pulumi.azurenative.loadtestservice.PlaywrightWorkspaceArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var playwrightWorkspace = new PlaywrightWorkspace("playwrightWorkspace", PlaywrightWorkspaceArgs.builder()
                .localAuth("Enabled")
                .location("westus3")
                .playwrightWorkspaceName("myWorkspace")
                .regionalAffinity("Enabled")
                .resourceGroupName("dummyrg")
                .tags(Map.of("Team", "Dev Exp"))
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const playwrightWorkspace = new azure_native.loadtestservice.PlaywrightWorkspace("playwrightWorkspace", {
        localAuth: azure_native.loadtestservice.EnablementStatus.Enabled,
        location: "westus3",
        playwrightWorkspaceName: "myWorkspace",
        regionalAffinity: azure_native.loadtestservice.EnablementStatus.Enabled,
        resourceGroupName: "dummyrg",
        tags: {
            Team: "Dev Exp",
        },
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    playwright_workspace = azure_native.loadtestservice.PlaywrightWorkspace("playwrightWorkspace",
        local_auth=azure_native.loadtestservice.EnablementStatus.ENABLED,
        location="westus3",
        playwright_workspace_name="myWorkspace",
        regional_affinity=azure_native.loadtestservice.EnablementStatus.ENABLED,
        resource_group_name="dummyrg",
        tags={
            "Team": "Dev Exp",
        })
    
    resources:
      playwrightWorkspace:
        type: azure-native:loadtestservice:PlaywrightWorkspace
        properties:
          localAuth: Enabled
          location: westus3
          playwrightWorkspaceName: myWorkspace
          regionalAffinity: Enabled
          resourceGroupName: dummyrg
          tags:
            Team: Dev Exp
    

    Create PlaywrightWorkspace Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PlaywrightWorkspace(name: string, args: PlaywrightWorkspaceArgs, opts?: CustomResourceOptions);
    @overload
    def PlaywrightWorkspace(resource_name: str,
                            args: PlaywrightWorkspaceArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def PlaywrightWorkspace(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            resource_group_name: Optional[str] = None,
                            local_auth: Optional[Union[str, EnablementStatus]] = None,
                            location: Optional[str] = None,
                            playwright_workspace_name: Optional[str] = None,
                            regional_affinity: Optional[Union[str, EnablementStatus]] = None,
                            tags: Optional[Mapping[str, str]] = None)
    func NewPlaywrightWorkspace(ctx *Context, name string, args PlaywrightWorkspaceArgs, opts ...ResourceOption) (*PlaywrightWorkspace, error)
    public PlaywrightWorkspace(string name, PlaywrightWorkspaceArgs args, CustomResourceOptions? opts = null)
    public PlaywrightWorkspace(String name, PlaywrightWorkspaceArgs args)
    public PlaywrightWorkspace(String name, PlaywrightWorkspaceArgs args, CustomResourceOptions options)
    
    type: azure-native:loadtestservice:PlaywrightWorkspace
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PlaywrightWorkspaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PlaywrightWorkspaceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PlaywrightWorkspaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PlaywrightWorkspaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PlaywrightWorkspaceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var playwrightWorkspaceResource = new AzureNative.LoadTestService.PlaywrightWorkspace("playwrightWorkspaceResource", new()
    {
        ResourceGroupName = "string",
        LocalAuth = "string",
        Location = "string",
        PlaywrightWorkspaceName = "string",
        RegionalAffinity = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := loadtestservice.NewPlaywrightWorkspace(ctx, "playwrightWorkspaceResource", &loadtestservice.PlaywrightWorkspaceArgs{
    	ResourceGroupName:       pulumi.String("string"),
    	LocalAuth:               pulumi.String("string"),
    	Location:                pulumi.String("string"),
    	PlaywrightWorkspaceName: pulumi.String("string"),
    	RegionalAffinity:        pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var playwrightWorkspaceResource = new PlaywrightWorkspace("playwrightWorkspaceResource", PlaywrightWorkspaceArgs.builder()
        .resourceGroupName("string")
        .localAuth("string")
        .location("string")
        .playwrightWorkspaceName("string")
        .regionalAffinity("string")
        .tags(Map.of("string", "string"))
        .build());
    
    playwright_workspace_resource = azure_native.loadtestservice.PlaywrightWorkspace("playwrightWorkspaceResource",
        resource_group_name="string",
        local_auth="string",
        location="string",
        playwright_workspace_name="string",
        regional_affinity="string",
        tags={
            "string": "string",
        })
    
    const playwrightWorkspaceResource = new azure_native.loadtestservice.PlaywrightWorkspace("playwrightWorkspaceResource", {
        resourceGroupName: "string",
        localAuth: "string",
        location: "string",
        playwrightWorkspaceName: "string",
        regionalAffinity: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:loadtestservice:PlaywrightWorkspace
    properties:
        localAuth: string
        location: string
        playwrightWorkspaceName: string
        regionalAffinity: string
        resourceGroupName: string
        tags:
            string: string
    

    PlaywrightWorkspace Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The PlaywrightWorkspace resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    LocalAuth string | Pulumi.AzureNative.LoadTestService.EnablementStatus
    When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.
    Location string
    The geo-location where the resource lives
    PlaywrightWorkspaceName string
    The name of the PlaywrightWorkspace
    RegionalAffinity string | Pulumi.AzureNative.LoadTestService.EnablementStatus
    This property sets the connection region for client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    LocalAuth string | EnablementStatus
    When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.
    Location string
    The geo-location where the resource lives
    PlaywrightWorkspaceName string
    The name of the PlaywrightWorkspace
    RegionalAffinity string | EnablementStatus
    This property sets the connection region for client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
    Tags map[string]string
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    localAuth String | EnablementStatus
    When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.
    location String
    The geo-location where the resource lives
    playwrightWorkspaceName String
    The name of the PlaywrightWorkspace
    regionalAffinity String | EnablementStatus
    This property sets the connection region for client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    localAuth string | EnablementStatus
    When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.
    location string
    The geo-location where the resource lives
    playwrightWorkspaceName string
    The name of the PlaywrightWorkspace
    regionalAffinity string | EnablementStatus
    This property sets the connection region for client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    local_auth str | EnablementStatus
    When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.
    location str
    The geo-location where the resource lives
    playwright_workspace_name str
    The name of the PlaywrightWorkspace
    regional_affinity str | EnablementStatus
    This property sets the connection region for client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    localAuth String | "Enabled" | "Disabled"
    When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.
    location String
    The geo-location where the resource lives
    playwrightWorkspaceName String
    The name of the PlaywrightWorkspace
    regionalAffinity String | "Enabled" | "Disabled"
    This property sets the connection region for client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
    tags Map<String>
    Resource tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PlaywrightWorkspace resource produces the following output properties:

    AzureApiVersion string
    The Azure API version of the resource.
    DataplaneUri string
    The workspace data plane URI.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    The status of the last resource operation.
    SystemData Pulumi.AzureNative.LoadTestService.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    AzureApiVersion string
    The Azure API version of the resource.
    DataplaneUri string
    The workspace data plane URI.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    The status of the last resource operation.
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    dataplaneUri String
    The workspace data plane URI.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    The status of the last resource operation.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion string
    The Azure API version of the resource.
    dataplaneUri string
    The workspace data plane URI.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    provisioningState string
    The status of the last resource operation.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azure_api_version str
    The Azure API version of the resource.
    dataplane_uri str
    The workspace data plane URI.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    provisioning_state str
    The status of the last resource operation.
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    dataplaneUri String
    The workspace data plane URI.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    The status of the last resource operation.
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    EnablementStatus, EnablementStatusArgs

    Enabled
    EnabledThe feature is Enabled.
    Disabled
    DisabledThe feature is Disabled.
    EnablementStatusEnabled
    EnabledThe feature is Enabled.
    EnablementStatusDisabled
    DisabledThe feature is Disabled.
    Enabled
    EnabledThe feature is Enabled.
    Disabled
    DisabledThe feature is Disabled.
    Enabled
    EnabledThe feature is Enabled.
    Disabled
    DisabledThe feature is Disabled.
    ENABLED
    EnabledThe feature is Enabled.
    DISABLED
    DisabledThe feature is Disabled.
    "Enabled"
    EnabledThe feature is Enabled.
    "Disabled"
    DisabledThe feature is Disabled.

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:loadtestservice:PlaywrightWorkspace myWorkspace /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.7.1 published on Wednesday, Aug 13, 2025 by Pulumi