If you have specified the site URL when creating the package in the IDE, the site URL will be used as the Web API URL. If you have not specified the site URL in the IDE, you can specify the Web API URL in the client app after the package is created.
Go to the server root > [appname] folder, and specify the URL of the PowerServer Web APIs in the apprun.json file, for example, https://demok8s.appeon.com:9005, or https://52.143.79.245:9005.
{ "deployment_urls": { "launcher": "CloudAppPublisher/CloudAppInstall 22.0", "runtime": "CloudAppPublisher/runtime/22.1.0.2664", "web_api": "https://demok8s.appeon.com:9005" } }
If you input the domain name (in this tutorial, demok8s.appeon.com) here, make sure the domain name is associated with the IP address. The IP address should be the Azure static public IP address (in this tutorial, 52.143.79.245) created in Creating public IP address.
The port number should be the same one specified later in the YAML manifest file that defines the Kubernetes pod for running the Web API docker image (in this tutorial, the pre-defined port number is 9005).
Notes:
-
Make sure the Kubernetes pod for the Web API will be run at the same domain name/IP address and port number later.
-
If the domain name/IP address and port number are changed later, you will need to modify the Web API URL in the apprun.json file.