- Install Azure Functions Core Tools Run
winget install Microsoft.AzureFunctionsCoreTools
ornpm install -g azure-functions-core-tools@4 --unsafe-perm true
. - Install Azure Storage Explorer via
winget install Microsoft.AzureStorageExplorer
or this website. - Install Azurite extension for Visual Studio Code. You can find more information about Azurite at this website.
- (Optional) install Azure Storage Emulator via
winget install Microsoft.AzureStorageEmulator
or this website. - Install Azure Functions extension for Visual Studio Code.
- (Optional) Install Azure Storage extension for Visual Studio Code.
- Copy a file named
local.settings.json
fromlocal.settings.json.template
, and replace<stickers-blob-connection-string>
with a concrete value. You can retrieve it with Azure Storage Explorer or Azure Storage extension. Read this for more information.
- Ensure the appropriate configuration exists in
local.settings.json
. - (Note) If you want to test functions with Azure Storage Emulator, run Azure Storage Emulator and wait for it to be ready to use. In this way, you should copy
local.settings.json
formlocal.settings.json.debug
. - (Note) If you want to test functions with Azurite, run
Azurite: Start Blob Service
,Azurite: Start Queue Service
, andAzurite: Start Table Service
in the command pallette, and selectimage-functions
as working directory. In this way, you should copylocal.settings.json
formlocal.settings.json.debug
. - Press F5 or run
Debug: Start Debugging
in the command pallette, and selectAttach to .NET Functions
.
- Ensure the appropriate configuration exists in
local.settings.json
. - Run
Azure Functions: Deploy to Function App...
in the command pallette, selectimage-functions
folder to deploy, and finally select the target resource (hack-stickers-v2-dev-image-functions
for dev test).