https://pulumi.com logo
Title
i

incalculable-printer-98305

06/28/2021, 3:53 AM
Hi All, unable to create state in azure blob.. Getting this error stack name: (dev) Sorry, could not create stack ‘dev’: could not create stack: An IO error occurred while writing the new snapshot file: blob (key “.pulumi/stacks/dev.json”) (code=Unknown): write error: -> github.com/Azure/azure-storage-blob-go/azblob.newStorageError, /Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.13.0/azblob/zc_storage_error.go:42 ===== RESPONSE ERROR (ServiceCode=InvalidResourceName) ===== Description=The specifed resource name contains invalid characters. RequestId:14ac4b96-d01e-0129-05d0-6b0ac5000000 Time:2021-06-28T03:49:25.6010176Z, Details: Code: InvalidResourceName PUT https://securitydatabricks.blob.core.windows.net/securitydatabricks.blob.core.windows.net/securityaudit/.pulumi/stacks/dev.json?blockid=iWNUqgnHTOG%2FSRSfaF%2Fo7gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%3D%3D&comp=block&timeout=61 Authorization: REDACTED Content-Length: [70] User-Agent: [go-cloud/blob/0.1.0 Azure-Storage/0.13 (go1.16.5; darwin)] X-Ms-Client-Request-Id: [b75d64ef-6480-4425-4e0a-6053b7173af0] X-Ms-Date: [Mon, 28 Jun 2021 03:49:25 GMT] X-Ms-Version: [2019-12-12]
b

billowy-army-68599

06/28/2021, 9:14 AM
please share your code
i

incalculable-printer-98305

06/28/2021, 1:45 PM
@billowy-army-68599 I just did pulumi new azure-go, and used Azure Blob as my backend service by having these env variables, AZURE_STORAGE_ACCOUNT, AZURE_STORAGE_KEY and did pulumi login. There is no code, this is while initializing pulumi default dev stack
b

billowy-army-68599

06/28/2021, 1:49 PM
Does the bucket exist?
i

incalculable-printer-98305

06/28/2021, 1:53 PM
Yes @billowy-army-68599 this is the login URL which I used “login azblob://{storage_account_name}.blob.core.windows.net/{container_name}” and this is the response which I have got.. I assumed it was successfully able to login with blob “Logged in to Vishnus-MacBook-Pro.local as vishnukiran (azblob://securitydatabricks.blob.core.windows.net/securityaudit)”
b

billowy-army-68599

06/28/2021, 1:54 PM
Don’t use the container name
I think
i

incalculable-printer-98305

06/28/2021, 1:54 PM
Just this? azblob://{storage_account_name}.blob.core.windows.net/
@billowy-army-68599 Same error even after removing the container name
Sorry, could not create stack ‘dev’: could not create stack: An IO error occurred while writing the new snapshot file: blob (key “.pulumi/stacks/dev.json”) (code=Unknown): write error: -> github.com/Azure/azure-storage-blob-go/azblob.newStorageError, /Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.13.0/azblob/zc_storage_error.go:42 ===== RESPONSE ERROR (ServiceCode=InvalidResourceName) ===== Description=The specifed resource name contains invalid characters. RequestId:6978012a-101e-00b8-6125-6cd821000000 Time:2021-06-28T13:57:25.5381976Z, Details: Code: InvalidResourceName PUT https://securitydatabricks.blob.core.windows.net/securitydatabricks.blob.core.windows.net/.pulumi/stacks/dev.json?blockid=eX%2Bz7yN0TU6Uc%2B6KDkbtDwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%3D%3D&comp=block&timeout=61 Authorization: REDACTED Content-Length: [70] User-Agent: [go-cloud/blob/0.1.0 Azure-Storage/0.13 (go1.16.5; darwin)] X-Ms-Client-Request-Id: [760f3b09-72b2-457a-5003-1027c6bfce74] X-Ms-Date: [Mon, 28 Jun 2021 13:57:25 GMT] X-Ms-Version: [2019-12-12] -------------------------------------------------------------------------------- RESPONSE Status: 400 The specifed resource name contains invalid characters. Content-Length: [243] Content-Type: [application/xml] Date: [Mon, 28 Jun 2021 13:57:25 GMT] Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] X-Ms-Client-Request-Id: [760f3b09-72b2-457a-5003-1027c6bfce74] X-Ms-Error-Code: [InvalidResourceName] X-Ms-Request-Id: [6978012a-101e-00b8-6125-6cd821000000] X-Ms-Version: [2019-12-12]