Account

class Account : KotlinCustomResource

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/#accessing-any-api-version-via-local-packages 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" },
},
});
});
package main
import (
azureplaywrightservice "github.com/pulumi/pulumi-azure-native-sdk/azureplaywrightservice/v3"
"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
})
}
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());
}
}

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}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val dashboardUri: Output<String>

The Playwright testing dashboard URI for the account resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val localAuth: Output<String>?

When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.

Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

The status of the last operation.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val regionalAffinity: Output<String>?

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.

Link copied to clipboard
val reporting: Output<String>?

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.

Link copied to clipboard

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.

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>