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=409will occur.
Inherited Members
Namespace: Pulumi.Azure.Monitoring
Assembly: Pulumi.Azure.dll
Syntax
public class LogProfile : CustomResource
Constructors
View SourceLogProfile(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 SourceCategories
List of categories of the logs.
Declaration
public Output<ImmutableArray<string>> Categories { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
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>> |
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> |
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> |
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> |
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 SourceGet(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 |