Hey all, currently trying to migrate local state t...
# general
i
Hey all, currently trying to migrate local state to an Azure storage blob, but ran into an error with
pulumi login <azblob://pulumistate?storage_account=pulumistorage>
, where pulumistorage is the name of an existing storage account on Azure
error: problem logging in: error listing stacks: could not list bucket: blob (code=NotFound): Get <https://pulumistorage.blob.core.windows.net/pulumistate?comp=list&delimiter=%2F&maxresults=1000&prefix=.pulumi%2Fstacks%2F&restype=container>: dial tcp: lookup <http://pulumistorage.blob.core.windows.net|pulumistorage.blob.core.windows.net>: no such host
With tracing:
I1003 13:43:26.734495   51140 log.go:95] 2023/10/03 13:43:26 azureblob: constructed service URL: <https://pulumistorage.blob.core.windows.net>
I1003 13:43:26.734495   51140 log.go:95] 2023/10/03 13:43:26 azureblob.URLOpener: using NewDefaultAzureCredential
nslookup <http://pulumistorage.blob.core.windows.net|pulumistorage.blob.core.windows.net>
and pinging the given IP gives replies Specifying the storage account in the URL is supported since Pulumi v3.4.1 and I have version v3.8.83.0
pulumi stack ls
gives correct output I am new to Pulumi and DevOps in general, so any suggestions would be much appreciated
w
Looks like a typo. https://pulimistorage.blob.core.windows.net instead of pulumistorage….
i
Oh sorry I just fat-fingered that when trying to redact the real name of my storage account. Pulumistorage is a placeholder name.
Update: Got this working, my permissions in IAM were incorrect. Needed storage blob data contributor and storage account contributor