Skip to main content

playwright_workspaces

Creates, updates, deletes, gets or lists a playwright_workspaces resource.

Overview

Nameplaywright_workspaces
TypeResource
Idazure.playwright.playwright_workspaces

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}.
namestringThe name of the resource.
dataplaneUristringThe workspace data plane service API URI.
identityobjectThe managed service identities assigned to this resource.
localAuthstringEnables the workspace to use local authentication through service access tokens for operations. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringThe status of the last resource operation. Known values are: "Succeeded", "Failed", "Canceled", "Creating", "Deleting", and "Accepted". (Succeeded, Failed, Canceled, Creating, Deleting, Accepted)
regionalAffinitystringControls the connection region for client workers to cloud-hosted browsers. When enabled, workers connect to browsers in the closest Azure region for lower latency. When disabled, workers connect to browsers in the Azure region where the workspace was created. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
reportingstringIndicates whether reporting is enabled for the workspace. When set to true, reports will be generated and available for the workspace. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
storageUristringThe URI of the Azure storage account used to store workspace artifacts, test results, and reports.
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".
workspaceIdstringThe workspace ID in GUID format.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, playwright_workspace_name, subscription_idGet a PlaywrightWorkspace.
list_by_resource_groupselectresource_group_name, subscription_idList PlaywrightWorkspace resources by resource group.
list_by_subscriptionselectsubscription_idList PlaywrightWorkspace resources by subscription ID.
create_or_updateinsertresource_group_name, playwright_workspace_name, subscription_id, locationCreate a PlaywrightWorkspace.
updateupdateresource_group_name, playwright_workspace_name, subscription_idUpdates a Playwright workspace resource synchronously.
create_or_updatereplaceresource_group_name, playwright_workspace_name, subscription_id, locationCreate a PlaywrightWorkspace.
deletedeleteresource_group_name, playwright_workspace_name, subscription_idDeletes a Playwright workspace resource asynchronously.
check_name_availabilityexecsubscription_idChecks if a Playwright workspace name is available globally.

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
playwright_workspace_namestringThe name of the PlaywrightWorkspace. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get a PlaywrightWorkspace.

SELECT
id,
name,
dataplaneUri,
identity,
localAuth,
location,
provisioningState,
regionalAffinity,
reporting,
storageUri,
systemData,
tags,
type,
workspaceId
FROM azure.playwright.playwright_workspaces
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND playwright_workspace_name = '{{ playwright_workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a PlaywrightWorkspace.

INSERT INTO azure.playwright.playwright_workspaces (
tags,
location,
properties,
identity,
resource_group_name,
playwright_workspace_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ identity }}',
'{{ resource_group_name }}',
'{{ playwright_workspace_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates a Playwright workspace resource synchronously.

UPDATE azure.playwright.playwright_workspaces
SET
identity = '{{ identity }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND playwright_workspace_name = '{{ playwright_workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create a PlaywrightWorkspace.

REPLACE azure.playwright.playwright_workspaces
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND playwright_workspace_name = '{{ playwright_workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a Playwright workspace resource asynchronously.

DELETE FROM azure.playwright.playwright_workspaces
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND playwright_workspace_name = '{{ playwright_workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Checks if a Playwright workspace name is available globally.

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