aztfexport
aztfexport copied to clipboard
A tool to bring existing Azure resources under Terraform's management
When running aztfexport resource-group CreatePrivateEndpointQS-rg does not generate terraform files aztfexport resource-group [option] exports a resource group and its including resources by its name. the arm template is attached I...
Currently, the Windows MSI installs aztfy to a global folder (C:\Program Files\aztfy), but it only adds that folder to the *current* user's path instead of the system path. If it's...
After apply the following Terraform code, the `azurerm_firewall_application_rule_collection` resource was not exported by aztfy. ```hcl resource "azurerm_resource_group" "example" { name = "example-resources" location = "West Europe" } resource "azurerm_virtual_network" "example"...
Apply the following Terraform code: ```hcl provider "azurerm" { features { key_vault { purge_soft_delete_on_destroy = true } } } data "azurerm_client_config" "current" {} resource "azurerm_resource_group" "example" { name = "zjhe-aztfy-bugbash"...
For ease of readability, I want the name argument to be the first item in a resource block. I've been painstakingly moving these manually. It looks like the arguments are...
``` PS D:\foo> aztfy.exe res --hcl-only /subscriptions/foo/resourceGroups/foo/providers/Microsoft.Web/sites/foo The output directory is not empty. Please choose one of actions below: * Press "Y" to overwrite the existing directory with new files...
aztfexport -v aztfexport version v0.14.1(f492475) Running: ``` aztfexport query \ --output-dir="$out_dir" \ --subscription-id="$AZTFEXPORT_SUBSCRIPTION_ID" \ --provider-name="azurerm" \ --provider-version="3.99.0" \ -n "resourceGroup =~ '$AZTFEXPORT_RG'" ``` it starts fine `⣾ Initializing ...` `⣾...
getting this error on some resources. Could you please help/advise on how to resolve this? current versions: ``` aztfexport version v0.14.1(f492475) Terraform v1.8.2 ``` Pasting below log snippet ``` 2024-04-24T15:03:40.912+0200...
when I run aztfexport rg it tells me all the resources are skipped, additionally it only shows one resource despite there being 14 in the group. I tried the --use-azure-cli-cred...
When I run aztfexport with the --resource-group argument, aztfexport runs for a moment and then shows no resource groups or resources found. I confirmed that my user account and my...