[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-12-17 UTC。"],[[["\u003cp\u003eA configuration can be used to create a deployment, which in turn creates the resources defined within that configuration, as demonstrated by the creation of two virtual machine (VM) instances.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egcloud deployment-manager deployments create\u003c/code\u003e command is used to deploy a configuration, and you can confirm successful deployment by observing the completion messages in the output.\u003c/p\u003e\n"],["\u003cp\u003eYou can view a list of the created resources within a deployment using the \u003ccode\u003egcloud deployment-manager resources list\u003c/code\u003e command, or you can find detailed information about a deployment using \u003ccode\u003egcloud deployment-manager deployments describe\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Cloud console provides a visual interface to see all deployments and their associated resources, allowing you to understand the hierarchy of resources, and you can navigate to the Deployments page to see them.\u003c/p\u003e\n"],["\u003cp\u003eTo avoid conflicts and potential charges for Compute Engine resources, it is important to delete a deployment when it is no longer needed using \u003ccode\u003egcloud deployment-manager deployments delete\u003c/code\u003e, which will also remove the resources included in it.\u003c/p\u003e\n"]]],[],null,["# Deploying Your Resources\n\nNow that you have a\n[configuration](/deployment-manager/docs/step-by-step-guide/create-a-configuration),\nyou can use it to create a deployment. A deployment creates the resources that\nyou defined in a configuration. In this tutorial, your deployment has two\nvirtual machine (VM) instances.\n\nTo deploy your configuration, run this command: \n\n gcloud deployment-manager deployments create deployment-with-2-vms --config two-vms.yaml\n\nWait for the indication that you successfully created the deployment (note that\nyour actual operation ID will differ): \n\n```text\nWaiting for create operation-1432319707382-516afeb5d00f1-b864f0e7-b7103978...done.\nCreate operation operation-1432319707382-516afeb5d00f1-b864f0e7-b7103978 completed successfully.\nNAME TYPE STATE ERRORS INTENT\nthe-first-vm compute.v1.instance COMPLETED []\nthe-second-vm compute.v1.instance COMPLETED []\n```\n\nYou have created a deployment! To get a list of resources you created, run: \n\n gcloud deployment-manager resources list --deployment deployment-with-2-vms\n\nTo get more detailed information about the deployment, such as the start and end\ntime, and the operation ID if you need to debug a deployment, run: \n\n gcloud deployment-manager deployments describe deployment-with-2-vms\n\nIn this example, you created some static configurations that were hard-coded.\nIn future configurations, you might want to create more dynamic configurations\nusing variables and reusable templates. Follow the rest of this guide to\nlearn how to make this static configuration much more dynamic and useful.\n\nView your deployment in the Google Cloud console interface\n----------------------------------------------------------\n\nYou can also view an expanded list of all your deployments in the\n[Google Cloud console](https://console.cloud.google.com/), Google Cloud's graphical interface. To do so:\n\n1. Go to the [**Deployments**](https://console.cloud.google.com/project/_/deployments) page in the Google Cloud console.\n2. Expand your deployment to see the associated resources.\n\nYou can open this page at any time to see your deployments in a visual tree.\nWith more complicated deployments, this page can help you\nunderstand the hierarchy of resources in your deployment.\n\nDelete your deployment\n----------------------\n\nYou won't use this deployment for the remainder of the tutorial. Since\nCompute Engine resources incur charges, you should delete this\ndeployment. Deleting a deployment also deletes all the resources in a deployment.\n\n**If you don't delete the deployment, you will run into conflicts with future examples.**\n\nTo delete this deployment, run: \n\n gcloud deployment-manager deployments delete deployment-with-2-vms\n\nNext, you will use *references* to access the properties of other resources\nin your deployment."]]