Skip to main content

flow_logs

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

Overview

Nameflow_logs
TypeResource
Idazure.network.flow_logs

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
enabledtextfield from the properties object
enabled_filtering_criteriatextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
flowLogNametextfield from the properties object
flow_analytics_configurationtextfield from the properties object
formattextfield from the properties object
identitytextIdentity for the resource.
locationtextResource location.
networkWatcherNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
retention_policytextfield from the properties object
storage_idtextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
target_resource_guidtextfield from the properties object
target_resource_idtextfield from the properties object
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTflowLogName, networkWatcherName, resourceGroupName, subscriptionIdGets a flow log resource by name.
listSELECTnetworkWatcherName, resourceGroupName, subscriptionIdLists all flow log resources for the specified Network Watcher.
create_or_updateINSERTflowLogName, networkWatcherName, resourceGroupName, subscriptionIdCreate or update a flow log for the specified network security group.
deleteDELETEflowLogName, networkWatcherName, resourceGroupName, subscriptionIdDeletes the specified flow log resource.
update_tagsEXECflowLogName, networkWatcherName, resourceGroupName, subscriptionIdUpdate tags of the specified flow log.

SELECT examples

Lists all flow log resources for the specified Network Watcher.

SELECT
id,
name,
enabled,
enabled_filtering_criteria,
etag,
flowLogName,
flow_analytics_configuration,
format,
identity,
location,
networkWatcherName,
provisioning_state,
resourceGroupName,
retention_policy,
storage_id,
subscriptionId,
tags,
target_resource_guid,
target_resource_id,
type
FROM azure.network.vw_flow_logs
WHERE networkWatcherName = '{{ networkWatcherName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new flow_logs resource.

/*+ create */
INSERT INTO azure.network.flow_logs (
flowLogName,
networkWatcherName,
resourceGroupName,
subscriptionId,
properties,
identity,
id,
location,
tags
)
SELECT
'{{ flowLogName }}',
'{{ networkWatcherName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified flow_logs resource.

/*+ delete */
DELETE FROM azure.network.flow_logs
WHERE flowLogName = '{{ flowLogName }}'
AND networkWatcherName = '{{ networkWatcherName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';