Azure Function for upload a file and save to Azure Blob Storage.
Nodejs (version 16.x)
Extensions VsCode:
Copy the file local.settings.example.json
and rename to local.settings.json
Edit file local.settings.example.json
{
"IsEncrypted": false,
"Values": {
"Environment": "Development",
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "node"
}
}
In function app
Replace the value of AzureWebJobsStorage
with Connection String from Storage account in Azure Portal.
npm install
npm install -D
Start Local Storage. All files saved in folder azureStorage
npm run start-azurite
Start Function
npm start