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

Error: Failed to import providers/Microsoft.Storage/storageAccounts/ #525

Open
diepes opened this issue May 1, 2024 · 1 comment
Open

Comments

@diepes
Copy link

diepes commented May 1, 2024

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 ...
⣾ Listing resources
⣾ Importing resources ...

Completes Importing for 35/36 and then fails with
Error:

Error: Failed to import /subscriptions/23...96/resourceGroups/dev-bp-rg/providers/Microsoft.Storage/storageAccounts/bpshare as azurerm_storage_account.res-35: exit status 1

Error: retrieving queue properties for Storage Account (Subscription: "23...96"
Resource Group Name: "dev-bp-rg"
Storage Account Name: "bpshare"): unmarshalling response: could not parse response body
@magodo
Copy link
Collaborator

magodo commented May 6, 2024

@diepes Could you please try manually import this resource via terraform import? If the issue remains, then please submit an issue in the upstream repo: https://github.com/hashicorp/terraform-provider-azurerm/issues/new/choose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants