azure-native.azureplaywrightservice.Account
Explore with Pulumi AI
An account resource Azure REST API version: 2023-10-01-preview.
Other available API versions: 2024-02-01-preview, 2024-08-01-preview, 2024-12-01.
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()
    {
        Location = "westus",
        Name = "myPlaywrightAccount",
        RegionalAffinity = AzureNative.AzurePlaywrightService.EnablementStatus.Enabled,
        ResourceGroupName = "dummyrg",
        Tags = 
        {
            { "Team", "Dev Exp" },
        },
    });
});
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{
			Location:          pulumi.String("westus"),
			Name:              pulumi.String("myPlaywrightAccount"),
			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()
            .location("westus")
            .name("myPlaywrightAccount")
            .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 account = new azure_native.azureplaywrightservice.Account("account", {
    location: "westus",
    name: "myPlaywrightAccount",
    regionalAffinity: azure_native.azureplaywrightservice.EnablementStatus.Enabled,
    resourceGroupName: "dummyrg",
    tags: {
        Team: "Dev Exp",
    },
});
import pulumi
import pulumi_azure_native as azure_native
account = azure_native.azureplaywrightservice.Account("account",
    location="westus",
    name="myPlaywrightAccount",
    regional_affinity=azure_native.azureplaywrightservice.EnablementStatus.ENABLED,
    resource_group_name="dummyrg",
    tags={
        "Team": "Dev Exp",
    })
resources:
  account:
    type: azure-native:azureplaywrightservice:Account
    properties:
      location: westus
      name: myPlaywrightAccount
      regionalAffinity: Enabled
      resourceGroupName: dummyrg
      tags:
        Team: Dev Exp
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,
            location: Optional[str] = None,
            name: 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 string
- The unique name of the resource.
- args AccountArgs
- 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 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 string
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 azure_nativeAccountResource = new AzureNative.AzurePlaywrightService.Account("azure-nativeAccountResource", new()
{
    ResourceGroupName = "string",
    Location = "string",
    Name = "string",
    RegionalAffinity = "string",
    Reporting = "string",
    ScalableExecution = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := azureplaywrightservice.NewAccount(ctx, "azure-nativeAccountResource", &azureplaywrightservice.AccountArgs{
	ResourceGroupName: pulumi.String("string"),
	Location:          pulumi.String("string"),
	Name:              pulumi.String("string"),
	RegionalAffinity:  pulumi.String("string"),
	Reporting:         pulumi.String("string"),
	ScalableExecution: pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var azure_nativeAccountResource = new Account("azure-nativeAccountResource", AccountArgs.builder()
    .resourceGroupName("string")
    .location("string")
    .name("string")
    .regionalAffinity("string")
    .reporting("string")
    .scalableExecution("string")
    .tags(Map.of("string", "string"))
    .build());
azure_native_account_resource = azure_native.azureplaywrightservice.Account("azure-nativeAccountResource",
    resource_group_name="string",
    location="string",
    name="string",
    regional_affinity="string",
    reporting="string",
    scalable_execution="string",
    tags={
        "string": "string",
    })
const azure_nativeAccountResource = new azure_native.azureplaywrightservice.Account("azure-nativeAccountResource", {
    resourceGroupName: "string",
    location: "string",
    name: "string",
    regionalAffinity: "string",
    reporting: "string",
    scalableExecution: "string",
    tags: {
        string: "string",
    },
});
type: azure-native:azureplaywrightservice:Account
properties:
    location: string
    name: string
    regionalAffinity: string
    reporting: string
    resourceGroupName: string
    scalableExecution: string
    tags:
        string: string
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:
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- Name string
- Name of account
- RegionalAffinity string | Pulumi.Azure Native. Azure Playwright Service. Enablement Status 
- 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.Azure Native. Azure Playwright Service. Enablement Status 
- 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.Azure Native. Azure Playwright Service. Enablement Status 
- 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.
- Dictionary<string, string>
- Resource tags.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- Name string
- Name of account
- 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.
- map[string]string
- Resource tags.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- name String
- Name of account
- 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.
- Map<String,String>
- Resource tags.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- location string
- The geo-location where the resource lives
- name string
- Name of account
- 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.
- {[key: string]: string}
- Resource tags.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- location str
- The geo-location where the resource lives
- name str
- Name of account
- 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.
- Mapping[str, str]
- Resource tags.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- name String
- Name of account
- 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.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:
- DashboardUri string
- The Playwright testing dashboard URI for the account resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- ProvisioningState string
- The status of the last operation.
- SystemData Pulumi.Azure Native. Azure Playwright Service. Outputs. System Data Response 
- 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"
- DashboardUri string
- The Playwright testing dashboard URI for the account resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- ProvisioningState string
- The status of the last operation.
- SystemData SystemData Response 
- 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"
- dashboardUri String
- The Playwright testing dashboard URI for the account resource.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioningState String
- The status of the last operation.
- systemData SystemData Response 
- 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"
- dashboardUri string
- The Playwright testing dashboard URI for the account resource.
- id string
- The provider-assigned unique ID for this managed resource.
- provisioningState string
- The status of the last operation.
- systemData SystemData Response 
- 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"
- dashboard_uri str
- The Playwright testing dashboard URI for the account resource.
- id str
- The provider-assigned unique ID for this managed resource.
- provisioning_state str
- The status of the last operation.
- system_data SystemData Response 
- 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"
- dashboardUri String
- The Playwright testing dashboard URI for the account resource.
- id String
- The provider-assigned unique ID for this managed 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.
- EnablementStatus Enabled 
- EnabledThe feature is Enabled.
- EnablementStatus 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.
- "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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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/{name} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0