Previously i have asked question to choose service from windows azure which is best suitable for my application and based on answer # Can we run windowservice or EXE in Azure website or in Virtual Machine? I am going to use Virtual Machine
Regarding WAVM i have below queries
1)Can i implement SSL in same manner as we can do in dedicated server through IIS settings?
2)Also for stroing files/image i am not going to use storage account, so would be there any issue regarding this?
Thanks in advance!
You can use SSL the same way as on any Windows server. Dont forget to add the endpoints for internet (80) and SSL (443). The best way is to have the same port numbers externaly.
I have used this in a training for WIF where the Domain controler and ADFS were on a virtual machine in Azure.
For the second awnser. the C:\drive (OS disk) has a differnt backup senario than the disks you ad to the VM. So for storage of data add a Datadisk to your VM. The disk have a max size of 999GB. Depending on the VM size you can mout up to 16 disks. See image for instructions
The vhd file for the disk is in Azurestorage and therfore replictated 3 times localy and 3 times due to georeplication.
S.Y.
Michiel van Buuren
Related
I work in a small company and we develop PowerBI dashboards for a few clients. Data sources tend to change with each client from MySQL, MariaDB, SQL Server, Excel etc. Most clients want to setup scheduled refreshes but in order to do that we need a Data Gateway. So far i've used my machine as a gateway but that requires my computer to be on all the time which is not ideal. Since our clients data is usually stored in their own networks I believe we need an enterprise data gateway to manage all those scheduled refreshes for our current and future projects.
We don't have any physical on prem infrastructure, most of the company's developemnts are managed through AWS linux cloud servers. From what I've read a possible solution is to have a VM running 24/7 with the enterprise data gateway installed, although this seems a bit expensive taking into consideration Azure VM prices. Is there any other solution to my situation or is a VM the only path I can take?
There is no other option available, On prem data gateway requires installation and configuration to connect your data sources to powerBI, for this we require onprem machine or a VM in azure.
As you are aware the recommended machine configuration is:
An 8-core CPU
8 GB of memory
A 64-bit version of Windows 8 or Server 2012 R2 or later
Solid-state drive (SSD) storage for spooling.
If in case, your resources are running in azure you can use vnet data gateway,It doesn’t require any installation Create virtual network data gateways
I need to host my node.js telegram bot on Azure. I need to have a MySql database too. Is an Ubuntu virtual machine a good option?
I was thinking of using the B1s virtual machine. Do you have any advice for me? Is there any other Azure service that I could use for my purpose?
I use Azure because I am a student and I have a 100 euro credit.
To save money the best option is to use this VM size, that is not to expensive, and to improve your performance you can choose a premium SSD when creating the VM. I don't now exactly about your application server requirements, if you need more CPU or RAM you can change VM size any time you want.
What is good to save money is to use Azure Automation (https://learn.microsoft.com/en-us/azure/automation/), with this resource you can shutdown your VM in order to stop billing you for the resource. I just will give you one more advice, if you shutdown the VM, be carefull with the VM IP address, by default when creating a VM It comes as dynamic, remember to change this to static.
I have 2 Azure VMs I am using that will be responsible for hosting my website. I have traffic manager setup so that VM1 will run my website, and VM2 will be a failover.
I have the site setup working perfectly, except that my site allows users to upload images. These images simply are saved to the file system under the website (site.com/images/user2.jpg)
My question is how to keep these images in sync. For instance, if VM1 is up and a user uploads an image, that will be stored on VM1. If VM1 goes down, VM2 fires off, and the site is back up and running perfectly. Except, it does not have the image that the user uploaded when VM1 was up.
I've looked into Azure file storage, but that appears to need some code changes, which simply can't be done at this time. Is there any other way to keep the two failover systems in sync? It seems like failover isn't a good approach if not.
The easiest way to achieve it is using Azure File storage service.
File storage is a shared storage for applications using SMB 2.1 or 3.0 protocol.
Azure virtual machines can share file data across application components via mounted shares.
You'll need no issue some powershell commands to setup the File Share, and after that you should use net use batch command to map the file share to a mounted unit on each virtual machine Then applications can access that mounted storage any other storage device.
Here you can find detailed information and video about how to implement that solution
How to use Azure File storage with Windows
I am following the information in this documentation to access azure storage emulator (locally)
http://msdn.microsoft.com/en-us/library/azure/hh403989.aspx
In the storage emulator, because the local computer does not perform
domain name resolution, the account name is part of the URI path. The
URI scheme for a resource running in the storage emulator follows this
format:
http://<local-machine-address>:<port>/<account-name>/<resource-path>
The following format is used for addressing resources running in the
storage emulator:
Blob Service:
http://127.0.0.1:10000/<account-name>/<resource-path>
Queue Service:
http://127.0.0.1:10001/<account-name>/<resource-path>
Table Service:
http://127.0.0.1:10002/<account-name>/<resource-path>
For example, the
following address might be used for accessing a blob in the storage
emulator:
http://127.0.0.1:10000/myaccount/mycontainer/myblob.txt
It works fine if I try to access it from anything running on my computer, for example a local IIS server etc, that's because it has access to 127.0.0.1 on the pc
But what if I try to access it from an mobile device on the same wifi network ?
I can access local IIS servers from a mobile device by going to applicationhost.config and binding the local IIS server to the computer LAN IP for example 192.168.1.5 etc
Any idea how can I do this binding for the azure storage emulator ? i.e. how do I expose it to the LAN ?
Thanks
The local emulation services were not intended for remote access. I do recall reports of folks setting up "loop back" connections to help enable this. But IMHO, in most cases its almost easier and more cost affective to simply run the services in the cloud. This also helps avoid any issues with differences between cloud and on-premises.
If we look at doing mobile device development... You could easily spend several hours trying to properly set up the loopback. If we put a price on this... say $25/hr.. and we spent 3 hours setting it up. So we just spent $75 to build that out. By comparison, we likely could have used that same $75 to do our dev against a cloud storage account for the better part of a year.
I also faced similar issue where I wanted to access the azure storage emulator from another linux host for development. I ended up installing a local proxy server on the windows host which forwards request to the emulator instance.
I have a virtual machine with CentOs in Azure. Running a web-based application with a connection to the database (via public endpoint).
There is one machine with CentOs, which runs a database (MySQL). Approximately 30% of the connections to the database from the web application failed.
I also use API Facebook, and there are also problems with the connection.
What is the size of your Azure VM? Please note that there are I/O quotas applied to each VM size. Thus XS sized VM has just 20mbps connection, where XL can be up to 1Gbps.
Also please make sure you have Azure VM in an Azure Data Centre location which is closest to your MySQL Db.
I run a code that utilizes FB API on Medium sized VM (Worker Role) and don't have issues with it.