From the course: Streaming IoT Data with Azure Serverless and AI

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Options for deploying a function from VS Code

Options for deploying a function from VS Code - Azure Tutorial

From the course: Streaming IoT Data with Azure Serverless and AI

Options for deploying a function from VS Code

- [Instructor] Once we've debugged and verified our triggers working, let's deploy it to Azure. Inside of VS Code, there's a couple different ways we can do that. One is to use the Azure extension. If I open up the Azure extension, you'll see that I've got the workspace where I can see the functions and I can click on the function app and say Deploy to Azure. I could also go up to the resources, find the specific function and deploy it that way. This works pretty well. Another way I can is by creating a script and then I can have more control over where things get deployed. And I want to put this into particular resource group and I want to create a new function for that. To do this, I created a short deploy script in PowerShell that I have some variables I've set for the function name, the resource group, the storage, and the event hub connection string. The event hub connection string comes from the policies that we set up for that function. If I take a look at my event hub and go…

Contents