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

Unable to create azure.storage.Table - plan apply fails when checking for existence #360

Closed
johlrich opened this issue Sep 9, 2019 · 2 comments
Assignees

Comments

@johlrich
Copy link

johlrich commented Sep 9, 2019

Pulumi makes it through the preview, but will fail to apply with an error. The error details contain a url with the resource group name instead of the storage account name in it, which I'm assuming is the problem:

error: Plan apply failed: Error checking for existence of existing Storage Table "table3a4db274" (Account "storageca2999c2" / Resource Group "resourcegroupa22eacc9"): tables.Client#Exists: Failure sending request: StatusCode=0 -- Original Error: Get https://resourcegroupa22eacc9.table.core.windows.net/Tables('table3a4db274'): dial tcp: lookup resourcegroupa22eacc9.table.core.windows.net: no such host

This was reproducible on a new typescript-azure project with just a storage account + table like:

const resourceGroup = new azure.core.ResourceGroup("resourceGroup");

const account = new azure.storage.Account("storage", {
    resourceGroupName: resourceGroup.name,
    accountTier: "Standard",
    accountReplicationType: "LRS",
});

const table = new azure.storage.Table("table", {
    storageAccountName: account.name,
})

This is with 1.0.0

@pgavlin
Copy link
Member

pgavlin commented Sep 9, 2019

cc @mikhailshilkov @stack72

@stack72
Copy link
Contributor

stack72 commented Sep 9, 2019

Hi @johlrich

Apologies for the problem here - I have actually fixed this in the upstream Azurerm Terraform Provider repo

hashicorp/terraform-provider-azurerm#4234

This will be in the next release of the Azure provider

You can follow the release of the upstream provider here - https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/CHANGELOG.md#1340-unreleased

Paul

@stack72 stack72 closed this as completed Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants