azure_monitor_workspaces
Creates, updates, deletes, gets or lists a azure_monitor_workspaces
resource.
Overview
Name | azure_monitor_workspaces |
Type | Resource |
Id | azure.monitor.azure_monitor_workspaces |
Fields
Name | Datatype | Description |
---|---|---|
etag | string | Resource entity tag (ETag) |
location | string | The geo-location where the resource lives |
properties | object | Resource properties |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | azureMonitorWorkspaceName, resourceGroupName, subscriptionId | Returns the specified Azure Monitor Workspace |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Lists all Azure Monitor Workspaces in the specified resource group |
list_by_subscription | SELECT | subscriptionId | Lists all Azure Monitor Workspaces in the specified subscription |
create | INSERT | azureMonitorWorkspaceName, resourceGroupName, subscriptionId, data__location | Creates or updates an Azure Monitor Workspace |
delete | DELETE | azureMonitorWorkspaceName, resourceGroupName, subscriptionId | Deletes an Azure Monitor Workspace |
update | UPDATE | azureMonitorWorkspaceName, resourceGroupName, subscriptionId | Updates part of an Azure Monitor Workspace |
SELECT
examples
Lists all Azure Monitor Workspaces in the specified subscription
SELECT
etag,
location,
properties,
tags
FROM azure.monitor.azure_monitor_workspaces
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new azure_monitor_workspaces
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.monitor.azure_monitor_workspaces (
azureMonitorWorkspaceName,
resourceGroupName,
subscriptionId,
data__location,
properties,
tags,
location
)
SELECT
'{{ azureMonitorWorkspaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value: string
- name: etag
value: string
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a azure_monitor_workspaces
resource.
/*+ update */
UPDATE azure.monitor.azure_monitor_workspaces
SET
tags = '{{ tags }}'
WHERE
azureMonitorWorkspaceName = '{{ azureMonitorWorkspaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified azure_monitor_workspaces
resource.
/*+ delete */
DELETE FROM azure.monitor.azure_monitor_workspaces
WHERE azureMonitorWorkspaceName = '{{ azureMonitorWorkspaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';