When deploying spring app to azure in VS code, what's the endpoint to access the app? - spring

I'm new to this and I followed the instructions here https://code.visualstudio.com/docs/java/java-spring-apps#:~:text=Java%20on%20Azure%20Spring%20Apps%201%20Scenario%20We,...%206%20Deploy%20to%20Azure%20Spring%20Apps%20 to deploy the "hello world" app to azure. However, it's not clear to me how to access the deployed spring app? When I stream logs, I can see "Tomcat initialized with port(s): 1025 (http)".
I tried following this guide https://learn.microsoft.com/en-us/azure/spring-apps/quickstart?WT.mc_id=Portal-AppPlatformExtension&tabs=Azure-CLI
and used
https://<service instance name>-<app-name>.azuremicroservices.io/
and it didn't work.
How do I find out how to access this deployed app on Azure? Thanks!

I figured it out. After deploying in VSCode following the steps, you need to also make select the app deployed in azure explorer and "assign public endpoint". Then following this link and it's accessible
https://<service instance name>-<app-name>.azuremicroservices.io/.

Related

Docker Searching Active directory users

I am dockerizing an asp.net mvc app with base image microsoft/aspnet (framework 4.8). I am able to deploy the app in an Aws Ec2 instance and was able to launch the app successfully but search AD users module seems to be failing. C# Directory sevices is failing connect to Ldap service and getting service not found error. I am able to do this search using the same code from local Machine and from a console application hosted inside the server.
Any thoughts?

Could not make a call on api on heroku

I have deployed my dropwizard application on heroku. https://github.com/shabyWoks/DropWizardProjectStarter But after deploying the app i cannot see my api service taking my call from browser. I have attached the project to github and link is attached here. I am new in the face of application deployment on server and could not figure out what is happening.
Can anyoune help me?

Debugging Azure Mobile Service Authentication

I'm new to azure mobile services development and any help will be greatly appreciated.
I have created sample mobile service application and could successfully launch and debug it locally. As a next step I've added google authentication. Everything works fine when the service is Published and running in the cloud. But, I could not make the service to run locally so that I can debug the service for cases when the user is authenticated.
So for I have wrestled with IIS Express and made it work with HTTPS on port 44300. But Google authentication services complained because of redirect URLs mismatch, even though I've added https://localhost:44300/signin-google to redirect list.
I feel like I'm not doing something correct here. Something does not make me believe that debugging locally is not possible.
Thanks,
Ruben
Is possible to debug in localhost, but the google/facebook/Microsoft authentication should not be tested, because it is provided out-of-the-box by Azure Mobile Service team.
you should configure it in Azure Portal and then you should implement it in your application like documentation provides.
The following resources has the references to the Authentication articles:
Azure Mobile Services for Client Apps

Web application is seemingly not running when deployed in websphere

I have a war file which I deployed and ran in tomcat. Then I deployed it in websphere from admin console. The status of the webapplication is seen as started along with the built-in web applications such as "ivtApp", "query", etc. Now from this link:
Heading
http://pic.dhe.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=%2Fcom.ibm.websphere.nd.doc%2Finfo%2Fae%2Fae%2Frins_portnumber.html
It looks like the port number for web application is 9080 for http. I tried to run the application using the link:
http://{localhost}:9080/spring3HibernateMaven/index
(I am using "{" because this website didn't allow typing localhost)
the context root being spring3HibernateMaven. And I get page not found error in the browser. So I thought there must be something wrong with my web application. Hence I tried to run their web application:
http://{localhost}:9080/ivtApp
Which gives the same error. Even
http://{localhost}:9080/
gives the same error. I assume it should show something for this url as is shown from tomcat.
So how can I run the/any web application in websphere? FYI, I downloaded the latest version of websphere from their website.
Thanks
ivtApp has context path "ivt", so you need to use host:9080/ivt
Btw, you can find context path setting in websphere\application control panel

Service in Silverlight application does not work when deployed

I've created a Silverlight application that uses a service. The service is defined in the web project in that solution. The silverlight application references it and uses it.
Everything works locally on my dev machine when I run the application in Visual Studio.
I note that the url im given from VS is: http://localhost:50453/Default.htm
But when I deploy this (by filesystem copy deploy option) the web page starts and it looks okey except that it seems to have a problem using the service.
In the Silverlight application, if I look at the reference settings the url to the service is: http://localhost:50453/SilverlightService.svc and thats probably whats wrong, as the server that Im deploying to does not have a clue whats on port 50453.
So Im trying to change this port to 80 on my dev machine but Im out of luck. My web project does not have any property where I can change the port. Opened URL and URL is locked at http://localhost:50453 :-/
How can I change the my dev environment to match the production environment with port 80?
For sure you can change the web project's URL in project properties, but this is not a good solution because you'll get the same problems when accessing the SL application from a remote computer.
You need to set the service URL programmatically, like above:
ServiceReference1.Service1Client svc = new ServiceReference1.Service1Client();
Uri serviceUri = new Uri(System.Windows.Browser.HtmlPage.Document.DocumentUri, "Service1.svc");
svc.Endpoint.Address = new System.ServiceModel.EndpointAddress(serviceUri);
This solution uses the same URL that you are using to access the Silverlight Application.

Resources