Azure Functions in C# and deployed to a Consumption Plan on Windows.
To deploy your infrastructure, follow the below steps.
- Install Pulumi
- Install .NET Core 3.0+
- Azure CLI(https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
- Create a new stack:
pulumi stack init dev
- Login to Azure CLI (you will be prompted to do this during deployment if you forget this step):
az login
- Build and publish the Functions project:
dotnet publish functions
- Configure the location to deploy the resources to:
pulumi config set azure:location JapanEast
- Run
pulumi up
to preview and deploy changes:
pulumi up --yes
- Check the deployed function endpoints:
curl "$(pulumi stack output Endpoint)"
Hello, Pulumi
- Once you've finished experimenting, tear down your stack's resources by destroying and removing it:
pulumi destroy --yes
pulumi stack rm --yes