未加星标

Google Cloud Platform (GCP) Compute Engine Windows Server VMs

字体大小 | |
[系统(windows) 所属分类 系统(windows) | 发布者 店小二04 | 时间 2017 | 作者 红领巾 ] 0人收藏点击收藏
Intro to GCP Compute Engine

If you’re a windows .NET developer, then when you think cloud, your first thought is probably Microsoft Azure. However, Google Cloud Platform (GCP) has a very strong offering for Windows developers as well, starting with one of the most fundamental building blocks of cloud computing: the Virtual Machine (VM). The Google Cloud Platform’s name for VMs in the cloud is Compute Engine . It might be intimidating to step into an arena largely populated by unfamiliar linux servers and enough foreign programming languages to populate a veritable Tower of Babel, but let me reassure you: working with Windows Server VMs in GCP is extremely friendly and approachable. In this tour, I’ll act as your friendly guide to show you some of the things that I like and appreciate about the VM management experience in GCP. Just so you know where I’m coming from: I’m happier and more comfortable writing code than wrangling infrastructure, so if I can find things to love about managing VMs in GCP, then I bet you can too.

Creating Windows Server VMs

There are two main ways to create a new VM in GCP: by creating a new instance from the Compute Engine | VM Instances tab, or by using the Cloud Launcher. The difference here is that the Cloud Launcher offers a catalog of preconfigured VM images with additional software installed, whereas creating a new VM instance in the Compute Engine tab will get you a VM with nothing more than the selected OS installed.

Creating an Empty VM

For ASP.NET development, it will generally be more convenient to use the Cloud Launcher to take advantage of the pre-configured images, but let’s take a quick look at creating a plain VM first.


Google Cloud Platform (GCP) Compute Engine   Windows Server VMs

Here you can see the basic options available. The machine type dropdown actually controls both vCPU and memory in lockstep, but you can create custom combinations of CPU and memory if you desire. Below that is the boot disk configuration where you choose operating system, disk type (standard or SSD) and disk size. Finally, to the right is a terrific itemized breakdown of the cost, so you can quickly and interactively see how the options you choose affect the price. Lastly, I want to call attention to this little nugget at the bottom because it’s easy to miss and yet so appreciated.


Google Cloud Platform (GCP) Compute Engine   Windows Server VMs

After you interactively configure a VM, you can click these links to get a modal window that contains the exact REST or gcloud command so you can automate creation of identical VMs in the future. You’ll find thoughtful little concessions like this sprinkled throughout the GCP UI.

At this point you can click Create to provision a brand-new Windows Server with nothing installed.

Creating an ASP.NET VM with Cloud Launcher

Now let’s take a look at what you get by using the Cloud Launcher to create an ASP.NET VM. Cloud Launcher will both create a VM with the configuration you specify, and also customize that VM with additional software and configurations. Right now, you can find the image in the Cloud Launcher just by searching for “asp”.


Google Cloud Platform (GCP) Compute Engine   Windows Server VMs

As you can see in the text on the card, this image includes IIS and ASP.NET. The inclusion of SQL Express is simply to make it easy to get started with ASP.NET in GCP, because obviously you can’t and won’t scale an app without a common database at least in most cases. Clicking on the card will bring up a more complete set of information including a pricing projection based on the default configuration. Unfortunately, if you choose to customize the image before creation, you won’t get to see an updated pricing projection like you can with the Compute Engine UI. I’ll create one with the default configuration so you can see how to manage one of these VMs.

Managing Windows VMs in the Google Cloud

Whether you create a bare Windows Server instance or use the Cloud Launcher, you will end up in the Deployment Manager. On the right side of the page, just under the instance info, there is a button with a dropdown button on it.


Google Cloud Platform (GCP) Compute Engine   Windows Server VMs

Available options are:

RDP Create/reset password Show gcloud command to reset password Download RDP file

The first thing you should do is actually create a Windows password. See how once again the UI shows you how to automate this task? I love that! Once you create a Windows password, you can manage the instance remotely. The two main options available are “RDP” and “Download the RDP file”. The first option will launch a browser-based RDP session, while the second will download a file that contains all the info you need to connect with your local, native RDP client. This is not the only place where a browser-based alternative is available; every GCP account can also launch a browser-based terminal session with aLinux-based environment with many essential developer tools pre-installed and a persistent home directory. You could in theory do all your work on a Chromebook! I mean, you probably wouldn’t, but it’s still nice.

Once you’re at the point where you can connect with RDP to the VM, it’s just like managing any other Windows Server. I’ll write separately about my experience migrating an ASP.NET web application from Azure App Services to a VM in GCP.

本文系统(windows)相关术语:三级网络技术 计算机三级网络技术 网络技术基础 计算机网络技术

分页:12
转载请注明
本文标题:Google Cloud Platform (GCP) Compute Engine Windows Server VMs
本站链接:http://www.codesec.net/view/532389.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(windows) | 评论(0) | 阅读(83)