Skip to main content

online_experimentation_workspaces

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

Overview

Nameonline_experimentation_workspaces
TypeResource
Idazure.online_experimentation.online_experimentation_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.
appConfigurationResourceIdstringThe resource identifier of App Configuration with which this online experimentation workspace is tied for experimentation. This is a required field for creating an online experimentation workspace. Required.
encryptionobjectThe encryption configuration for the online experimentation workspace resource.
endpointstringThe data plane endpoint for the online experimentation workspace resource.
identityobjectThe managed service identities assigned to this resource.
locationstringThe geo-location where the resource lives. Required.
logAnalyticsWorkspaceResourceIdstringThe resource identifier of the Log Analytics workspace which online experimentation workspace uses for generating experiment analysis results. Required.
logsExporterStorageAccountResourceIdstringThe resource identifier of storage account where logs are exported from Log Analytics workspace. online experimentation workspace uses it generating experiment analysis results. Required.
provisioningStatestringThe provisioning state for the resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
skuobjectThe SKU (Stock Keeping Unit) assigned to this resource.
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 Id of the workspace.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, subscription_idGets an online experimentation workspace.
list_by_resource_groupselectresource_group_name, subscription_idGets all online experimentation workspaces in a resource group.
list_by_subscriptionselectsubscription_idGets all online experimentation workspaces in the specified subscription.
create_or_updateinsertresource_group_name, workspace_name, subscription_id, locationCreate an online experimentation workspace, or update an existing workspace.
updateupdateresource_group_name, workspace_name, subscription_idPatch an online experimentation workspace.
create_or_updatereplaceresource_group_name, workspace_name, subscription_id, locationCreate an online experimentation workspace, or update an existing workspace.
deletedeleteresource_group_name, workspace_name, subscription_idDeletes an online experimentation workspace.

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

SELECT examples

Gets an online experimentation workspace.

SELECT
id,
name,
appConfigurationResourceId,
encryption,
endpoint,
identity,
location,
logAnalyticsWorkspaceResourceId,
logsExporterStorageAccountResourceId,
provisioningState,
sku,
systemData,
tags,
type,
workspaceId
FROM azure.online_experimentation.online_experimentation_workspaces
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create an online experimentation workspace, or update an existing workspace.

INSERT INTO azure.online_experimentation.online_experimentation_workspaces (
tags,
location,
properties,
identity,
sku,
resource_group_name,
workspace_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ identity }}',
'{{ sku }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Patch an online experimentation workspace.

UPDATE azure.online_experimentation.online_experimentation_workspaces
SET
identity = '{{ identity }}',
tags = '{{ tags }}',
sku = '{{ sku }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type;

REPLACE examples

Create an online experimentation workspace, or update an existing workspace.

REPLACE azure.online_experimentation.online_experimentation_workspaces
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
identity = '{{ identity }}',
sku = '{{ sku }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Deletes an online experimentation workspace.

DELETE FROM azure.online_experimentation.online_experimentation_workspaces
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;