Deploy web role in Windows Azure project to web site - visual-studio

I've created a Windows Azure project in Visual Studio 2012 that contains both a web role (an MVC 4 project) and a worker role. I've also created a cloud service and a web site in the Windows Azure management portal. When I deploy the project it deploys both to the cloud service and creates an instance for both the web and worker roles.
I was wondering if it were possible that when I select to deploy the project that it deploys the web role to the website and the worker role to the cloud service?
Any advice would be greatly appreciated. Thank you

In order to accomplish what you're trying to do, first you would need to remove the WebRole project from your Cloud Services Project. To do that, click on cloud service project, then expand Roles node and remove the WebRole project from there. Now when you deploy this cloud project, only worker role will get deployed. Since the web role is now no longer a part of your cloud services project, you will have to deploy it separately. In order to do that, you just right click on the web project and then publish that project.
Another thing you would need to keep in mind is that your web role is now a standard web application thus it won't be able to read from service configuration file or do any thing (like diagnostcs etc.) which you would normally do when a web role is part of a cloud service. All settings in your service configuration file should go under appSettings section in web.config file.

Related

Deploy Spring Boot from Azure App Service Deployment Centre and Github

I am trying to connect Azure App Service to my Spring Boot application on Github. The applications runs fine locally. I get the following error from the app service deployment centre logs.
Azure Error
My project structure.
project structure
Thanks,
Chris

How do I connect my Azure frontend static web app to my Azure backend app service via endpoints?

For a learning project we've built a frontend and backend application. The frontend "application" is just a bunch of linked html/css/javascript files. The backend application is a spring boot / maven / java project with some endpoints.
When I run the backend application locally I am able to send a GET-request successfully using Postman. Now we've hosted the backend application via Azure and I have no idea how I can send a GET-request, I don't know which url to use.
After I get this to work I'd like to connect front- and backend application using these url's.
As you can run the backend application in your local environment successfully, you have to follow the below steps to configure and deploy the spring boot web app to azure app service:
In a terminal window, run the following command to configure your web app with the Azure Maven Plugin
./mvnw com.microsoft.azure:azure-webapp-maven-plugin:1.14.0:config
Then, at the Command Prompt, run this maven command and set the default configurations by typing ENTER and Confirm (Y/N) => 'y' and the configuration will gets completed.
Once you've done with the above steps, run
mvn azure-webapp:deploy to publish the web app to Azure.
Your webapp URL will be displayed in the output.
I don't know which url to use?
You can use that URL from maven console output and access the web-app.
Also Refer this SO thread to know how to deploy frontend and backend to the same app service plan.

Deploy Web Services on Websphere Portal Server

Like we use DeployPortlet.xml file to deploy portlet on webspehre portal server, is there a similar way to deploy web services on webspehere portal server
unless they are WSRP services you cannot using xmlaccess, you would need to use the websphere appserver commands for doing it, either using the automated deployment steps using the properties files and the deployment directory, or using wsadmin to deploy them

Update Azure cloud service package and configuration

I have a azure cloud service which package and configuration I want to update/re-deploy. I don't find any option in Azure Portal to update the cloud service. Azure classic portal give the option to update the package but I don't have access to that :(
There is no more help of azure documentation except this
link to deploy cloud service
Is there any way if we can update the package through Azure Portal or VS.
Actually I have no code I have deploy winnovative html to pdf provided package to cloud service.
If you're referring to web/worker role cloud services, you must rebuild your service package and re-upload it. The only parts you may update outside of the configuration package:
the configuration file (.cscfg)
External content stored outside of the package file (such as content you retrieve from blobs)
Cloud Service >> Slot >> "UPDATE"
See here:
Update cloud service deployment

Web service - exclude authentication - IIS 7.0 Web Config

We are using IIS 7.0 as the web servers - It's configured to access IBM WAS6 application server on a different server.
We recently implemented Single Sign on with Ping Identity Management Solution. The identity management solution implemented is being invoked for the application correctly - We need to exclude this for the web services, which are part of our application running on WAS
The application URL has the following URL structure http://test.com/appname/services/Service
We have tried including location path section in IIS web.config but it does not seem to take effect.
How do we include config changes in web.config to include exclusion logic to avoid authentication when this web service is invoked on the application server
Any help is greatly appreciated..

Resources