一般來說,資源名稱在專案內的某個位置中不得重複。舉例來說,外部 IP 位址名稱在所在區域內不得重複。不過,您可以在不同位置重複使用名稱。
如果 Compute Engine 專案資源的 vmDnsSetting 設定未設為 ZonalOnly,則專案中的所有 VM 名稱都必須不重複。我們強烈建議為專案使用 vmDnsSetting:ZonalOnly 設定,這樣不僅可在區域和區域之間重複使用 VM 名稱,還能將 DNS 註冊中的失敗狀況隔離至個別區域,進而提高可靠性。詳情請參閱「區域 DNS 名稱」。
[[["容易理解","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-04-17 (世界標準時間)。"],[[["This page outlines the naming conventions for Compute Engine resources, which are fundamental components of the cloud service."],["Resource names must be 1-63 characters long, adhere to RFC 1035 conventions, and follow a specific regular expression pattern starting with a lowercase letter and excluding hyphens as the last character."],["Resource names must generally be unique within a location in a project, but they can be reused across different locations."],["When `vmDnsSetting` is not set to `ZonalOnly`, all VM names must be unique across the project, whereas using `ZonalOnly` allows name reuse and provides higher reliability."]]],[]]