Skip to content

Commit 286501e

Browse files
Merge pull request #303176 from SoniaLopezBravo/release2507-namespace-parameter
Adding namespace command
2 parents ea8a41a + b9c01fd commit 286501e

File tree

2 files changed

+42
-6
lines changed

2 files changed

+42
-6
lines changed

articles/iot-operations/deploy-iot-ops/howto-deploy-iot-operations.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ A cluster host:
5858

5959
* (Recommended) Configure your own certificate authority issuer before deploying Azure IoT Operations: [Bring your own issuer](../secure-iot-ops/howto-manage-certificates.md#bring-your-own-issuer).
6060

61-
## Deploy
61+
## Deploy in Azure portal
6262

6363
The Azure portal deployment experience is a helper tool that generates a deployment command based on your resources and configuration. The final step is to run an Azure CLI command, so you still need the Azure CLI prerequisites described in the previous section.
6464

@@ -129,7 +129,7 @@ The Azure portal deployment experience is a helper tool that generates a deploym
129129

130130
1. Select **Next: Automation**.
131131

132-
### Run Azure CLI commands
132+
## Run Azure CLI commands
133133

134134
The final step in the Azure portal deployment experience is to run a set of Azure CLI commands to deploy Azure IoT Operations to your cluster. The commands are generated based on the information you provided in the previous steps.
135135

@@ -148,11 +148,23 @@ One at a time, run each Azure CLI command on the **Automation** tab in a termina
148148
az extension add --upgrade --name azure-iot-ops
149149
```
150150

151-
1. Create a schema registry which will be used by Azure IoT Operations components. Copy and run the provided [az iot ops schema registry create](/cli/azure/iot/ops/schema/registry#az-iot-ops-schema-registry-create) command. If you chose to use an existing schema registry, this command isn't displayed on the **Automation** tab.
151+
1. Copy and run the provided [az iot ops schema registry create](/cli/azure/iot/ops/schema/registry#az-iot-ops-schema-registry-create) command to create a schema registry which is used by Azure IoT Operations components. If you chose to use an existing schema registry, this command isn't displayed on the **Automation** tab.
152152

153153
> [!NOTE]
154154
> This command requires that you have role assignment write permissions because it assigns a role to give schema registry access to the storage account. By default, the role is the built-in **Storage Blob Data Contributor** role, or you can create a custom role with restricted permissions to assign instead. For more information, see [az iot ops schema registry create](/cli/azure/iot/ops/schema/registry#az-iot-ops-schema-registry-create).
155155
156+
1. Azure IoT Operations uses *namespaces* to organize assets and devices. Each Azure IoT Operations instance uses a single namespace for its assets and devices. You can use an existing namespace or run the `az iot ops ns create` command to create an Azure Device Registry namespace. Replace `<my namespace name>` with a unique name for your namespace.
157+
158+
```azurecli
159+
az iot ops ns create -n <my namespace name> -g $RESOURCE_GROUP
160+
```
161+
162+
Alternatively, you can create a new Azure Device Registry namespace in Azure portal:
163+
164+
1. In the search box, type and select **Azure Device Registry**.
165+
1. In the left menu, select **Namespaces**.
166+
1. Then select **+ Create** to create a new namespace. Make sure to use the same resource group as your Arc-enabled Kubernetes cluster.
167+
156168
1. To prepare the cluster for Azure IoT Operations deployment, copy and run the provided [az iot ops init](/cli/azure/iot/ops#az-iot-ops-init) command.
157169
158170
> [!TIP]
@@ -162,6 +174,12 @@ One at a time, run each Azure CLI command on the **Automation** tab in a termina
162174
163175
1. Deploy Azure IoT Operations. Copy and run the provided [az iot ops create](/cli/azure/iot/ops#az-iot-ops-create) command. This command might take several minutes to complete. You can watch the progress in the deployment progress display in the terminal.
164176
177+
* If you want to use an existing namespace, add the following parameter to the `create` command:
178+
179+
```azurecli
180+
--ns-resource-id $(az iot ops ns show --name <my namespace name> --resource-group $RESOURCE_GROUP -o tsv --query id)
181+
```
182+
165183
* If you want to use the preview connector configuration, add the following parameter to the `create` command:
166184
167185
```bash

articles/iot-operations/deploy-iot-ops/howto-deploy-iot-test-operations.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ The Azure portal deployment experience is a helper tool that generates a deploym
115115

116116
1. Select **Next: Automation**.
117117

118-
### Run Azure CLI commands
118+
## Run Azure CLI commands
119119

120120
The final step in the Azure portal deployment experience is to run a set of Azure CLI commands to deploy Azure IoT Operations to your cluster. The commands are generated based on the information you provided in the previous steps.
121121

@@ -133,7 +133,19 @@ One at a time, run each Azure CLI command on the **Automation** tab in a termina
133133
az extension add --upgrade --name azure-iot-ops
134134
```
135135
136-
1. Create a schema registry which will be used by Azure IoT Operations components. Copy and run the provided [az iot ops schema registry create](/cli/azure/iot/ops/schema/registry#az-iot-ops-schema-registry-create) command. If you chose to use an existing schema registry, this command isn't displayed on the **Automation** tab.
136+
1. Copy and run the provided [az iot ops schema registry create](/cli/azure/iot/ops/schema/registry#az-iot-ops-schema-registry-create) command to create a schema registry which is used by Azure IoT Operations components. If you chose to use an existing schema registry, this command isn't displayed on the **Automation** tab.
137+
138+
1. Azure IoT Operations uses *namespaces* to organize assets and devices. Each Azure IoT Operations instance uses a single namespace for its assets and devices. You can use an existing namespace or run the `az iot ops ns create` command to create an Azure Device Registry namespace. Replace `<my namespace name>` with a unique name for your namespace.
139+
140+
```azurecli
141+
az iot ops ns create -n <my namespace name> -g $RESOURCE_GROUP
142+
```
143+
144+
Alternatively, you can create a new Azure Device Registry namespace in Azure portal:
145+
146+
1. In the search box, type and select **Azure Device Registry**.
147+
1. In the left menu, select **Namespaces**.
148+
1. Then select **+ Create** to create a new namespace. Make sure to use the same resource group as your Arc-enabled Kubernetes cluster.
137149
138150
1. Prepare the cluster for Azure IoT Operations deployment. Copy and run the provided [az iot ops init](/cli/azure/iot/ops#az-iot-ops-init) command.
139151
@@ -144,9 +156,15 @@ One at a time, run each Azure CLI command on the **Automation** tab in a termina
144156
145157
1. To deploy Azure IoT Operations, copy and run the provided [az iot ops create](/cli/azure/iot/ops#az-iot-ops-create) command. This command might take several minutes to complete. You can watch the progress in the deployment progress display in the terminal.
146158
159+
* If you want to use an existing namespace, add the following parameter to the `create` command:
160+
161+
```azurecli
162+
--ns-resource-id $(az iot ops ns show --name <my namespace name> --resource-group $RESOURCE_GROUP -o tsv --query id)
163+
```
164+
147165
* If you want to use the preview connector configuration, add the following parameter to the `create` command:
148166
149-
```bash
167+
```azurecli
150168
--feature connectors.settings.preview=Enabled
151169
```
152170

0 commit comments

Comments
 (0)