Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting Azure API Management service exports bare minimum #494

Open
Radamonas opened this issue Jan 16, 2024 · 1 comment
Open

Exporting Azure API Management service exports bare minimum #494

Radamonas opened this issue Jan 16, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Radamonas
Copy link

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@email.com"
  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.

@magodo
Copy link
Collaborator

magodo commented Jan 17, 2024

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 magodo added the question Further information is requested label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants