1. Shenbagam Balakumar
  2. PowerServer
  3. Friday, 15 November 2024 08:26 AM UTC

Hi Team,

I'm trying to host my application into Azure Container.
I created Power server Project with External (IIS or folder) Target run mode and Folder Target server.
Please find the screen in below.

 

Created docker file using snap develop 2022 R3 and made the build for the solution.

We copied all files into Azure Devops. After that we created the Azure pipelines .yml file to build the image.

Container Instances is running successfully.


 

When I tried to access the private IP Address WEB API is Started successfully.



Now, how can I Access my Client Application (PowerBuilder application) from Azure? 

 

 Thanks,

Shenbagam Balakumar.

 

Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 19 November 2024 15:35 PM UTC
  2. PowerServer
  3. # 1

Hi Shenbagam,

I believe you created a container with only the Web API, you still haven't uploaded the Cloud App. Once you upload the Cloud App files somewhere, you need to modify the apprun.json file to update the Web API URL with the URL of the container.

 

Regards,
Francisco

Comment
There are no comments made yet.
Shenbagam Balakumar Accepted Answer Pending Moderation
  1. Tuesday, 19 November 2024 16:25 PM UTC
  2. PowerServer
  3. # 2

Hi Francisco,

Created another Azure Container instance with private IP address. Replaced app_url with web_api and we need to upload this apprun json file to new Azure Container instance.

Please Confirm for the same.

 

Thanks,

Shenbagam Balakumar.

 

 
Comment
  1. Logan Liu @Appeon
  2. Wednesday, 20 November 2024 01:51 AM UTC
Hi Shenbagam,

In apprun.json under the Cloud App Files folder, you can configure web_api/launcher/Runtime to URLs on different sites. But you can't change the key from web_api to app_url. The App URL only depends on the URL to access your Web Server and the path to access the Cloud App Folder, such as HTTP://localhost/{Your Cloud App Files Folder Name}. For more details about apprun.json, refer to: https://docs.appeon.com/ps2022r3/Concepts_Client_app.html



When building and deploying a PowerServer project successfully, you will get a complete set of files physically divided into 4 standalone components (Cloud App Files, Cloud App Launcher, Runtime, and PowerServer Web API). And you can host these components on the same or different servers. I can see you already deployed the Web API to the Docker container, but where do you want to deploy the Web Server (Cloud App Files, Cloud App Launcher, Runtime)? Refer to https://docs.appeon.com/ps2022r3/Server_setup_overview.html



If you want to use Static Web App to serve these static file (Cloud App Files, Cloud App Launcher, Runtime), you can refer to https://docs.appeon.com/ps2022r3/With_Static_Web_App.html



Regards, Logan

  1. Helpful 1
There are no comments made yet.
Shenbagam Balakumar Accepted Answer Pending Moderation
  1. Thursday, 21 November 2024 15:01 PM UTC
  2. PowerServer
  3. # 3

Hi Logan,

We tried to deploy the other components (Cloud App Files, Cloud App Launcher, Runtime) to Azure Container Instance.

We Created Docker file to copy those folders and we run pipeline to build and push the images to Azure portal. The job ran successfully.

After that I tried to Access the Private IP address of the Azure Container Instance, It’s not worked as excepted.

 

 

Please let me know, if anything that we missed.

 

Thanks,

Shenbagam Balakumar.

 

Comment
There are no comments made yet.
Shenbagam Balakumar Accepted Answer Pending Moderation
  1. Thursday, 21 November 2024 17:39 PM UTC
  2. PowerServer
  3. # 4

Hi Logan,

We also tried to deploy the cloud app into static webapp. Referred the below link.

With Static Web App - - PowerServer 2022 R3 Help

 

Installed Node.js and opened Node.js Command prompt. Ran the following command as mentioned in the document.

npm install -g @azure/static-web-apps-cli

 

 
swa deploy

 

Swa start

 

After that I tried to run the URL mentioned in the Static web app, but nothing happened.

 

 

And also, I tried to run the http://localhost:4280. This URL also not working.

 

Please help me on this.

 

Thanks,

Shenbagam Balakumar

 

Comment
  1. Logan Liu @Appeon
  2. Friday, 22 November 2024 03:45 AM UTC
Hi Shenbagam,

Have you created the HTML file? Refer to: https://docs.appeon.com/ps2022r3/deploying_the_cloud_app.html

Regards, Logan
  1. Helpful
There are no comments made yet.
Shenbagam Balakumar Accepted Answer Pending Moderation
  1. Friday, 22 November 2024 07:21 AM UTC
  2. PowerServer
  3. # 5

Hi Logan,

I Created nagency2_cloud.html file.

 

Thanks,

Shenbagam Balakumar.

Comment
  1. Francisco Martinez @Appeon
  2. Friday, 22 November 2024 14:13 PM UTC
Hi Shenbagam,



The file has to be named index.html for it to be loaded automatically by the browser when accessing that path, and the href attribute should be nagency2_appservice/

Please see this for reference: https://docs.appeon.com/ps2022r3/creating-an-index.html-file.html



Regards...Francisco
  1. Helpful 1
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.