1. Packages
  2. Azure Native
  3. API Docs
  4. azureplaywrightservice
  5. Account
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.azureplaywrightservice.Account

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

    An account resource Azure REST API version: 2023-10-01-preview.

    Other available API versions: 2024-02-01-preview.

    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 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",
        })
    
    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",
        },
    });
    
    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 exampleaccountResourceResourceFromAzureplaywrightservice = new AzureNative.AzurePlaywrightService.Account("exampleaccountResourceResourceFromAzureplaywrightservice", new()
    {
        ResourceGroupName = "string",
        Location = "string",
        Name = "string",
        RegionalAffinity = "string",
        Reporting = "string",
        ScalableExecution = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := azureplaywrightservice.NewAccount(ctx, "exampleaccountResourceResourceFromAzureplaywrightservice", &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 exampleaccountResourceResourceFromAzureplaywrightservice = new Account("exampleaccountResourceResourceFromAzureplaywrightservice", AccountArgs.builder()
        .resourceGroupName("string")
        .location("string")
        .name("string")
        .regionalAffinity("string")
        .reporting("string")
        .scalableExecution("string")
        .tags(Map.of("string", "string"))
        .build());
    
    exampleaccount_resource_resource_from_azureplaywrightservice = azure_native.azureplaywrightservice.Account("exampleaccountResourceResourceFromAzureplaywrightservice",
        resource_group_name="string",
        location="string",
        name="string",
        regional_affinity="string",
        reporting="string",
        scalable_execution="string",
        tags={
            "string": "string",
        })
    
    const exampleaccountResourceResourceFromAzureplaywrightservice = new azure_native.azureplaywrightservice.Account("exampleaccountResourceResourceFromAzureplaywrightservice", {
        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

    The Account resource accepts the following input properties:

    ResourceGroupName string
    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.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 string
    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.
    Tags map[string]string
    Resource tags.
    resourceGroupName String
    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.
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    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.
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    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.
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    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.
    tags 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.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"
    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 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"
    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 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"
    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 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"
    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 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"
    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.
    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/{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
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi