Skip to main content

accounts

Creates, updates, deletes, gets or lists an accounts resource.

Overview

Nameaccounts
TypeResource
Idazure.playwright_testing.accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long
namestringThe name of the resource.
dashboardUristringThe Playwright testing dashboard URI for the account resource.
localAuthstringWhen enabled, this feature allows the workspace to use local auth(through access key) for authentication of test runs. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringThe status of the last operation. Known values are: "Succeeded", "Failed", "Canceled", "Creating", "Deleting", and "Accepted". (Succeeded, Failed, Canceled, Creating, Deleting, Accepted)
regionalAffinitystringThis 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. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
reportingstringWhen 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. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
scalableExecutionstringWhen 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. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, subscription_idGet a Account.
list_by_resource_groupselectresource_group_name, subscription_idList Account resources by resource group.
list_by_subscriptionselectsubscription_idList Account resources by subscription ID.
create_or_updateinsertresource_group_name, account_name, subscription_id, locationCreate a Account.
updateupdateresource_group_name, account_name, subscription_idUpdate a Account.
create_or_updatereplaceresource_group_name, account_name, subscription_id, locationCreate a Account.
deletedeleteresource_group_name, account_name, subscription_idDelete a Account.
check_name_availabilityexecsubscription_idAdds check global name availability operation, normally used if a resource name must be globally unique.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_namestringName of account. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get a Account.

SELECT
id,
name,
dashboardUri,
localAuth,
location,
provisioningState,
regionalAffinity,
reporting,
scalableExecution,
systemData,
tags,
type
FROM azure.playwright_testing.accounts
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a Account.

INSERT INTO azure.playwright_testing.accounts (
tags,
location,
properties,
resource_group_name,
account_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update a Account.

UPDATE azure.playwright_testing.accounts
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create a Account.

REPLACE azure.playwright_testing.accounts
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a Account.

DELETE FROM azure.playwright_testing.accounts
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Adds check global name availability operation, normally used if a resource name must be globally unique.

EXEC azure.playwright_testing.accounts.check_name_availability 
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"name": "{{ name }}",
"type": "{{ type }}"
}'
;