我们可以在 Azure 网站或虚拟机中运行 windowservice 或 EXE 吗? [英] Can we run windowservice or EXE in Azure website or in Virtual Machine?

查看:14
本文介绍了我们可以在 Azure 网站或虚拟机中运行 windowservice 或 EXE 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我体验过 Azure 上的云服务/托管服务.然而,关于另一个项目,我在功能选择方面感到困惑.

I have experienced with cloud service/hosted service on Azure. However regarding another project i am confused in selection in terms of functionalities.

我有一个项目(2 层 asp.net 应用程序),我需要运行 windowservice 或 exe,它们每天都会执行一些功能(如获取数据),所以我的困惑如下

I have project (2 tier asp.net app) with that i need to run windowservice or exe which will do some functionality every day (like fetch data) so my confusions are as below

关于 Windows Azure 网站

如果我要转移到预留实例,我可以访问 RDP 吗?
我可以运行 windowservice/exe 吗?

Can i access RDP if i'll move to reserved instance?
can i run windowservice/exe ?

关于 Windows Azure 虚拟机

和专用服务器一样吗?
我可以将 WASD 用作应用程序中的数据库吗?我想我可以运行任何 exe 并安装任何东西,但是 azure 会回收它,如果是,那么回收时发生了什么?
我可以在其中使用 new window server 2012 (VHD) 吗?

Is it same as dedicated server?
can i use WASD as database from application reside in same? I think i can run any exe and installed anything however azure is going to recycle this and if yes then what happened on recycling?
can i use new window server 2012 (VHD) in that?

Azure 网站和虚拟机都处于预览模式,因此将其用作生产版本是否可靠?

Azure website & VM both are in preview mode so is it reliable to use it as production version?

推荐答案

就 Windows Azure 网站 WAWS 而言:不,即使我知道你是保留的,你也不能 RDP 进入实例.此外,您不能在 WAWS 上运行 Windows 服务/exe.如果这些是您的要求,那么您想要运行虚拟机或在云服务上使用一些启动任务.

As far as Windows Azure Web Sites WAWS go: No, you can not RDP into the instance even if you are reserved that I know. Also, you can not run a windows service/exe on the WAWS. If these are requirements of yours then you want to run either a Virtual Machine or use some start up tasks on a Cloud Service.

使用 Windows Azure 虚拟机 (WAVM),您可以在本地服务器上安装服务或几乎任何可以安装的东西.请注意,许可由您决定是否超出操作系统的许可(如果您使用的是 Microsoft 的 SQL 映像,则适用于 SQL).是的,您可以从虚拟机使用/访问 Windows Azure SQL 数据库,但它不驻留在虚拟机上,它仍然是托管服务.您可以在 VM 上为 SQL Server 安装(或选择使用预制映像);但是,正如您指出的那样,这可能会下降或被回收.目前它们不支持复制;但是,他们确实支持镜像以解决盒子不时出现的问题.

With a Windows Azure Virtual Machine (WAVM) you may install a service, or pretty much anything you can install on your on premises servers. Note that licensing is up to you to figure out beyond the license for the OS (or for SQL if you are using the SQL image from Microsoft). Yes, you can use/reach Windows Azure SQL Database from the virtual machine, but it doesn't reside on the Virtual Machine, that is still a hosted service. You can install (or choose to use the premade image) for SQL Server on the VM; however, as you point out this can go down or get recycled. Currently they do not support replication; however, they do support mirroring to deal with the issue of the boxes being down from time to time.

我想他们在上个月底发布了 Windows Server 2012 作为 Windows Azure VM 的映像(因此使其可用).

They release Windows Server 2012 as an image (thus making it available) for Windows Azure VMs late last month I think.

至于将这些系统用于生产用途,它们处于预览阶段,因此我想说所有法律术语都会说您根本不应该将其用于生产.您的里程可能会有所不同,请注意,在预览版结束之前,除了您从论坛获得的以及堆栈溢出之外,这些功能没有官方支持;但是,如果您有真正令人信服的东西,您应该联系您当地的 Microsoft 代表,讨论您的需求.

As for using these systems for production use, they are in preview and thus I'd say that all the legalese will say you should not use it for production at all. Your mileage may vary and note that until it is out of preview there is no official support for these features beyond what you get from the forums and here on stack overflow; however, if you have something really compelling you should reach out to your local Microsoft rep to talk about your needs.

这篇关于我们可以在 Azure 网站或虚拟机中运行 windowservice 或 EXE 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆