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

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_credstringYesName for Azure credentials to use. If not provided, the default credentials will be used.default
zendesk_credstringYesName for Zendesk credentials to use. If not provided, the default credentials will be used.default
subscription_idstringYesAzure Subscription Id. Examples: d46d7416-f95f-4771-bbb5-529d4c766.sdfdsfdf-wxyz-1234-bbbb-529d4c76659c
resource_groupstringYesAzure Resource Group. Examples: my-rg, my-rg-123.sandbox
tags_querystringYesA 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.