1. Packages
  2. Azure Native
  3. API Docs
  4. azureplaywrightservice
  5. Account
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.0.1 published on Monday, Apr 7, 2025 by Pulumi

azure-native.azureplaywrightservice.Account

Explore with Pulumi AI

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.0.1 published on Monday, Apr 7, 2025 by Pulumi

A Playwright service account resource.

Uses Azure REST API version 2024-12-01. In version 2.x of the Azure Native provider, it used API version 2023-10-01-preview.

Other available API versions: 2023-10-01-preview, 2024-02-01-preview, 2024-08-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native azureplaywrightservice [ApiVersion]. See the version guide for details.

Example Usage

Accounts_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var account = new AzureNative.AzurePlaywrightService.Account("account", new()
    {
        AccountName = "myPlaywrightAccount",
        Location = "westus",
        RegionalAffinity = AzureNative.AzurePlaywrightService.EnablementStatus.Enabled,
        ResourceGroupName = "dummyrg",
        Tags = 
        {
            { "Team", "Dev Exp" },
        },
    });

});
Copy
package main

import (
	azureplaywrightservice "github.com/pulumi/pulumi-azure-native-sdk/azureplaywrightservice/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := azureplaywrightservice.NewAccount(ctx, "account", &azureplaywrightservice.AccountArgs{
			AccountName:       pulumi.String("myPlaywrightAccount"),
			Location:          pulumi.String("westus"),
			RegionalAffinity:  pulumi.String(azureplaywrightservice.EnablementStatusEnabled),
			ResourceGroupName: pulumi.String("dummyrg"),
			Tags: pulumi.StringMap{
				"Team": pulumi.String("Dev Exp"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.azureplaywrightservice.Account;
import com.pulumi.azurenative.azureplaywrightservice.AccountArgs;
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 account = new Account("account", AccountArgs.builder()
            .accountName("myPlaywrightAccount")
            .location("westus")
            .regionalAffinity("Enabled")
            .resourceGroupName("dummyrg")
            .tags(Map.of("Team", "Dev Exp"))
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const account = new azure_native.azureplaywrightservice.Account("account", {
    accountName: "myPlaywrightAccount",
    location: "westus",
    regionalAffinity: azure_native.azureplaywrightservice.EnablementStatus.Enabled,
    resourceGroupName: "dummyrg",
    tags: {
        Team: "Dev Exp",
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

account = azure_native.azureplaywrightservice.Account("account",
    account_name="myPlaywrightAccount",
    location="westus",
    regional_affinity=azure_native.azureplaywrightservice.EnablementStatus.ENABLED,
    resource_group_name="dummyrg",
    tags={
        "Team": "Dev Exp",
    })
Copy
resources:
  account:
    type: azure-native:azureplaywrightservice:Account
    properties:
      accountName: myPlaywrightAccount
      location: westus
      regionalAffinity: Enabled
      resourceGroupName: dummyrg
      tags:
        Team: Dev Exp
Copy

Create Account Resource

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

Constructor syntax

new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
            args: AccountArgs,
            opts: Optional[ResourceOptions] = None)

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

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AccountArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AccountArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AccountArgs
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 accountResource = new AzureNative.AzurePlaywrightService.Account("accountResource", new()
{
    ResourceGroupName = "string",
    AccountName = "string",
    LocalAuth = "string",
    Location = "string",
    RegionalAffinity = "string",
    Reporting = "string",
    ScalableExecution = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := azureplaywrightservice.NewAccount(ctx, "accountResource", &azureplaywrightservice.AccountArgs{
	ResourceGroupName: pulumi.String("string"),
	AccountName:       pulumi.String("string"),
	LocalAuth:         pulumi.String("string"),
	Location:          pulumi.String("string"),
	RegionalAffinity:  pulumi.String("string"),
	Reporting:         pulumi.String("string"),
	ScalableExecution: pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var accountResource = new Account("accountResource", AccountArgs.builder()
    .resourceGroupName("string")
    .accountName("string")
    .localAuth("string")
    .location("string")
    .regionalAffinity("string")
    .reporting("string")
    .scalableExecution("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
account_resource = azure_native.azureplaywrightservice.Account("accountResource",
    resource_group_name="string",
    account_name="string",
    local_auth="string",
    location="string",
    regional_affinity="string",
    reporting="string",
    scalable_execution="string",
    tags={
        "string": "string",
    })
Copy
const accountResource = new azure_native.azureplaywrightservice.Account("accountResource", {
    resourceGroupName: "string",
    accountName: "string",
    localAuth: "string",
    location: "string",
    regionalAffinity: "string",
    reporting: "string",
    scalableExecution: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:azureplaywrightservice:Account
properties:
    accountName: string
    localAuth: string
    location: string
    regionalAffinity: string
    reporting: string
    resourceGroupName: string
    scalableExecution: string
    tags:
        string: string
Copy

Account 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 Account resource accepts the following input properties:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
AccountName Changes to this property will trigger replacement. string
Name of account.
LocalAuth string | Pulumi.AzureNative.AzurePlaywrightService.EnablementStatus
When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
RegionalAffinity string | Pulumi.AzureNative.AzurePlaywrightService.EnablementStatus
This property sets the connection region for Playwright 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.
Reporting string | Pulumi.AzureNative.AzurePlaywrightService.EnablementStatus
When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
ScalableExecution string | Pulumi.AzureNative.AzurePlaywrightService.EnablementStatus
When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
Tags Dictionary<string, string>
Resource tags.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
AccountName Changes to this property will trigger replacement. string
Name of account.
LocalAuth string | EnablementStatus
When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
RegionalAffinity string | EnablementStatus
This property sets the connection region for Playwright 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.
Reporting string | EnablementStatus
When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
ScalableExecution string | EnablementStatus
When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
Tags map[string]string
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
accountName Changes to this property will trigger replacement. String
Name of account.
localAuth String | EnablementStatus
When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
regionalAffinity String | EnablementStatus
This property sets the connection region for Playwright 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.
reporting String | EnablementStatus
When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
scalableExecution String | EnablementStatus
When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
tags Map<String,String>
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
accountName Changes to this property will trigger replacement. string
Name of account.
localAuth string | EnablementStatus
When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.
location Changes to this property will trigger replacement. string
The geo-location where the resource lives
regionalAffinity string | EnablementStatus
This property sets the connection region for Playwright 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.
reporting string | EnablementStatus
When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
scalableExecution string | EnablementStatus
When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
tags {[key: string]: string}
Resource tags.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
account_name Changes to this property will trigger replacement. str
Name of account.
local_auth str | EnablementStatus
When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.
location Changes to this property will trigger replacement. str
The geo-location where the resource lives
regional_affinity str | EnablementStatus
This property sets the connection region for Playwright 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.
reporting str | EnablementStatus
When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
scalable_execution str | EnablementStatus
When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
tags Mapping[str, str]
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
accountName Changes to this property will trigger replacement. String
Name of account.
localAuth String | "Enabled" | "Disabled"
When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
regionalAffinity String | "Enabled" | "Disabled"
This property sets the connection region for Playwright 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.
reporting String | "Enabled" | "Disabled"
When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
scalableExecution String | "Enabled" | "Disabled"
When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
tags Map<String>
Resource tags.

Outputs

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

AzureApiVersion string
The Azure API version of the resource.
DashboardUri string
The Playwright testing dashboard URI for the account resource.
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 operation.
SystemData Pulumi.AzureNative.AzurePlaywrightService.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.
DashboardUri string
The Playwright testing dashboard URI for the account resource.
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 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.
dashboardUri String
The Playwright testing dashboard URI for the account resource.
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 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.
dashboardUri string
The Playwright testing dashboard URI for the account resource.
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 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.
dashboard_uri str
The Playwright testing dashboard URI for the account resource.
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 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.
dashboardUri String
The Playwright testing dashboard URI for the account resource.
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 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:azureplaywrightservice:Account myPlaywrightAccount /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName} 
Copy

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

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
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.0.1 published on Monday, Apr 7, 2025 by Pulumi