Show / Hide Table of Contents

Class LogProfile

Manages a Log Profile. A Log Profile configures how Activity Logs are exported.

NOTE: It's only possible to configure one Log Profile per Subscription. If you are trying to create more than one Log Profile, an error with StatusCode=409 will occur.

Inheritance
System.Object
Resource
CustomResource
LogProfile
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.Monitoring
Assembly: Pulumi.Azure.dll
Syntax
public class LogProfile : CustomResource

Constructors

View Source

LogProfile(String, LogProfileArgs, CustomResourceOptions)

Create a LogProfile resource with the given unique name, arguments, and options.

Declaration
public LogProfile(string name, LogProfileArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

LogProfileArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Categories

List of categories of the logs.

Declaration
public Output<ImmutableArray<string>> Categories { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Locations

List of regions for which Activity Log events are stored or streamed.

Declaration
public Output<ImmutableArray<string>> Locations { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Name

The name of the Log Profile. Changing this forces a new resource to be created.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

RetentionPolicy

A retention_policy block as documented below. A retention policy for how long Activity Logs are retained in the storage account.

Declaration
public Output<LogProfileRetentionPolicy> RetentionPolicy { get; }
Property Value
Type Description
Output<LogProfileRetentionPolicy>
View Source

ServicebusRuleId

The service bus (or event hub) rule ID of the service bus (or event hub) namespace in which the Activity Log is streamed to. At least one of storage_account_id or servicebus_rule_id must be set.

Declaration
public Output<string> ServicebusRuleId { get; }
Property Value
Type Description
Output<System.String>
View Source

StorageAccountId

The resource ID of the storage account in which the Activity Log is stored. At least one of storage_account_id or servicebus_rule_id must be set.

Declaration
public Output<string> StorageAccountId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, LogProfileState, CustomResourceOptions)

Get an existing LogProfile resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static LogProfile Get(string name, Input<string> id, LogProfileState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

LogProfileState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
LogProfile
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.