We have created AZURE Static WebApp and Private endpoint in Azure cloud and the Static webapp fqdn is mapped to the privateendpoint ip by creating the DNS record in Private DNS zone.
Now the nslookup and name resolution is showing fine when we are testing it from the same virtual network range and telnet over 443 also working.
As a next step we were trying to deploy the node apps .dist folder using swa cli command line as below and which is getting failed.
swa deploy ./dist/ --env production --deployment-token xxxxxxxx
Welcome to Azure Static Web Apps CLI (1.1.2)
Deploying front-end files from folder:
/home/user/swa/test/dist
Consider providing api-language and version using --api-language and --api-version flags,
otherwise default values apiLanguage: node and apiVersion: 16 will apply
Deploying to environment: production
Deploying project to Azure Static Web Apps...
✖ Failed to contact content server, stopping...
✖ An unknown exception has occurred
When it comes to content deployment in Static Web Apps, the private endpoints are irrelevant, as the Static Web App is not accessed during the deployment, unlike the situation with web/function apps.
There are a few endpoints that are required for the deployment to succeed. These endpoints are dynamic, but they are determined on the creation of the Static Web App, and never change after that. The endpoints are:
The last two are the ones that are dynamic, but again, they never change for a Static Web App.