Skip to content

Commit be9a527

Browse files
committed
Added azure powershell content
1 parent 2b22814 commit be9a527

File tree

1 file changed

+69
-6
lines changed
  • articles/partner-solutions/apache-kafka-confluent-cloud

1 file changed

+69
-6
lines changed

articles/partner-solutions/apache-kafka-confluent-cloud/create-cli.md

Lines changed: 69 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Create Apache Kafka for Confluent Cloud through Azure CLI - Azure partner
33
description: This article describes how to use the Azure CLI to create an instance of Apache Kafka for Confluent Cloud.
44
ms.service: partner-services
55
ms.topic: quickstart
6-
ms.date: 06/07/2021
6+
ms.date: 10/13/2021
77
author: tfitzmac
88
ms.author: tomfitz
99
---
@@ -45,6 +45,8 @@ Use the Azure portal to find the Apache Kafka for Confluent Cloud application.
4545

4646
After you've selected the offer for Apache Kafka on Confluent Cloud, you're ready to set up the application.
4747

48+
### [Azure CLI](#tab/azure-cli)
49+
4850
Start by preparing your environment for the Azure CLI:
4951

5052
[!INCLUDE [azure-cli-prepare-your-environment-no-header.md](../../../includes/azure-cli-prepare-your-environment-no-header.md)]
@@ -53,15 +55,15 @@ After you sign in, use the [az confluent organization create](/cli/azure/conflue
5355

5456
```azurecli
5557
az confluent organization create --name "myOrganization" --resource-group "myResourceGroup" \
56-
--location "my location" \
57-
--offer-detail id="string" plan-id="string" plan-name="string" publisher-id="string" term-unit="string" \
58-
--user-detail email-address="[email protected]" first-name="string" last-name="string" \
59-
--tags Environment="Dev"
58+
--location "my location" \
59+
--offer-detail id="string" plan-id="string" plan-name="string" publisher-id="string" term-unit="string" \
60+
--user-detail email-address="[email protected]" first-name="string" last-name="string" \
61+
--tags Environment="Dev"
6062
```
6163

6264
> [!NOTE]
6365
> If you want the command to return before the create operation completes, add the optional parameter `--no-wait`. The operation continues to run until the Confluent organization is created.
64-
66+
6567
To pause CLI execution until an organization's specific event or condition occurs, use the [az confluent organization wait](/cli/azure/confluent/organization#az_confluent_organization_wait) command. For example, to wait until an organization is created:
6668

6769
```azurecli
@@ -96,6 +98,67 @@ Or, view the organization by resource ID:
9698
az confluent organization show --ids "/subscriptions/{SubID}/resourceGroups/{myResourceGroup}/providers/Microsoft.Confluent/organizations/{myOrganization}"
9799
```
98100

101+
### [Azure PowerShell](#tab/azure-powershell)
102+
103+
Start by preparing your environment for Azure PowerShell:
104+
105+
[!INCLUDE [azure-powershell-requirements-no-header.md](../../../includes/azure-powershell-requirements-no-header.md)]
106+
107+
> [!IMPORTANT]
108+
> While the **Az.Confluent** PowerShell module is in preview, you must install it separately using the `Install-Module` cmdlet.
109+
110+
```azurepowershell
111+
Install-Module -Name Az.Confluent -Scope CurrentUser -Repository PSGallery -Force
112+
```
113+
114+
After you sign in, use the [New-AzConfluentOrganization](/powershell/module/az.confluent/new-azconfluentorganization) cmdlet to create the new organization resource:
115+
116+
```azurepowershell
117+
$ConfluentOrgParams = @{
118+
Name = 'myOrganization'
119+
ResourceGroupName = 'myResourceGroup'
120+
Location = 'my location'
121+
OfferDetailId = 'string'
122+
OfferDetailPlanId = 'string'
123+
OfferDetailPlanName = 'string'
124+
OfferDetailPublisherId = 'string'
125+
OfferDetailTermUnit = 'string'
126+
UserDetailEmailAddress = '[email protected]'
127+
UserDetailFirstName = 'string'
128+
UserDetailLastName = 'string'
129+
Tag = @{Environment='Dev'}
130+
}
131+
132+
New-AzConfluentOrganization @ConfluentOrgParams
133+
```
134+
135+
> [!NOTE]
136+
> If you want the command to return before the create operation completes, add the optional parameter `-NoWait`. The operation continues to run until the Confluent organization is created.
137+
138+
To see a list of existing organizations, use the [Get-AzConfluentOrganization](/powershell/module/az.confluent/get-azconfluentorganization) cmdlet.
139+
140+
You can view all of the organizations in your subscription:
141+
142+
```azurepowershell
143+
Get-AzConfluentOrganization
144+
```
145+
146+
Or, view the organizations in a resource group:
147+
148+
```azurepowershell
149+
Get-AzConfluentOrganization -ResourceGroupName myResourceGroup
150+
```
151+
152+
To see the properties of a specific organization, use the `Get-AzConfluentOrganization` cmdlet with the `Name` and `ResourceGroupName` parameters.
153+
154+
You can view the organization by name:
155+
156+
```azurepowershell
157+
Get-AzConfluentOrganization -Name myOrganization -ResourceGroupName myResourceGroup
158+
```
159+
160+
---
161+
99162
If you get an error, see [Troubleshooting Apache Kafka for Confluent Cloud solutions](troubleshoot.md).
100163

101164
## Next steps

0 commit comments

Comments
 (0)