hi there, are you using the publish profile to deploy the container? You can check by looking at the action YAML. If it has the "publish-profile" property, then you are using a publish profile to authenticate and deploy the container.
- name: 'Run Azure webapp deploy action using publish profile credentials'
uses: azure/webapps-deploy@v2
with:
app-name: node-rn
publish-profile: ${{ secrets.azureWebAppPublishProfile }}
The publish profile won't work with private endpoints because it tries to authenticate to the SCM site on the webapp. When you have Private Endpoints, that URL is no longer accessible to the public internet.
You can instead use a Service Principal to authenticate and deploy your container. When using Service Principal, the request will go through ARM and update the container name and tag on the web app, instead of going through the SCM site. Here is an example of a workflow using a Service Principal to deploy a container to App Service: https://github.com/azure/webapps-deploy#sample-workflow-to-build-and-deploy-a-nodejs-app-to-containerized-webapp-using-azure-service-principal. Here are instructions on how to create the SP: https://github.com/Azure/login#configure-deployment-credentials