https://pulumi.com logo
#azure
Title
# azure
d

dry-engine-17210

01/23/2024, 7:08 PM
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

salmon-account-74572

01/23/2024, 9:23 PM
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

dry-engine-17210

01/25/2024, 7:01 PM
Hi, Scott. Thanks for digging deeper on this. I'll give the CLI workaround a try. Hoping it's not a big hassle.
w

worried-knife-31967

01/27/2024, 9:05 PM
s

salmon-account-74572

01/29/2024, 3:36 AM
Thank you!
4 Views