使用適用于 Visual Studio Code 的 Azure IoT 中樞 擴充功能建立 IoT 中樞
本文說明如何使用適用于 Visual Studio Code 的 Azure IoT 中樞 擴充功能來建立 Azure IoT 中樞。
注意
建議您使用 Azure Az PowerShell 模組來與 Azure 互動。 請參閱安裝 Azure PowerShell 以開始使用。 若要了解如何遷移至 Az PowerShell 模組,請參閱將 Azure PowerShell 從 AzureRM 遷移至 Az。
Prerequisites
建立 IoT 中樞
下列步驟示範如何在 VISUAL STUDIO CODE (VS Code) 中建立 IoT 中樞:
在 VS Code 中,開啟 [總管] 檢視。
在 Explorer 底部,展開 [Azure IoT 中樞] 區段。
從 [Azure IoT 中樞] 區段中的清單選取 [建立 IoT 中樞]。
如果您未登入 Azure,則會在右下角顯示快顯通知,讓您登入 Azure。 選取 [登入 ],然後依照指示登入 Azure。
從 VS Code 頂端的命令選擇區中,選取您的 Azure 訂用帳戶。
選取您的資源群組。
選取區域。
選取定價層。
輸入 IoT 中樞的全域唯一名稱,然後選取 Enter 鍵。
等候幾分鐘,直到 IoT 中樞建立並確認會顯示在 [輸出 ] 面板中。
提示
Visual Studio Code 中沒有刪除 IoT 中樞的選項,不過您可以在 Azure 入口網站中刪除中樞。
後續步驟
既然您已使用適用于 Visual Studio Code 的 Azure IoT 中樞 擴充功能來部署 IoT 中樞,請探索下列文章: