1. Create Container Task in DevOps Pipeline if Container App Already in Azure
Create a Container App Task
Open your YAML file in DevOps
Search Following Task on List
Container apps
Define following parameters in our Azure Container Popup window
When we save the above task, it Add following new Task at the end of our YAML file
Add following more information
targetPort: Our own Application Docker file exposing to port no 3500
Ingress: because we want to expose this application on a public endpoint that's why we used it the ingress resource to be external. This will define the ingress within my Azure container apps itself. This will go to not only deploy a new container, but it will also go to change the ingress configuration.
2. Create Container Task in DevOps Pipeline if Container App not present in Azure
Check if Container App/Environment exist
Create the Container App Environment before deploying Docker image on it
if Exists then deploy