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