You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have come across a use-case recently where I'd like to be able to upload a number of blobs to a storage account as part of a deployment through Farmer.
I tried doing this with an object expression but couldn't find a way to have a PostDeploy task with out any ARM model at the same time. As such, I propose this be added to the storage account itself.
I propose the following overloads for uploading blobs to a storage account as a post-deploy task.
storageAccount{
name "mystorage"
add_blob_container "myblobs"
// upload a single blob with a given name
+ upload_blob "myblobs" "blob1" "/path/to/my/blobs/1.blob"
// upload a directory to a blob container at a given root path
+ upload_blobs "myblobs", "dest/", "/path/to/my/blobs"
// upload specific files to a blob container at a given root path
+ upload_blobs "myblobs", "dest/", ["/path/to/my/blobs/1.blob"; "/path/to/my/blobs/2.blob"]
// upload specific files to a blob container at a given root path with given names
+ upload_blobs "myblobs", "dest/" ["blob1","/path/to/my/blobs/1.blob"; "blob2","/path/to/my/blobs/2.blob"]
}
The text was updated successfully, but these errors were encountered:
I have come across a use-case recently where I'd like to be able to upload a number of blobs to a storage account as part of a deployment through Farmer.
I tried doing this with an object expression but couldn't find a way to have a PostDeploy task with out any ARM model at the same time. As such, I propose this be added to the storage account itself.
I propose the following overloads for uploading blobs to a storage account as a post-deploy task.
The text was updated successfully, but these errors were encountered: