library
turbot/azure
Get Involved
Version
Pipeline: Apply Resource Tags
Apply tags to a specific Azure resource.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run azure.pipeline.tag_resources \ --arg 'tags=<map>' \ --arg 'resource_id=<string>'Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = azure.pipeline.tag_resources args = { tags = <map> resource_id = <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 |
| tags | map | Yes | The tags to be applied on the resource. Example: {key1: value1, key2: value2}. | - |
| resource_id | string | Yes | The resource identifier for the entity being tagged. A resource, a resource group or a subscription may be tagged. | - |
| incremental | bool | Yes | If true, the tags will be merged with the existing tags. If false, the existing tags will be replaced with the new tags. | true |
Outputs
| Name | Description |
|---|---|
| tag | The applied resource tags. |