I have a springboot webapp that i want to deploy to Azure. The app is springboot jar. I have been able to use azurewebapp plug in to achieve this but it is using OAUTH2 which limits integrating this deployment method into our CD (bitbucket).
So the more generic question would be how can i deploy my springboot app via bitbucket deployment pipeline?
I looked at sample yaml file from bitbucket and it looks like that it needs these variables
AZURE_APP_ID: $AZURE_APP_ID
AZURE_PASSWORD: $AZURE_PASSWORD
AZURE_TENANT_ID: $AZURE_TENANT_ID
AZURE_RESOURCE_GROUP: $AZURE_RESOURCE_GROUP
AZURE_APP_NAME: $AZURE_APP_NAME
ZIP_FILE: app-$BITBUCKET_BUILD_NUMBER.zip
So where would i get these values from
Azure App ID: I am assuming this is from Azure app service? But i don't see any app-id on my currently deployed app.
Azure Password: is this password for my (admin) account?
Azure Tenant ID: Whats this? where to get it from?
Also, is this correct approach or should i be using some other method? Azure pipeline?
Azure_App_Id, Azure_Password, Azure_Tenant_Id are the key-value pairs you will get after creating the service principal for your application in the Azure.
Brief Explanation:
AZURE_APP_ID is the associated service principal's application Id/Name/URL for login.
AZURE_PASSWORD is the service principal creds
As you mentioned the bitbucket pipeline, this bitbucket official site will helps you how to create service principal for your web app and get the details required for deploying YAML script.
This site extends to Azure CLI site of creating service principal that is focused on Function app deploy script to bitbucket, where you can follow the same steps and replace the function app with web app.
Related
I have been working on SpringBoot with Gradle tool. I am able to deploy the application locally. When I am trying to deploy using Microsoft Azure through GitHub the application got deployed. But I am not able to trigger the application services.
It means when I am trying to hit my REST service or Swagger page which is in application I am getting 404 error message on browser. I was able deploy the same using Heroku.
Note: I am new to Microsoft Azure. I have followed few Stack Overflow pages and Azure videos and Documents. But none of them were very helpful.
Per my experience, there are two ways for packaging a spring boot application, as an executable jar or a war file. I don't know which one is your choice.
If you packaged as an executable jar to deploy it on Azure WebApp, you need to create a web.xml file at the path wwwroot, and follow the document Upload a custom Java web app to Azure to configure it. The key configuration is for the attribute processPath with the value like java -jar <your spring boot executable jar file name>.jar.
If you packaged as a war file to deploy it on Azure WebApp, it's simple that you just need to refer to the document Add a Java application to Azure App Service Web Apps to upload the war file to the related directory webapps. However, if you didn't configure Azure WebApp with Java runtime, you also need to configure your Azure webapp instance on Azure portal or create a web.xml file to configure it as below.
Hope it helps.
I am currently working on xmpp-openfire server with java
I want to create and delete user in openfire server using RestAPI.
I already read the document http://www.igniterealtime.org/projects/openfire/plugins/restapi/readme.html#create-a-user
But I can't access that using that server
I don't know the steps which should i will follow.
First of all, you need to upload RestAPI plugin into openfire. You can do this from plugins admin view as there is a "Available plugins` link where you will download and deploy plugin with single mouse click
Later on, you have to enable and configure the plugin is plugin management section (Admin Web Interface) where you will configure ACL and security keys.
Then you can try to access REST service via GET http://example.org:9090/plugins/restapi/v1/users
with proper headers (described in docs from link you have provided)
I would like to ask how can I connect the Spark service of Bluemix from an application loaded on Java Liberty (still on Bluemix)?
Thank you
Open your bluemix dashboard and then open your Java Liberty CF App by clicking on it from CF Apps.
Click On Overview and then you can add a new spark service or bind your existing spark service from bluemix by clicking on the tiles for ADD A SERVICE OR API or BIND A SERVICE OR API.
Once your service is added then you can check the credentials by clicking on Show Credentials.
Now Whatever you are trying to do from your liberty APP, you can use those credentials to do your stuff.
But Practically, Apache-spark service is used for analytics using notebooks to do interactive data analysis or you can run jobs using spark-submit which is command line utility.
So if you java-liberty app going to consume some analytical output result,
you can run spark-submit jobs from your java-liberty app programmatically and then read the output from console(But i am not sure if this approach would be good).
But Recommended approach would be to let your spark-submit job store results in some Object store and then read that from your java-liberty app.
https://console.ng.bluemix.net/docs/services/AnalyticsforApacheSpark/index-gentopic3.html#genTopProcId4
Thanks,
Charles.
Our product is a hosted Web application which needs to be accessed by a client X using SSO.
The client credentials are maintained on a Azure Cloud platform, and users are authenticated when they login to their Windows PC.
What is the best way for us to integrate our application on the client's Windows environment, so that all users are authenticated without logging in to our application?
The client has pointed out that we could use ADAL but i'm not sure if that works as we do not have our own AD based or LDAP based user management platform. We currently store all the user management data in the DB.
I'm a newbie to this topic so any guidance is really appreciated.
Based on my understanding, the issue is that the authenticated user from a portal access a url link of Java Web Application working with SSO when the Java webapp and the portal are not identical.
Per my experience, I think you can try to use Azure AD Application Proxy to solve the issue. You can refer to the document https://azure.microsoft.com/en-us/documentation/articles/active-directory-application-proxy-sso-using-kcd/#working-with-sso-when-on-premises-and-cloud-identities-are-not-identical to know the application scenario of Application Proxy.
You can try to follow the steps below to implement the needs. And as references, there are some documents explained how to do for each step.
Enable the Azure AD Application Proxy on Azure Portal, and install & register the proxy connector for your application. Please refer to the doc https://azure.microsoft.com/en-us/documentation/articles/active-directory-application-proxy-enable/ for more details.
Publish your application using Application Proxy, please follow the wizard steps of the doc https://azure.microsoft.com/en-us/documentation/articles/active-directory-application-proxy-publish/.
Enable SSO for your application and the portal, please review the section Working with SSO when on-premises and cloud identities are not identical of https://azure.microsoft.com/en-us/documentation/articles/active-directory-application-proxy-sso-using-kcd/#working-with-sso-when-on-premises-and-cloud-identities-are-not-identical.
If some issue encounted in implementing the plan, you can firstly refer to the doc https://azure.microsoft.com/en-us/documentation/articles/active-directory-application-proxy-troubleshoot/ to troubleshoot.
Any concern, please feel free to let me know.
I have accomplished deploying a java web/worker role using Azure SDK for Eclipse with the help of the following site : http://dotnetslackers.com/articles/net/Developing-a-Hello-World-Java-Application-and-Deploying-it-in-Windows-Azure1.aspx
Are there options to deploy a java web/worker role using REST APIs of Azure.
Thanks in advance
Yes there is.
From this tutorial you've learned how to directly deploy your application (web role) to Windows Azure. The Windows Azure Tools plugin for Eclipse have one more option - create package. If you just create a package you can use it to later deploy it as Cloud Service (that is the web/worker role) via REST API or PowerShell cmdlets.
However the process of using REST API will be a two step process:
You upload your package to an Azure blob storage using the BLOB REST API.
Create a production deployment for your cloud service pointing the correct package URI in the blob. Do this by using the Azure Management REST API - Create Deployment operation;
Note that the REST Management API for Azure is using client certificate for authentication, which you first have to upload via the management portal.