宣告您的裝置Claim your device

每個裝置都必須由 Azure Sphere 租用戶來「宣告」。Every device must be "claimed" by an Azure Sphere tenant. 宣告裝置會使裝置唯一且不可變的裝置識別碼與您的 Azure Sphere 租用戶相關聯。Claiming the device associates its unique, immutable device ID with your Azure Sphere tenant. Azure Sphere 安全性服務會使用裝置識別碼來識別及驗證裝置。The Azure Sphere Security Service uses the device ID to identify and authenticate the device.

我們建議每個公司或組織只建立一個 Azure Sphere 租用戶。We recommend that each company or organization create only one Azure Sphere tenant.

重要

宣告是一次性作業,即使裝置已銷售或移轉給另一個人或組織,您仍無法取消此動作。Claiming is a one-time operation that you cannot undo even if the device is sold or transferred to another person or organization. 一個裝置只能宣告一次。A device can be claimed only once. 一旦宣告之後,該裝置將會永久與 Azure Sphere 租用戶相關聯。Once claimed, the device is permanently associated with the Azure Sphere tenant.

宣告您的裝置之前,請完成這些步驟,以確保您使用正確的公司/學校帳戶來建立及存取 Azure Sphere 租用戶。Before you claim your device, complete these steps to ensure that you use the right work/school account to create and access your Azure Sphere tenant. 您的裝置必須先連接至電腦,才能建立租用戶,而且只能使用該裝置來建立單一租用戶。Your device must be connected to your PC before you create the tenant, and you can only use the device to create a single tenant.

若要宣告裝置:To claim your device:

  1. 將裝置連接至電腦。Connect your device to your PC.

  2. 從 [Azure Sphere] 下方的 [開始] 功能表中,開啟 Azure Sphere 開發人員命令提示字元。Open an Azure Sphere Developer Command Prompt, which is available in the Start menu under Azure Sphere.

  3. 使用您的公司或學校帳戶,登入 Azure Sphere:Sign in to Azure Sphere, using your work or school account:

    azsphere login

    如果您尚未以此使用者身分登入,您將必須使用註冊時自動產生的密碼,而系統會提示您變更密碼。If you have not yet logged in as this user, you will need to use the password that was auto-generated during sign-up and you will be prompted to change your password. 系統也可能會提示您取得管理員同意以使用 Azure Sphere 公用程式。You might also be prompted to obtain admin consent to use the Azure Sphere Utility.

  4. 如果登入成功,命令會傳回可供您使用的 Azure Sphere 租用戶清單。If login succeeds, the command returns a list of the Azure Sphere tenants that are available for you.

    • 如果您是組織中第一個登入的人,將不會看到任何租用戶,且您需要建立租用戶If you are the first in your organization to sign in, you will not see any tenants, and you'll need to create a tenant.
    • 如果存在多個租用戶,您必須選擇其中一個。If multiple tenants exist, you'll need to select one. 請參閱 azsphere tenant select 以取得詳細資料。See azsphere tenant select for details.
    • 如果有單一租用戶可用,系統預設會選取它,且您可以繼續進行下一個步驟。If a single tenant is available, it will be selected by default, and you can proceed to the next step.

    Azure Sphere 安全性服務目前讓組織中所有成員都可管理 Azure Sphere 租用戶中的所有裝置。The Azure Sphere Security Service currently enables all members of the organization to manage all devices in an Azure Sphere tenant. 如果您要進一步控制 Azure Sphere 裝置的存取權,您或您的 IT 系統管理員可以限制租用戶的存取權If you want greater control over access to your Azure Sphere devices, you or your IT administrator can limit access to your tenant.

  5. 宣告您的裝置。Claim your device. 將您的裝置宣告到租用戶之後,您就無法將其移至不同的租用戶。After you claim your device into a tenant, you cannot move it to a different tenant.

    azsphere device claim

    您應該會看到如下的輸出:You should see output like this:

    Claiming device.
    Claiming attached device ID '<device ID>' into tenant ID 'd343c263-4aa3-4558-adbb-d3fc34631800'.
    Successfully claimed device ID '<device ID>' into tenant ID 'd343c263-4aa3-4558-adbb-d3fc34631800'.
    Command completed successfully in 00:00:05.5459143.
    

如果 azsphere 傳回錯誤,請參閱安裝疑難排解以取得協助。If azsphere returns an error, see Troubleshoot Installation for help.

後續步驟Next steps