共用方式為


快速入門:使用 Azure CLI 建立 Confluent Cloud 資源

在此快速入門中,您將使用 Azure Marketplace 和 Azure CLI,在 Confluent Cloud 上的 Apache Kafka 與 Apache Flink (Azure 原生整合服務) 中建立資源。

先決條件

  • 一個 Azure 帳戶。 如果您沒有有效的 Azure 訂閱,請建立免費帳戶
  • 您的 Azure 訂用帳戶的擁有者或參與者角色。 只有獲指派這些其中一個角色的使用者才能設定 Azure 與 Confluent 之間的整合。 開始之前,請驗證您是否具有所需的存取權

找到優惠

使用 Azure 入口網站尋找 Confluent Cloud 上的 Apache Kafka 與 Apache Flink 應用程式:

  1. 請前往 Azure 入口網站並登入。

  2. 搜尋並選取 Marketplace

  3. Marketplace 頁面上,搜尋並選取 Apache Kafka 與 Apache Flink on Confluent Cloud - Azure 原生 ISV 服務方案。

  4. Confluent Cloud 圖塊中選擇 Apache Kafka 和 Apache Flink

    截圖顯示搜尋 Azure Marketplace 優惠的畫面。

  5. Confluent Cloud 上的 Apache Kafka 與 Apache Flink - Azure Native ISV Service 頁面,選擇您的訂閱。

  6. 「計畫」中,選擇一個計費計畫。 有幾種帳單選項:

    • 隨用即付的免費試用。
    • 承諾計畫。 你簽約時會訂定最低消費金額。 提供年度、每月、多年度及一次性承諾方案。 你可以在 「方案+價格 」標籤中閱讀有關方案的資訊。
  7. 點選 [訂閱]。 「 建立 Confluent 組織 」頁面開啟。 你不用這個表單,而是在下一節使用 Azure CLI 建立組織。

建立資源

從準備適用於 Azure CLI 的環境開始:

登入後,使用 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 解決方案

後續步驟