How to install a .exe in the app service of Microsoft Azure? - azure

I published a web application in a app service of Microsoft Azure, but my application needs a driver to connect with a IBM database, that driver is installed in the machine where I developed the application but now I need to install the ".exe" file that contains that driver in the app service of Microsoft Azure in order to get my application running correctly.
How can I install a .exe file in app service of Microsoft Azure?

You can't install 3rd party software in App Service. You should look at deploying your app in a Virtual Machine instead. You'll be able to remote desktop to it and install your database driver.

Azure App Service doesn't allow installing any software to it.
You can include some executable (and its files) in your code tree, but writing to the filesystem or registry is denied.

I confirm that you can't.
If the executable does not require complex dependencies you can store it in the assembly resources and write into a temp directory (check this).
Another option is to have it deployed directly with your project tree.
Than you can invoke it with System.Diagnostics APIs.
But be aware if you're running a Linux App Service you need to set the file to executable.
I suggest to invoke directy the shell command: /bin/chmod +x your_cmd.

Related

How FTP deploy .NET Core WebApp to Azure Linux App Service plan

I want do deploy code to Linux App service plan over FTP but I fail because I am missing a step how to "say to app service to use app DLL instead of default one".
Code is copied, I even uploaded test zip file and I can't download it, getting error 404 so how did Microsoft imagine to deploy code over FTP? I couldn't find any info in their documentation regarding this exact case.
I want to avoid using docker file, If this can't be done I'll simply switch to using Windows based App service plan.
In application setting screen of your WebApp mention the startup file name
dotnet

Linux flavor and version on my Azure WebApp for linux

I am trying to host my .Net core MVC 2.1 linux application in azure WebApp. How do i know the Linux flavour, O/S, version running on WebApp? I am selecting 'West US' as region.
I think this is needed while i build my code on my development machine:
How to compile .NET Core app for Linux on a windows machine
My dev machine is ubuntu and Production server is CentOS
You can get system info from the Kudu environment. Kudu is the central nervous system of a Microsoft Azure Web Site; it handles the Git integration to a Web Site as well as provides an API endpoint for programmatic access to app settings, deployment information, files, active processes, runtime versions, source control information, web hooks and web jobs.
To get to Kudo, navigate to https://<webappname>.scm.azurewebsites.net, from there you can click on Environment to get something like this:
System info
System up time: 4.10:36:14.7190000
OS version: Unix 4.4.0.128
64 bit system: True
64 bit process: True
When you use Web App in Azure, you need to create the Service Plan first, it will need to decide the system type: Linux or Windows. And then when you create the web app, there is also a chance to choose a runtime for your web app in your Linux service plan(in your case, Linux is you need).
Azure provides some Built-in images as the runtime. See Build-in Runtime. If the runtime your application requires is not supported in the built-in images, you also can build your own Docker image as you need for your application. See Use a custom Docker image for Web App.
So you do not need to know what the OS is, you can just create the choose the OS you need. If you really really want to know the OS version, you can create an SSh session to your web app and run shell commands to check what the OS version is. See SSH support for Azure App Service on Linux.

How to create startup tasks (or install dependencies) in Azure Web App?

There is a Cloud Service in Azure classic deployment model. In the Cloud Service you can add web role and set up a startup tasks. If your application has any dependencies that require installation on the destination VM or controll over IIS-related settings, you can use a startup tasks to provide an unattended deployment for this configuration. For example, if you need installed software on the backend side, you can run MSI in startup task to install it.
Unfortunately, I can't find this functionality in new Azure Resource Manager model. My Web App need some installed software on backend side, but I can't figure out how to install it. Could you help me with this?
You can't. Web App (or App Service) doesn't give you control over the underlying OS. You should consider containerizing your app and run it through using e. g. ACI or AKS.
A Cloud Service was nothing more than a VM with extended support in Visual Studio. Cloud Services are deprecated but you can still create a VM in Azure and install your dependencies.

How to deploy netbeans app in MS azure

I made this java project in netbeans (it has a gui and uses files serialization) I have searched in the web for ways to deploy netbeans applications on azure however it seems that only eclipse has that feature. Thus, I am wondering if there is any way or method to deploy a netbeans application on MS Azure?
Microsoft provides a plugin for Eclipse for packaging Java applications for deployment as Windows Azure cloud services. This plugin is not available for Netbeans.
An alternative would be to deploy to a Windows Azure virtual machine instead of a cloud service. See instructions at How to run a Java application server on a virtual machine.
Another alternative would be to use a third-party tool such as Cloudify for Azure.
You can only create Cloud Service via the Eclipse enter link description here or via MS VS.
But you can still use NetBean to develop your application and use Eclipse/VS to manage your Cloud Service package. The package will contain the app server, its configuration and your wars/ears.
To make you life easier, you can update your Cloud Service package to download the application archive (and the app server and its configuration) from blob storage. This way no need to create a new complete package when the app is updated, you only need to upload the new war/ear and restart the instances. This will greatly increase your development efficiency.
you can do it in 3 steps
1) update your netbeans to version 7.4 and above
2) push you project to github repository
3)publish your web app from the github repository you just updated.

Hosting existing node.js apps on Windows Azure

Is it possible to port existing node.js applications to Windows Azure platform? I currently develop on my Mac but will need to deploy the application to Windows Azure in a near future.
You may also want to check a video on Channle 9.
node.js on Azure : http://channel9.msdn.com/Events/Patterns-Practices-Symposium-Online/Patterns-Practices-Symposium-Online-2012/node-js-on-Azure
Yes it is very much possible. You may also need to consider to make changes to use Azure Blob storage where your node.js code is using local file system (if required). The deployment is very similar to any other Windows Azure App and one you have Azure SDK for node.js you can use powershell cmdlets to make your job easy.
Download Node.js SDK for Azure
https://www.windowsazure.com/en-us/develop/nodejs/
Here you can learn the basics to deploy node.js app to Azure:
https://www.windowsazure.com/en-us/develop/nodejs/tutorials/getting-started/
Porting node.js apps to Azure is possible but not yet a yes/no answer.
You can run your Node apps in Azure but you need to look at the modules you're using to make sure you aren't depending on a tool or command or other facility that isn't yet available on Azure. For example, are you using a database like redis or couchDB or mysql? These don't exist natively in Azure so you may or may not be able to port that layer -- you'll have to check.
Since you're on a Mac, there isn't yet a native OS X deployment tool. Microsoft and the Cloud9 folks have been showing a way for Macs to deploy from the Cloud9 IDE which works but the Mac story will most assuredly improve over time. I work on a Mac but I keep a Windows VM open (Parallels) and if I deploy from the desktop I've been using the Powershell cmdlets in the Windows Azure SDK for Node.js which makes things fairly turnkey from Windows.
You will want to follow a couple of repos and their contributors: Azure SDK for Node, which allows native access to Azure Storage via npm install azure and iisnode (on Github) which is a component that assists your node app running under IIS (the Windows Web Server) on Azure.
It's been great to see the Node story on Azure evolve; it's still just a little early but they seem to be making great progress quickly.

Resources