Not able to append blob file , it's overwriting the blob using powershell

Azure-learning 56 Reputation points
2022-11-01T13:40:06.213+00:00

Not able to append blob file for logging , it's overwriting the file everytime I am running the powershell script,

Below is the command i am using in powershell

Set-AzStorageBlobContent -Container "data" -File "file" -Blob "$Year/$Month/$Day/status.csv" -Context $context -Force -BlobType Append

please suggest if any additional stoarge account related changes I have to perform

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,836 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,561 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,435 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 45,431 Reputation points
    2022-11-01T18:34:48.603+00:00

    Did you create the blob with the appropriate type?

    create-and-manage-append-blobs-with-powershell