https://pulumi.com logo
Title
l

late-diamond-14259

04/21/2021, 5:24 PM
Was able to get past the previous issue by using a Key instead of SAS Token, but now I'm getting "The specified resource name contains invalid characters." when attempting to use Azure Blob state management.
PS C:\repos\prft\skills-app> pulumi stack init skills-dev
error: could not create stack: An IO error occurred while writing the new snapshot file: blob (key ".pulumi/stacks/skills-dev.json") (code=Unknown): write error: -> <http://github.com/Azure/azure-storage-blob-go/azblob.newStorageError|github.com/Azure/azure-storage-blob-go/azblob.newStorageError>, D:/a/pulumi/pulumi/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.
Time:2021-04-21T16:33:47.9409359Z, Details:
   Code: InvalidResourceName
   PUT <https://REDACTED.blob.core.windows.net/REDACTED.blob.core.windows.net/pulumi/.pulumi/stacks/skills-dev.json?blockid=yXmEt6CFQR27phZjPsEO%2FwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%3D%3D&>   Authorization: REDACTED
   Content-Length: [77]
   User-Agent: [go-cloud/blob/0.1.0 Azure-Storage/0.13 (go1.16.3; Windows_NT)]
   X-Ms-Client-Request-Id: [9a9ee4bf-5cb7-48eb-7015-706ac48168b9]
   X-Ms-Date: [Wed, 21 Apr 2021 16:33:46 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: [Wed, 21 Apr 2021 16:33:47 GMT]
   Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
   X-Ms-Client-Request-Id: [9a9ee4bf-5cb7-48eb-7015-706ac48168b9]
   X-Ms-Error-Code: [InvalidResourceName]
   X-Ms-Request-Id: [cf2b04e4-801e-00b5-13cc-369b01000000]
   X-Ms-Version: [2019-12-12]
It seems to conform with the naming requirements, the only thing that feels a little out of place is the "." preceding ".pulumi/" but I don't see why that would be an issue according to this: https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata
Figured it out, the issue was I was using a full url of the store and container for the azblob://..., I corrected this and am just using the container name.