CmdID / az / az terraform
az terraform export-terraform
Exports the Terraform configuration of the specified resource(s) Azure CLI extensions reference
6 options Its page in the Azure CLI extensions reference
Options
--export-queryExport parameter for resources queried by ARG (Azure Resource Graph).--export-resource-groupExport parameter for a resource group.--export-resourceExport parameter for individual resources.--full-propertiesWhether to output all non-computed properties in the generated Terraform configuration?--mask-sensitiveMask sensitive attributes in the Terraform configuration--target-providerThe target Azure Terraform Provider