aztfexport icon indicating copy to clipboard operation
aztfexport copied to clipboard

Running aztfexport from docker container throws an error

Open SivakumarShan opened this issue 5 months ago • 1 comments

I've successfully installed the aztfexport in a docker container and I'm trying to export the terraform configuration using the aztfexport command and I'm getting the below error.

Error: error running terraform init for the output directory: exit status 1

Error: Failed to query available provider packages

Could not retrieve the list of available versions for provider hashicorp/azurerm: no available releases match the given constraints 4.33.0

aztfexport res --append -n /subscriptions/<>/resourceGroups/<>/providers/Microsoft.Web/sites/aztfexport-appservice

I've also enabled the HTTPS_PROXY but no luck.

The same command is working perfectly fine in my local machine. I'm able to generate the terraform configuration file.

Can anyone help what I;m missing here.

SivakumarShan avatar Jul 23 '25 18:07 SivakumarShan

This normally indicates an issue reaching out to the terraform registry endpoint..

magodo avatar Jul 23 '25 23:07 magodo