[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-04 UTC。"],[],[],null,["# Visual Studio Deployment Wizard\n\n| **Beta**\n|\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nThis document shows you how to set up Visual Studio's Publishing Wizard to\nsimplify deployment of .NET apps to Google Cloud.\n\nIntroduction\n------------\n\nDeploying .NET apps to Google Cloud is easier than ever with the latest release\nof Cloud Tools for Visual Studio. We now have a deployment wizard built into the\nextension that will deploy your app to the following supported targets:\n\n- Compute Engine for ASP.NET 4.x apps\n- App Engine flexible environment and Google Kubernetes Engine for ASP.NET Core apps\n\nThe deployment wizard will automatically detect what targets are supported for\nyour project and guide you through the deployment process.\n\nGetting started\n---------------\n\nThe deployment wizard can be invoked by either going to **Tools** \\\u003e\n**Google Cloud Tools** \\\u003e **Publish \\[PROJECT-NAME\\] to Google Cloud** or by\nright-clicking on the project node in the Solution Explorer and clicking on\n**Publish \\[PROJECT-NAME\\] to Google Cloud**.\n| **Note:** The **Publish \\[PROJECT-NAME\\] to Google Cloud** menu item will only be enabled if the startup project for the solution is compatible with Google Cloud.\n\nThe deployment wizard will display Google Cloud deployments targets that are\ncompatible with the selected project.\n\nIf you want to change the project, open the Cloud Explorer by clicking on\n**Tools** \\\u003e **Google Cloud Tools** \\\u003e **Open Cloud Explorer** and select the\nproject you want to deploy.\n\nDeploying ASP.NET 4.x Apps\n--------------------------\n\n| **Note:** ASP.NET 4.x apps only run on Windows VMs on Compute Engine.\n\nTo deploy your ASP.NET 4.x app on Compute Engine:\n\n1. Open the deployment wizard by clicking **Tools** \\\u003e **Google Cloud Tools** \\\u003e\n **Publish \\[PROJECT-NAME\\] to Google Cloud**.\n\n2. Select **Compute Engine**\n\n3. Select the Windows VM instance and deployment credentials\n\n - The Windows VM has to be running IIS and capable of running ASP.NET 4.x\n apps, such as an ASP.NET VM created from the\n [Deployment\n Manager](https://console.cloud.google.com/marketplace/details/click-to-deploy-images/aspnet?q=asp.net).\n\n - Select credentials for the deployment. To create Windows credentials click\n on **Manage Credentials**.\n\n4. Click **Publish** to build and deploy your app to the selected VM.\n\nDeployment progress will be displayed in the Visual Studio output window and a\nprogress indicator will be displayed in the Visual Studio shell status bar.\n\nDeploying ASP.NET Core Apps\n---------------------------\n\nASP.NET Core apps can run inside of a Docker container so your app can be\ndeployed on the App Engine flexible environment and\nGKE.\n\n### Deploying on App Engine Flexible Environment\n\nTo deploy on flexible environment:\n\n1. Open the deployment wizard by clicking **Tools** \\\u003e **Google Cloud Tools** \\\u003e\n **Publish \\[PROJECT-NAME\\] to Google Cloud**.\n\n2. Select **App Engine Flex**\n\n3. Enter your app's version name and traffic management choice.\n\n - The default version name is based on the current system time. You can specify a different name.\n\n | **Note:** Specifying an existing version name will cause the previous version to be overwritten.\n - **Promoting version** lets you choose if this app version should receive 100% of the traffic. Checking this box will result in the new app receiving all of the traffic immediately after deployment.\n4. Click **Publish** to build and deploy your app to the App Engine\n flexible environment.\n\nThat's it! Your app will be deployed and progress will be displayed in the\nVisual Studio output window.\n\nCustom App Engine settings can be done by creating an `app.yaml` file\nin the root folder of your project.\n\nTo generate `app.yaml`, right click on the project you want to deploy and\nclick **Generate app.yaml and Dockerfile for \\[PROJECT-NAME\\]**. You can delete\nthe Dockerfile if you want to run the default Docker image.\n\n### Deploying on GKE\n\nTo deploy on GKE:\n\n1. Open the deployment wizard by clicking **Tools** \\\u003e **Google Cloud Tools** \\\u003e\n **Publish \\[PROJECT-NAME\\] to Google Cloud**.\n\n2. Select **Container Engine**.\n\n3. Select a cluster for deployment, enter your app's deployment name, version\n and the number of replicas.\n\n - To create a cluster, click **Create new cluster** . This will take you to\n the cluster creation page on Google Cloud console. To view the cluster in\n Visual Studio, click **Refresh clusters**.\n\n - The deployment name is used when creating the Kubernetes deployment and,\n if optionally selected, the kubernetes service to run your app on the\n cluster. You can change the name to something more descriptive.\n\n | **Note:** If you use a name that already exists then the old deployment will be updated instead of creating a new deployment.\n - The default version name is based on the current system time. You can specify a different name.\n\n | **Note:** Specifying an existing version name will cause the previous version to be overwritten.\n - The number of replicas can be changed, the default is three.\n\n - You can choose to expose a Kubernetes service on the Internet. By\n exposing a public service on the Internet you will get a public IP address\n that you can use to access your service from outside your cluster.\n\n4. Click **Publish**\n\nThat's it! Your app will be packaged in a Docker image and deployed to your\ncontainer. If your app is an exposed service then Visual Studio will wait until\nthe service's IP address is available."]]