sample
turbot/flowpipe-samples/deallocate-and-delete-unapproved-azure-vms

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

NameTypeRequiredDescriptionDefault
azure_conn
connection.azure
YesName for Azure connections to use. If not provided, the default connection will be used.connection.azure.default
zendesk_conn
connection.zendesk
YesName for Zendesk connections to use. If not provided, the default connection will be used.connection.zendesk.default
subscription_id
string
YesAzure Subscription Id. Examples: d46d7416-f95f-4771-bbb5-529d4c766.sdfdsfdf-wxyz-1234-bbbb-529d4c76659c
resource_group
string
YesAzure Resource Group. Examples: my-rg, my-rg-123.sandbox
tags_query
string
YesA JMESPath query to use in filtering the response data.[?tags.environment=='development' || tags.environment=='dev'].name

Outputs

NameDescription
vms_with_tagList of Azure VMs with the desired tags.
vm_statusesList of Azure VMs with their instance status.
deallocated_vmsList of Azure VMs that are deallocated.
deleted_vmsList of Azure VMs that are deleted.
zendesk_ticketsList of Zendesk tickets created for the deleted VMs.