Stay organized with collections Save and categorize content based on your preferences.
This tutorial shows how to get started with Compute Engine. Follow this tutorial by deploying a Hello World .NET web app to Compute Engine. For help getting started with App Engine, see the App Engine standard environment.
ObjectivesIn this document, you use the following billable components of Google Cloud:
To generate a cost estimate based on your projected usage, use the pricing calculator.
New Google Cloud users might be eligible for a
free trial.
Before you beginIn the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.Verify that billing is enabled for your Google Cloud project.
Enable the Compute Engine API.
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.Verify that billing is enabled for your Google Cloud project.
Enable the Compute Engine API.
Download and unzip or clone the sample repository from github:
git clone https://github.com/GoogleCloudPlatform/getting-started-dotnet.git
In a PowerShell window, go into the HelloWorld
directory:
cd getting-started-dotnet\HelloWorld
Start a local web server:
dotnet run
Open a web browser to localhost:8080
.
In your web browser, you see some Hello World text, served from your local machine.
When you're ready to move on, stop the local web server by pressing Control+C.
This section walks you through running a single instance of your app on Compute Engine.
Create and configure a Compute Engine instanceFrom Google Cloud Marketplace, you can launch an instance of Windows running Microsoft IIS on Compute Engine.
In the Google Cloud console, go to the ASP.NET Framework Cloud Marketplace page.
Click Launch.
Leave the settings set to their default values, and click Deploy.
Wait for the Compute Engine instance to deploy. It usually takes about 5 minutes to deploy.
To display resource information, click VM instance.
To edit the VM instance, click Manage Resource.
Click Set Windows password, and then make a note of the username.
Copy the new Windows password, and then click Close.
In the VM instance details page, make a note of the external IP address.
On your local Windows machine, edit the file HelloWorld/Properties/PublishProfiles/ComputeEngine.pubxml
.
Enter your VM instance's external IP address between <MSDeployServiceURL>
and </MSDeployServiceURL>
. For example, <MSDeployServiceURL>203.0.113.22</MSDeployServiceURL>
Enter the instance's username that you previously noted between <UserName>
and </UserName>
.
Save your changes to the ComputeEngine.pubxml
file.
In a PowerShell window, publish your app to the Compute Engine instance:
dotnet publish -c Release ` /p:PublishProfile=Properties\PublishProfiles\ComputeEngine.pubxml ` "/p:Password=YOUR-PASSWORD"
Replace YOUR-PASSWORD
with the password you previously copied.
Open a web browser to your instance's external IP address.
In your web browser, you see some Hello World text, served from your Compute Engine instance.
You can use the Google Cloud console to monitor and manage your instance.
To view all of the logs generated by your Compute Engine resources, go to the Logs Explorer page.
Go to Logs ExplorerCloud Logging is automatically configured to gather logs from various common services, including syslog
.
To avoid incurring charges to your Google Cloud account for the resources used in this tutorial, either delete the project that contains the resources, or keep the project and delete the individual resources.
Delete the projectappspot.com
URL, delete selected resources inside the project instead of deleting the whole project.If you plan to explore multiple architectures, tutorials, or quickstarts, reusing projects can help you avoid exceeding project quota limits.
gcloud compute instances delete my-app-instance --zone=YOUR_ZONE --delete-disks=all gcloud compute firewall-rules delete default-allow-http-80What's next
Explore reference architectures, diagrams, and best practices about Google Cloud. Take a look at our Cloud Architecture Center.
For other .NET resources for building your apps, see the following:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["This tutorial guides users through deploying a Hello World .NET web application to a single Compute Engine instance."],["The process involves setting up a Compute Engine instance via the Google Cloud Marketplace and configuring it to host the web application."],["Users will need to install .NET Core SDK 2.1 or later and Web Deploy 3.6 or later on their local Windows machine before proceeding with the tutorial."],["The tutorial provides steps for managing and monitoring the Compute Engine instance, including accessing logs via the Logs Explorer."],["Instructions are given to delete the project, or alternatively, delete individual resources to avoid incurring further charges after completing the tutorial."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4