library
turbot/azure
Get Involved
Version
Pipeline: Update Monitor Log Profile Retention Policy
Update the retention policy of an Azure Monitor log profile.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run azure.pipeline.update_monitor_log_profile_retention_policy \ --arg 'subscription_id=<string>' \ --arg 'log_profile_name=<string>'Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = azure.pipeline.update_monitor_log_profile_retention_policy args = { subscription_id = <string> log_profile_name = <string> }}Params
| Name | Type | Required | Description | Default |
|---|---|---|---|---|
| conn | connection.azure | Yes | Name of Azure connection to use. If not provided, the default Azure connection will be used. | connection.azure.default |
| subscription_id | string | Yes | Azure Subscription Id. Examples: d46d7416-f95f-4771-bbb5-529d4c766. | - |
| log_profile_name | string | Yes | The name of the log profile. | - |
| retention_days | number | Yes | The number of days to retain the logs. | 365 |
| retention_enabled | bool | Yes | Whether the retention policy is enabled. | true |
| location | string | Yes | Whether the retention policy is enabled. | global |
Outputs
| Name | Description |
|---|---|
| log_profile | The updated monitor log profile details. |