Trying to upload some artifacts to Blob storage vi...
# azure
d
Trying to upload some artifacts to Blob storage via Pulumi but hitting a bit of a roadblock ... Trying this:
Copy code
blob = storage.Blob("testblob",
    resource_group_name=resource_group.name,
    account_name=storage_account.name,
    container_name=blob_container.name,
    type=storage.BlobType.BLOCK,
    source=pulumi.FileAsset("./test.tgz"))
but ultimately because the file is larger than some (unsure of size?) limit, you get an error like:
Copy code
error: blobs.Client#PutBlockBlob: Failure responding to request: StatusCode=413 -- Original Error: autorest/azure: Service returned an error. Status=413 Code="RequestBodyTooLarge" Message="The request body is too large and exceeds the maximum permissible limit.\nRequestId:c50e0d90-201e-0096-1b2b-4ee183000000\nTime:2024-01-23T18:39:21.2986510Z"
I haven't been able to figure out how to orchestrate chunking and reassembly with Pulumi, either. Normally we'd expect an SDK to handle cover this type implementation detail... 😞 Has anyone hit a similar situation and come up with a Pulumi solution? Gave the Pulumi AI a try on this but it hallucinated parameters for
storage.Blob
that don't exist.
s
Hi Matt! I recently ran into this issue myself, but I haven't found a workaround yet. I'm going to ping some Azure folks internally to see if there's a solution they can point to.
Was pointed to this, so there may not be a workaround (other than shelling out to a CLI tool): https://github.com/pulumi/pulumi-azure-native/issues/2150
d
Hi, Scott. Thanks for digging deeper on this. I'll give the CLI workaround a try. Hoping it's not a big hassle.
w
s
Thank you!