How to Rename a blob in blostorage with Azure functions

Hanna Fredericks 1 Reputation point
2020-09-24T07:14:07.74+00:00

Hello,

i have tried it for hours.
How can I rename a blob that has just been loaded into the blobstorage. I created a blobstorage trigger and this is ok but but then renaming the file doesn't work. How can i do that. Du you know a simple example about this?

namespace FunctionApp2
{
public static class Function1
{
[FunctionName("Function1")]
public static void Run([BlobTrigger("dev/{name}", Connection = "")]Stream myBlob, string name, ILogger log)
{
log.LogInformation($"C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes");

    }
}

}

Thanks for every help
Ciao Hanna

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,990 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 47,286 Reputation points Microsoft Employee
    2020-09-24T09:39:11.37+00:00

    @Hanna Fredericks Are you referring to the Blob container renaming, If so you can perform through Azure Storage Explorer tool
    28035-2020-09-24-15-04-59-microsoft-azure-storage-explor.png

    You can also refer to the suggestion mentioned in the SO thread


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.