Microsoft Azure 中的 Copilot 是 AI 支援的工具,可協助您使用 Azure 執行更多作業。 它會將知識與數據統一到數百個 Azure 服務,以提高生產力、降低成本,並提供深入的見解。 Azure 中的 Copilot 可協助您藉由回答問題來瞭解 Azure,並提供專為您自己的 Azure 資源和環境量身打造的資訊。 藉由讓您以自然語言表達目標,Copilot 可簡化 Azure 管理體驗。 這可讓 Azure CLI 使用者受益,因為 Azure CLI 的知識是內建在 Copilot 中。
以下是在 Azure 中使用 Copilot 的一些優點:
- 設計:建立和設定所需的服務,並將其與組織原則一致。
- 作:回答問題、撰寫複雜的命令,以及管理資源。
- 疑難解答:跨 Azure 服務協調以取得深入解析,以摘要問題、識別原因和建議解決方案。
- 優化:接收改善成本、延展性和可靠性的建議。
根據預設,Azure 中的 Copilot 可供組織中的所有使用者使用。 如果您有關於存取的問題,請洽詢您的系統管理員。
在 Azure 中開啟 Microsoft Copilot
若要在 Azure 中使用 Copilot,請移至 Azure 入口網站,然後選取頁面標頭中的 Copilot 圖示。 新的窗格隨即開啟,其中包含聊天助理,您可以在其中提出問題。
當您在 Azure 中告訴 Copilot 您想要使用 Azure CLI 執行的工作時,它會提供具有必要命令的腳本。
搜尋參考命令
要求 Azure 中的 Copilot 協助您使用特定的 Azure CLI 命令。 例如,您可以詢問如何在 Azure 中建立虛擬機。
您可以複製文稿並加以使用。 在執行命令之前,請先以實際值取代變數,或在變數區塊中定義變數。
查找 Azure CLI 腳本
假設您遇到 Azure CLI 腳本,其中包含您不熟悉的參考和參數。 在 Azure 中使用 Copilot 來查閱參考命令,方法是輸入命令,就像您在終端機中一樣:
搜尋要完成的任務或工作
您可以在 Azure 中搭配 Copilot 使用 Azure CLI 來協助建立 Azure SQL 資料庫。
請遵循提供的步驟:
建立 Azure SQL 伺服器:
# Variable block serverName="myServerName" resourceGroup="myResourceGroup" locationName="eastus2" adminUser="myAdminUser" adminPassword="myPassword" az sql server create --name $serverName --resource-group $resourceGroup --location $location --admin-user $adminUser --admin-password $adminPassword建立 Azure SQL 資料庫:
# Variable block resourceroup= "myResourceGroup" serverName="myServerName" databaseName="myDatabaseName" serviceObjective="basic" az sql db create --resource-group $resourceGroup --server $serverName --name $databaseName --service-objective $serviceObjective
讓我們知道我們是如何做到的
Microsoft Azure 中的 Copilot 會為您的意見反應值。 在 Copilot 回應底部,如果 Copilot 回應對您有幫助,請給我們點讚。 當我們需要改進時,請給我們一個 倒讚。
另請參閱
- Azure 中的 Microsoft Copilot 概觀
- 在 Azure 中使用 Microsoft Copilot 產生 Azure CLI 腳本