在此快速入門中,您將使用 Azure Marketplace 和 Azure CLI,在 Confluent Cloud 上的 Apache Kafka 與 Apache Flink (Azure 原生整合服務) 中建立資源。
先決條件
- 一個 Azure 帳戶。 如果您沒有有效的 Azure 訂閱,請建立免費帳戶。
- 您的 Azure 訂用帳戶的擁有者或參與者角色。 只有獲指派這些其中一個角色的使用者才能設定 Azure 與 Confluent 之間的整合。 開始之前,請驗證您是否具有所需的存取權。
找到優惠
使用 Azure 入口網站尋找 Confluent Cloud 上的 Apache Kafka 與 Apache Flink 應用程式:
請前往 Azure 入口網站並登入。
搜尋並選取 Marketplace。
在 Marketplace 頁面上,搜尋並選取 Apache Kafka 與 Apache Flink on Confluent Cloud - Azure 原生 ISV 服務方案。
在 Confluent Cloud 圖塊中選擇 Apache Kafka 和 Apache Flink 。
在 Confluent Cloud 上的 Apache Kafka 與 Apache Flink - Azure Native ISV Service 頁面,選擇您的訂閱。
在 「計畫」中,選擇一個計費計畫。 有幾種帳單選項:
- 隨用即付的免費試用。
- 承諾計畫。 你簽約時會訂定最低消費金額。 提供年度、每月、多年度及一次性承諾方案。 你可以在 「方案+價格 」標籤中閱讀有關方案的資訊。
點選 [訂閱]。 「 建立 Confluent 組織 」頁面開啟。 你不用這個表單,而是在下一節使用 Azure CLI 建立組織。
建立資源
從準備適用於 Azure CLI 的環境開始:
在 Azure Cloud Shell 中使用 Bash 環境。 如需詳細資訊,請參閱開始使用 Azure Cloud Shell。
若要在本地執行 CLI 參考命令,請安裝 Azure CLI。 若您在 Windows 或 macOS 上執行,請考慮在 Docker 容器中執行 Azure CLI。 如需詳細資訊,請參閱如何在 Docker 容器中執行 Azure CLI。
如果您使用的是本機安裝,請使用 az login 命令,透過 Azure CLI 來登入。 請遵循您終端機上顯示的步驟,完成驗證程序。 如需其他登入選項,請參閱 使用 Azure CLI 向 Azure 進行驗證。
出現提示時,請在第一次使用時安裝 Azure CLI 延伸模組。 如需擴充功能的詳細資訊,請參閱 使用和管理 Azure CLI 的擴充功能。
執行 az version 以尋找已安裝的版本和相依程式庫。 若要升級至最新版本,請執行 az upgrade。
登入後,使用 az confluent organization create 命令建立新的組織資源:
az confluent organization create --name "myOrganization" --resource-group "myResourceGroup" \
--location "my location" \
--offer-detail id="string" plan-id="string" plan-name="string" publisher-id="string" term-unit="string" \
--user-detail email-address="contoso@microsoft.com" first-name="string" last-name="string" \
--tags Environment="Dev"
附註
如果您希望命令在 create 操作完成前就傳回,請加上選用參數 --no-wait。 操作將持續進行,直到 Confluent 組織建立完成。
若要暫停 CLI 執行直到組織的特定事件或條件發生,請使用 az confluent organization wait 命令。
例如,要等待組織建立完成,請執行:
az confluent organization wait --name "myOrganization" --resource-group "myResourceGroup" --created
要查看現有組織清單,請使用 az confluent organization list 命令。
要查看您訂閱中的所有組織,請執行:
az confluent organization list
要查看資源群組中的所有組織,請執行:
az confluent organization list --resource-group "myResourceGroup"
要查看特定組織的屬性,請使用 az confluent organization show 命令。
依名稱查看組織,請執行:
az confluent organization show --name "myOrganization" --resource-group "myResourceGroup"
依資源 ID 查看組織,請執行:
az confluent organization show --ids "/subscriptions/{SubID}/resourceGroups/{myResourceGroup}/providers/Microsoft.Confluent/organizations/{myOrganization}"
如果出現錯誤訊息,請參閱疑難排解 Confluent Cloud 上的 Apache Kafka 與 Apache Flink 解決方案。