aztfexport icon indicating copy to clipboard operation
aztfexport copied to clipboard

Exporting Azure API Management service exports bare minimum

Open Radamonas opened this issue 1 year ago • 1 comments

I tried to export one resource only or whole resource group, however I was not able to get a lot from already existing APIM setup we have in the cloud:

resource "azurerm_api_management" "res-0" {
  location            = "westeurope"
  name                = "name"
  publisher_email     = "[email protected]"
  publisher_name      = "ACME"
  resource_group_name = "rg-acme"
  sku_name            = "Developer_1"

  identity {
    type = "SystemAssigned"
  }
}

I was interested to get hostname_configuration at least, but this information was not extracted even when I was running whole resource group extract.

Radamonas avatar Jan 16 '24 18:01 Radamonas

Hi @Radamonas, by default the tool will ignore "zero" values or O(ptional)+C(omputed) properties, since the goal of aztfexport is to generate valid configuration and pass terraform plan, otherwise, they might introduce other issues. If you really wants all the non-readonly properties to be exported, you can specify --full-properties flag.

magodo avatar Jan 17 '24 01:01 magodo

:wave:

Since we've not heard back here I'm going to close this issue for the moment. Feel free to reopen if still have questions.

magodo avatar Aug 09 '24 07:08 magodo