We recommend using Azure Native.
azure.network.NetworkWatcherFlowLog
Explore with Pulumi AI
Manages a Network Watcher Flow Log.
Note The
azure.network.NetworkWatcherFlowLog
creates a new storage lifecyle management rule that overwrites existing rules. Please make sure to use astorage_account
with no existing management rules, until the issue is fixed.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
test:
type: azure:network:NetworkSecurityGroup
properties:
name: acctestnsg
location: ${example.location}
resourceGroupName: ${example.name}
testNetworkWatcher:
type: azure:network:NetworkWatcher
name: test
properties:
name: acctestnw
location: ${example.location}
resourceGroupName: ${example.name}
testAccount:
type: azure:storage:Account
name: test
properties:
name: acctestsa
resourceGroupName: ${example.name}
location: ${example.location}
accountTier: Standard
accountKind: StorageV2
accountReplicationType: LRS
enableHttpsTrafficOnly: true
testAnalyticsWorkspace:
type: azure:operationalinsights:AnalyticsWorkspace
name: test
properties:
name: acctestlaw
location: ${example.location}
resourceGroupName: ${example.name}
sku: PerGB2018
testNetworkWatcherFlowLog:
type: azure:network:NetworkWatcherFlowLog
name: test
properties:
networkWatcherName: ${testNetworkWatcher.name}
resourceGroupName: ${example.name}
name: example-log
networkSecurityGroupId: ${test.id}
storageAccountId: ${testAccount.id}
enabled: true
retentionPolicy:
enabled: true
days: 7
trafficAnalytics:
enabled: true
workspaceId: ${testAnalyticsWorkspace.workspaceId}
workspaceRegion: ${testAnalyticsWorkspace.location}
workspaceResourceId: ${testAnalyticsWorkspace.id}
intervalInMinutes: 10
Create NetworkWatcherFlowLog Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkWatcherFlowLog(name: string, args: NetworkWatcherFlowLogArgs, opts?: CustomResourceOptions);
@overload
def NetworkWatcherFlowLog(resource_name: str,
args: NetworkWatcherFlowLogArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkWatcherFlowLog(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
network_security_group_id: Optional[str] = None,
network_watcher_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
retention_policy: Optional[NetworkWatcherFlowLogRetentionPolicyArgs] = None,
storage_account_id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
traffic_analytics: Optional[NetworkWatcherFlowLogTrafficAnalyticsArgs] = None,
version: Optional[int] = None)
func NewNetworkWatcherFlowLog(ctx *Context, name string, args NetworkWatcherFlowLogArgs, opts ...ResourceOption) (*NetworkWatcherFlowLog, error)
public NetworkWatcherFlowLog(string name, NetworkWatcherFlowLogArgs args, CustomResourceOptions? opts = null)
public NetworkWatcherFlowLog(String name, NetworkWatcherFlowLogArgs args)
public NetworkWatcherFlowLog(String name, NetworkWatcherFlowLogArgs args, CustomResourceOptions options)
type: azure:network:NetworkWatcherFlowLog
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NetworkWatcherFlowLogArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NetworkWatcherFlowLogArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NetworkWatcherFlowLogArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkWatcherFlowLogArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkWatcherFlowLogArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var networkWatcherFlowLogResource = new Azure.Network.NetworkWatcherFlowLog("networkWatcherFlowLogResource", new()
{
Enabled = false,
NetworkSecurityGroupId = "string",
NetworkWatcherName = "string",
ResourceGroupName = "string",
RetentionPolicy = new Azure.Network.Inputs.NetworkWatcherFlowLogRetentionPolicyArgs
{
Days = 0,
Enabled = false,
},
StorageAccountId = "string",
Location = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
TrafficAnalytics = new Azure.Network.Inputs.NetworkWatcherFlowLogTrafficAnalyticsArgs
{
Enabled = false,
WorkspaceId = "string",
WorkspaceRegion = "string",
WorkspaceResourceId = "string",
IntervalInMinutes = 0,
},
Version = 0,
});
example, err := network.NewNetworkWatcherFlowLog(ctx, "networkWatcherFlowLogResource", &network.NetworkWatcherFlowLogArgs{
Enabled: pulumi.Bool(false),
NetworkSecurityGroupId: pulumi.String("string"),
NetworkWatcherName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
RetentionPolicy: &network.NetworkWatcherFlowLogRetentionPolicyArgs{
Days: pulumi.Int(0),
Enabled: pulumi.Bool(false),
},
StorageAccountId: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TrafficAnalytics: &network.NetworkWatcherFlowLogTrafficAnalyticsArgs{
Enabled: pulumi.Bool(false),
WorkspaceId: pulumi.String("string"),
WorkspaceRegion: pulumi.String("string"),
WorkspaceResourceId: pulumi.String("string"),
IntervalInMinutes: pulumi.Int(0),
},
Version: pulumi.Int(0),
})
var networkWatcherFlowLogResource = new NetworkWatcherFlowLog("networkWatcherFlowLogResource", NetworkWatcherFlowLogArgs.builder()
.enabled(false)
.networkSecurityGroupId("string")
.networkWatcherName("string")
.resourceGroupName("string")
.retentionPolicy(NetworkWatcherFlowLogRetentionPolicyArgs.builder()
.days(0)
.enabled(false)
.build())
.storageAccountId("string")
.location("string")
.name("string")
.tags(Map.of("string", "string"))
.trafficAnalytics(NetworkWatcherFlowLogTrafficAnalyticsArgs.builder()
.enabled(false)
.workspaceId("string")
.workspaceRegion("string")
.workspaceResourceId("string")
.intervalInMinutes(0)
.build())
.version(0)
.build());
network_watcher_flow_log_resource = azure.network.NetworkWatcherFlowLog("networkWatcherFlowLogResource",
enabled=False,
network_security_group_id="string",
network_watcher_name="string",
resource_group_name="string",
retention_policy={
"days": 0,
"enabled": False,
},
storage_account_id="string",
location="string",
name="string",
tags={
"string": "string",
},
traffic_analytics={
"enabled": False,
"workspaceId": "string",
"workspaceRegion": "string",
"workspaceResourceId": "string",
"intervalInMinutes": 0,
},
version=0)
const networkWatcherFlowLogResource = new azure.network.NetworkWatcherFlowLog("networkWatcherFlowLogResource", {
enabled: false,
networkSecurityGroupId: "string",
networkWatcherName: "string",
resourceGroupName: "string",
retentionPolicy: {
days: 0,
enabled: false,
},
storageAccountId: "string",
location: "string",
name: "string",
tags: {
string: "string",
},
trafficAnalytics: {
enabled: false,
workspaceId: "string",
workspaceRegion: "string",
workspaceResourceId: "string",
intervalInMinutes: 0,
},
version: 0,
});
type: azure:network:NetworkWatcherFlowLog
properties:
enabled: false
location: string
name: string
networkSecurityGroupId: string
networkWatcherName: string
resourceGroupName: string
retentionPolicy:
days: 0
enabled: false
storageAccountId: string
tags:
string: string
trafficAnalytics:
enabled: false
intervalInMinutes: 0
workspaceId: string
workspaceRegion: string
workspaceResourceId: string
version: 0
NetworkWatcherFlowLog Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The NetworkWatcherFlowLog resource accepts the following input properties:
- Enabled bool
- Should Network Flow Logging be Enabled?
- Network
Security stringGroup Id - The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- Network
Watcher stringName - The name of the Network Watcher. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- Retention
Policy NetworkWatcher Flow Log Retention Policy - A
retention_policy
block as documented below. - Storage
Account stringId - The ID of the Storage Account where flow logs are stored.
- Location string
- The location where the Network Watcher Flow Log resides. Changing this forces a new resource to be created. Defaults to the
location
of the Network Watcher. - Name string
- The name of the Network Watcher Flow Log. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Network Watcher Flow Log.
- Traffic
Analytics NetworkWatcher Flow Log Traffic Analytics - A
traffic_analytics
block as documented below. - Version int
- The version (revision) of the flow log. Possible values are
1
and2
. Defaults to1
.
- Enabled bool
- Should Network Flow Logging be Enabled?
- Network
Security stringGroup Id - The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- Network
Watcher stringName - The name of the Network Watcher. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- Retention
Policy NetworkWatcher Flow Log Retention Policy Args - A
retention_policy
block as documented below. - Storage
Account stringId - The ID of the Storage Account where flow logs are stored.
- Location string
- The location where the Network Watcher Flow Log resides. Changing this forces a new resource to be created. Defaults to the
location
of the Network Watcher. - Name string
- The name of the Network Watcher Flow Log. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags which should be assigned to the Network Watcher Flow Log.
- Traffic
Analytics NetworkWatcher Flow Log Traffic Analytics Args - A
traffic_analytics
block as documented below. - Version int
- The version (revision) of the flow log. Possible values are
1
and2
. Defaults to1
.
- enabled Boolean
- Should Network Flow Logging be Enabled?
- network
Security StringGroup Id - The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- network
Watcher StringName - The name of the Network Watcher. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- retention
Policy NetworkWatcher Flow Log Retention Policy - A
retention_policy
block as documented below. - storage
Account StringId - The ID of the Storage Account where flow logs are stored.
- location String
- The location where the Network Watcher Flow Log resides. Changing this forces a new resource to be created. Defaults to the
location
of the Network Watcher. - name String
- The name of the Network Watcher Flow Log. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags which should be assigned to the Network Watcher Flow Log.
- traffic
Analytics NetworkWatcher Flow Log Traffic Analytics - A
traffic_analytics
block as documented below. - version Integer
- The version (revision) of the flow log. Possible values are
1
and2
. Defaults to1
.
- enabled boolean
- Should Network Flow Logging be Enabled?
- network
Security stringGroup Id - The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- network
Watcher stringName - The name of the Network Watcher. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- retention
Policy NetworkWatcher Flow Log Retention Policy - A
retention_policy
block as documented below. - storage
Account stringId - The ID of the Storage Account where flow logs are stored.
- location string
- The location where the Network Watcher Flow Log resides. Changing this forces a new resource to be created. Defaults to the
location
of the Network Watcher. - name string
- The name of the Network Watcher Flow Log. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags which should be assigned to the Network Watcher Flow Log.
- traffic
Analytics NetworkWatcher Flow Log Traffic Analytics - A
traffic_analytics
block as documented below. - version number
- The version (revision) of the flow log. Possible values are
1
and2
. Defaults to1
.
- enabled bool
- Should Network Flow Logging be Enabled?
- network_
security_ strgroup_ id - The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- network_
watcher_ strname - The name of the Network Watcher. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- retention_
policy NetworkWatcher Flow Log Retention Policy Args - A
retention_policy
block as documented below. - storage_
account_ strid - The ID of the Storage Account where flow logs are stored.
- location str
- The location where the Network Watcher Flow Log resides. Changing this forces a new resource to be created. Defaults to the
location
of the Network Watcher. - name str
- The name of the Network Watcher Flow Log. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Network Watcher Flow Log.
- traffic_
analytics NetworkWatcher Flow Log Traffic Analytics Args - A
traffic_analytics
block as documented below. - version int
- The version (revision) of the flow log. Possible values are
1
and2
. Defaults to1
.
- enabled Boolean
- Should Network Flow Logging be Enabled?
- network
Security StringGroup Id - The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- network
Watcher StringName - The name of the Network Watcher. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- retention
Policy Property Map - A
retention_policy
block as documented below. - storage
Account StringId - The ID of the Storage Account where flow logs are stored.
- location String
- The location where the Network Watcher Flow Log resides. Changing this forces a new resource to be created. Defaults to the
location
of the Network Watcher. - name String
- The name of the Network Watcher Flow Log. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags which should be assigned to the Network Watcher Flow Log.
- traffic
Analytics Property Map - A
traffic_analytics
block as documented below. - version Number
- The version (revision) of the flow log. Possible values are
1
and2
. Defaults to1
.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkWatcherFlowLog resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NetworkWatcherFlowLog Resource
Get an existing NetworkWatcherFlowLog resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NetworkWatcherFlowLogState, opts?: CustomResourceOptions): NetworkWatcherFlowLog
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
location: Optional[str] = None,
name: Optional[str] = None,
network_security_group_id: Optional[str] = None,
network_watcher_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
retention_policy: Optional[NetworkWatcherFlowLogRetentionPolicyArgs] = None,
storage_account_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
traffic_analytics: Optional[NetworkWatcherFlowLogTrafficAnalyticsArgs] = None,
version: Optional[int] = None) -> NetworkWatcherFlowLog
func GetNetworkWatcherFlowLog(ctx *Context, name string, id IDInput, state *NetworkWatcherFlowLogState, opts ...ResourceOption) (*NetworkWatcherFlowLog, error)
public static NetworkWatcherFlowLog Get(string name, Input<string> id, NetworkWatcherFlowLogState? state, CustomResourceOptions? opts = null)
public static NetworkWatcherFlowLog get(String name, Output<String> id, NetworkWatcherFlowLogState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Enabled bool
- Should Network Flow Logging be Enabled?
- Location string
- The location where the Network Watcher Flow Log resides. Changing this forces a new resource to be created. Defaults to the
location
of the Network Watcher. - Name string
- The name of the Network Watcher Flow Log. Changing this forces a new resource to be created.
- Network
Security stringGroup Id - The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- Network
Watcher stringName - The name of the Network Watcher. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- Retention
Policy NetworkWatcher Flow Log Retention Policy - A
retention_policy
block as documented below. - Storage
Account stringId - The ID of the Storage Account where flow logs are stored.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Network Watcher Flow Log.
- Traffic
Analytics NetworkWatcher Flow Log Traffic Analytics - A
traffic_analytics
block as documented below. - Version int
- The version (revision) of the flow log. Possible values are
1
and2
. Defaults to1
.
- Enabled bool
- Should Network Flow Logging be Enabled?
- Location string
- The location where the Network Watcher Flow Log resides. Changing this forces a new resource to be created. Defaults to the
location
of the Network Watcher. - Name string
- The name of the Network Watcher Flow Log. Changing this forces a new resource to be created.
- Network
Security stringGroup Id - The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- Network
Watcher stringName - The name of the Network Watcher. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- Retention
Policy NetworkWatcher Flow Log Retention Policy Args - A
retention_policy
block as documented below. - Storage
Account stringId - The ID of the Storage Account where flow logs are stored.
- map[string]string
- A mapping of tags which should be assigned to the Network Watcher Flow Log.
- Traffic
Analytics NetworkWatcher Flow Log Traffic Analytics Args - A
traffic_analytics
block as documented below. - Version int
- The version (revision) of the flow log. Possible values are
1
and2
. Defaults to1
.
- enabled Boolean
- Should Network Flow Logging be Enabled?
- location String
- The location where the Network Watcher Flow Log resides. Changing this forces a new resource to be created. Defaults to the
location
of the Network Watcher. - name String
- The name of the Network Watcher Flow Log. Changing this forces a new resource to be created.
- network
Security StringGroup Id - The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- network
Watcher StringName - The name of the Network Watcher. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- retention
Policy NetworkWatcher Flow Log Retention Policy - A
retention_policy
block as documented below. - storage
Account StringId - The ID of the Storage Account where flow logs are stored.
- Map<String,String>
- A mapping of tags which should be assigned to the Network Watcher Flow Log.
- traffic
Analytics NetworkWatcher Flow Log Traffic Analytics - A
traffic_analytics
block as documented below. - version Integer
- The version (revision) of the flow log. Possible values are
1
and2
. Defaults to1
.
- enabled boolean
- Should Network Flow Logging be Enabled?
- location string
- The location where the Network Watcher Flow Log resides. Changing this forces a new resource to be created. Defaults to the
location
of the Network Watcher. - name string
- The name of the Network Watcher Flow Log. Changing this forces a new resource to be created.
- network
Security stringGroup Id - The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- network
Watcher stringName - The name of the Network Watcher. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- retention
Policy NetworkWatcher Flow Log Retention Policy - A
retention_policy
block as documented below. - storage
Account stringId - The ID of the Storage Account where flow logs are stored.
- {[key: string]: string}
- A mapping of tags which should be assigned to the Network Watcher Flow Log.
- traffic
Analytics NetworkWatcher Flow Log Traffic Analytics - A
traffic_analytics
block as documented below. - version number
- The version (revision) of the flow log. Possible values are
1
and2
. Defaults to1
.
- enabled bool
- Should Network Flow Logging be Enabled?
- location str
- The location where the Network Watcher Flow Log resides. Changing this forces a new resource to be created. Defaults to the
location
of the Network Watcher. - name str
- The name of the Network Watcher Flow Log. Changing this forces a new resource to be created.
- network_
security_ strgroup_ id - The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- network_
watcher_ strname - The name of the Network Watcher. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- retention_
policy NetworkWatcher Flow Log Retention Policy Args - A
retention_policy
block as documented below. - storage_
account_ strid - The ID of the Storage Account where flow logs are stored.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Network Watcher Flow Log.
- traffic_
analytics NetworkWatcher Flow Log Traffic Analytics Args - A
traffic_analytics
block as documented below. - version int
- The version (revision) of the flow log. Possible values are
1
and2
. Defaults to1
.
- enabled Boolean
- Should Network Flow Logging be Enabled?
- location String
- The location where the Network Watcher Flow Log resides. Changing this forces a new resource to be created. Defaults to the
location
of the Network Watcher. - name String
- The name of the Network Watcher Flow Log. Changing this forces a new resource to be created.
- network
Security StringGroup Id - The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
- network
Watcher StringName - The name of the Network Watcher. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
- retention
Policy Property Map - A
retention_policy
block as documented below. - storage
Account StringId - The ID of the Storage Account where flow logs are stored.
- Map<String>
- A mapping of tags which should be assigned to the Network Watcher Flow Log.
- traffic
Analytics Property Map - A
traffic_analytics
block as documented below. - version Number
- The version (revision) of the flow log. Possible values are
1
and2
. Defaults to1
.
Supporting Types
NetworkWatcherFlowLogRetentionPolicy, NetworkWatcherFlowLogRetentionPolicyArgs
NetworkWatcherFlowLogTrafficAnalytics, NetworkWatcherFlowLogTrafficAnalyticsArgs
- Enabled bool
- Boolean flag to enable/disable traffic analytics.
- Workspace
Id string - The resource GUID of the attached workspace.
- Workspace
Region string - The location of the attached workspace.
- Workspace
Resource stringId - The resource ID of the attached workspace.
- Interval
In intMinutes - How frequently service should do flow analytics in minutes. Defaults to
60
.
- Enabled bool
- Boolean flag to enable/disable traffic analytics.
- Workspace
Id string - The resource GUID of the attached workspace.
- Workspace
Region string - The location of the attached workspace.
- Workspace
Resource stringId - The resource ID of the attached workspace.
- Interval
In intMinutes - How frequently service should do flow analytics in minutes. Defaults to
60
.
- enabled Boolean
- Boolean flag to enable/disable traffic analytics.
- workspace
Id String - The resource GUID of the attached workspace.
- workspace
Region String - The location of the attached workspace.
- workspace
Resource StringId - The resource ID of the attached workspace.
- interval
In IntegerMinutes - How frequently service should do flow analytics in minutes. Defaults to
60
.
- enabled boolean
- Boolean flag to enable/disable traffic analytics.
- workspace
Id string - The resource GUID of the attached workspace.
- workspace
Region string - The location of the attached workspace.
- workspace
Resource stringId - The resource ID of the attached workspace.
- interval
In numberMinutes - How frequently service should do flow analytics in minutes. Defaults to
60
.
- enabled bool
- Boolean flag to enable/disable traffic analytics.
- workspace_
id str - The resource GUID of the attached workspace.
- workspace_
region str - The location of the attached workspace.
- workspace_
resource_ strid - The resource ID of the attached workspace.
- interval_
in_ intminutes - How frequently service should do flow analytics in minutes. Defaults to
60
.
- enabled Boolean
- Boolean flag to enable/disable traffic analytics.
- workspace
Id String - The resource GUID of the attached workspace.
- workspace
Region String - The location of the attached workspace.
- workspace
Resource StringId - The resource ID of the attached workspace.
- interval
In NumberMinutes - How frequently service should do flow analytics in minutes. Defaults to
60
.
Import
Network Watcher Flow Logs can be imported using the resource id
, e.g.
$ pulumi import azure:network/networkWatcherFlowLog:NetworkWatcherFlowLog watcher1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/networkWatchers/watcher1/flowLogs/log1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.