workspace_managed_sql_server_security_alert_policy
Creates, updates, deletes, gets or lists a workspace_managed_sql_server_security_alert_policy resource.
Overview
| Name | workspace_managed_sql_server_security_alert_policy |
| Type | Resource |
| Id | azure.synapse.workspace_managed_sql_server_security_alert_policy |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
creationTime | string (date-time) | Specifies the UTC creation time of the policy. |
disabledAlerts | array | Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. |
emailAccountAdmins | boolean | Specifies that the alert is sent to the account administrators. |
emailAddresses | array | Specifies an array of e-mail addresses to which the alert is sent. |
retentionDays | integer | Specifies the number of days to keep in the Threat Detection audit logs. |
state | string | Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific server. Known values are: "New", "Enabled", and "Disabled". |
storageAccountAccessKey | string | Specifies the identifier key of the Threat Detection audit storage account. |
storageEndpoint | string | Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
creationTime | string (date-time) | Specifies the UTC creation time of the policy. |
disabledAlerts | array | Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. |
emailAccountAdmins | boolean | Specifies that the alert is sent to the account administrators. |
emailAddresses | array | Specifies an array of e-mail addresses to which the alert is sent. |
retentionDays | integer | Specifies the number of days to keep in the Threat Detection audit logs. |
state | string | Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific server. Known values are: "New", "Enabled", and "Disabled". |
storageAccountAccessKey | string | Specifies the identifier key of the Threat Detection audit storage account. |
storageEndpoint | string | Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, workspace_name, security_alert_policy_name, subscription_id | Get server's security alert policy. Get a workspace managed sql server's security alert policy. | |
list | select | resource_group_name, workspace_name, subscription_id | Get server's threat detection policies. Get workspace managed sql server's threat detection policies. | |
create_or_update | insert | resource_group_name, workspace_name, security_alert_policy_name, subscription_id | Create or Update server's threat detection policy. Create or Update a workspace managed sql server's threat detection policy. | |
create_or_update | replace | resource_group_name, workspace_name, security_alert_policy_name, subscription_id | Create or Update server's threat detection policy. Create or Update a workspace managed sql server's threat detection policy. |
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.
| Name | Datatype | Description |
|---|---|---|
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
security_alert_policy_name | string | The name of the security alert policy. "Default" Required. |
subscription_id | string | |
workspace_name | string | The name of the workspace. Required. |
SELECT examples
- get
- list
Get server's security alert policy. Get a workspace managed sql server's security alert policy.
SELECT
id,
name,
creationTime,
disabledAlerts,
emailAccountAdmins,
emailAddresses,
retentionDays,
state,
storageAccountAccessKey,
storageEndpoint,
type
FROM azure.synapse.workspace_managed_sql_server_security_alert_policy
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND security_alert_policy_name = '{{ security_alert_policy_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Get server's threat detection policies. Get workspace managed sql server's threat detection policies.
SELECT
id,
name,
creationTime,
disabledAlerts,
emailAccountAdmins,
emailAddresses,
retentionDays,
state,
storageAccountAccessKey,
storageEndpoint,
type
FROM azure.synapse.workspace_managed_sql_server_security_alert_policy
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Create or Update server's threat detection policy. Create or Update a workspace managed sql server's threat detection policy.
INSERT INTO azure.synapse.workspace_managed_sql_server_security_alert_policy (
properties,
resource_group_name,
workspace_name,
security_alert_policy_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ security_alert_policy_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
type
;
# Description fields are for documentation purposes
- name: workspace_managed_sql_server_security_alert_policy
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the workspace_managed_sql_server_security_alert_policy resource.
- name: workspace_name
value: "{{ workspace_name }}"
description: Required parameter for the workspace_managed_sql_server_security_alert_policy resource.
- name: security_alert_policy_name
value: "{{ security_alert_policy_name }}"
description: Required parameter for the workspace_managed_sql_server_security_alert_policy resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the workspace_managed_sql_server_security_alert_policy resource.
- name: properties
value:
state: "{{ state }}"
disabledAlerts:
- "{{ disabledAlerts }}"
emailAddresses:
- "{{ emailAddresses }}"
emailAccountAdmins: {{ emailAccountAdmins }}
storageEndpoint: "{{ storageEndpoint }}"
storageAccountAccessKey: "{{ storageAccountAccessKey }}"
retentionDays: {{ retentionDays }}
REPLACE examples
- create_or_update
Create or Update server's threat detection policy. Create or Update a workspace managed sql server's threat detection policy.
REPLACE azure.synapse.workspace_managed_sql_server_security_alert_policy
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND security_alert_policy_name = '{{ security_alert_policy_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
type;