+ Deploy the code to Azure Function with Private Endpoint via Azure DevOps.(The Az Agent can deploy the Azure Function because they are the same virtual network)
- Setup Azure Agent to deploy the private Azure Function
- Create Infrastructure Azure Function with Private Endpoint via Terraform
- The service connection needs the client Id and client secret. We should be created secret credential(above)
+ Create a Virtual Machine
+ Create an Azure Function with Private Endpoint
+ Create an Azure DevOps Project
+ Create a Service Connection (Azure DevOps connects to the Azure Cloud)
+ Create an Agent Pool and Install into VM (private network)
+ Deploy the Azure Function (deployment.yml)
+ Create manual Storage Account & Container. It saves the terraform state file.
+ Create an Azure Function with Private Endpoint via Terraform (azure-deployment.yml)
+ Create a Virtual Network & Subnet
+ Create an Azure Function
+ Create a Network Interface
+ Create a Private Endpoint and attach it to the Azure Function
+ Create a Virtual Machine with the same virtual network and deploy code to the Azure Function as above(##Create Manual All Resources)
+ For public HTTP Trigger: we will be mapped the Azure Function and an API Management for public the endpoint