sample
turbot/flowpipe-samples/deallocate-and-delete-unapproved-azure-vms
Get Involved
Version
Pipeline: deallocate_and_delete_unapproved_azure_vms.pipeline.deallocate_and_delete_unapproved_azure_vms
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run deallocate_and_delete_unapproved_azure_vms.pipeline.deallocate_and_delete_unapproved_azure_vms
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = deallocate_and_delete_unapproved_azure_vms.pipeline.deallocate_and_delete_unapproved_azure_vms }
Params
Name | Type | Required | Description | Default |
---|---|---|---|---|
azure_conn | connection.azure | Yes | Name for Azure connections to use. If not provided, the default connection will be used. | connection.azure.default |
zendesk_conn | connection.zendesk | Yes | Name for Zendesk connections to use. If not provided, the default connection will be used. | connection.zendesk.default |
subscription_id | string | Yes | Azure Subscription Id. Examples: d46d7416-f95f-4771-bbb5-529d4c766. | sdfdsfdf-wxyz-1234-bbbb-529d4c76659c |
resource_group | string | Yes | Azure Resource Group. Examples: my-rg, my-rg-123. | sandbox |
tags_query | string | Yes | A JMESPath query to use in filtering the response data. | [?tags.environment=='development' || tags.environment=='dev'].name |
Outputs
Name | Description |
---|---|
vms_with_tag | List of Azure VMs with the desired tags. |
vm_statuses | List of Azure VMs with their instance status. |
deallocated_vms | List of Azure VMs that are deallocated. |
deleted_vms | List of Azure VMs that are deleted. |
zendesk_tickets | List of Zendesk tickets created for the deleted VMs. |