How to upload files to LEMP stack on Microsoft Azure Virtual Machine? - webserver

I'm new to the whole cloud computing virtual machines thing, and I just started my free trial of Microsoft Azure. I'm interested in setting up a web server running Nginx to host some PHP pages that connect to a MySQL database. I just followed this official tutorial on how to install a LEMP stack on a Linux virtual machine in Azure, but it doesn't give a whole lot of instruction after that. How do I upload my files to this newly created web server?

There are many methods that you can upload files to your Azure Linux VM, Here are two options for you:
Move files to and from a Linux VM using SCP. In this way, you need an SCP client for your local computer. It is built on top of SSH and included in the default Bash shell of most Linux and Mac computers and some Windows shells.
Create An Azure File Share and mount to your Azure Linux VM. In this case, you will create a storage account, then mount the Azure file share on your Linux VM. It's better used for multiple clients to upload the files to Azure VMs.

Related

Installation of tools in Azure virtual machine

I have a requirement to install tools like Nagios, BigFix and other tools inside an Azure virtual machine once it gets provisioned and joined to the domain. Currently, I have written PowerShell scripts for a remote installation of these tools via Jumpbox once the VM is domain joined.
Is there any other way this can be achieved?

Move file from Linux to windows server

I'm using Talend ETL tool.
What I'm trying to do is moving file from Linux machine to windows server and back to again to linux server after some work on that.
Is that possible we could achieve using Talend ?
Any suggestion or help would be appreciated.
Thanks !!
Assuming the Talend job is running on Linux and the remote file server is Windows and the remote file server is not running an SFTP or FTP server.
To copy from a Windows system to local system, you can use the built in component tFileFetch, which can copy files from a Samba share.
To copy files from Linux (Talend Job server) to the Windows file server, you'll likely need a third-party component. Look in the Talend Exchange site for the components "Samba copy", tSambaPut, tSambaFileCopy, tSambaGet, etc.
Alternatively, you could put an SFTP or FTP server on the Windows server. Then, it becomes very simple and you can just use the tFTP* series of components.

Trigger custom powershell scripts using azure xplat-cli module

I am using ansible hosted on linux to manage both Linux and windows VMs hosted on azure, and use azure xplat-cli commandline to create VMs. When i create windows server 2008, I need to trigger few startup scripts so that those are preconfigured while windows server is up. I was able to install CustomScript extension using below command
azure vm extension set
I have uploaded my scripts to azure blob storage account, and i need to trigger scripts using the extension, and i don't find any proper documentation (documentation was only for powershell). Can you please help

how to install operating system on a virtual machine programatically

It may be a duplicate question but i could not find it anywhere.
Anyway, my goal to install operating system(both linux and windows) programatically on a virtual machine running on vmware hosts.
Although my search, I am quite lost about where to start.
Is there a framework or project you can suggest?
You could use templates; i.e. create a VM, install the Linux distribution of your choice and make the VM a template. Then don't create VMs but deploy the template.
Alternatively, google for the Linux distribution of your choice and something like "network installation". You'll need a DHCP server and probably a TFTP and/or web server.
Working with Templates and Clones
Creating VMware Virtual Machine Templates
Try having a look at Vagrant: http://www.vagrantup.com/. It allows you to install/uninstall a predefined VM from the command line.

MSBuild deployment to machine outside of company network

Is it possible to deploy code (asp.net mvc application and Windows Service) to machine in public hosting (for example VM on Godaddy) using TFS MSBuild from internal network (company network)
All than I have is IP address of destination server, username and password. But I am not sure than TFS can deploy code at such machine.
When I doing it on local server, normally I specify path like this:
\machine-name\c$\deployment-folder\
But it is not working with remote machine.
Thanks.
Use a tool like InstallShield or Windows Installer XML to develop a Windows Installer database (.msi). Use TFS Team Build to build the MSI. Then use PsExec to copy the MSI to the remote machine and execute it.