Skip to content

Commit 65705be

Browse files
committed
Updates from feedback
1 parent b0539bd commit 65705be

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

articles/iot-operations/get-started/quickstart-deploy.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,23 +222,36 @@ This helper command checks connectivity to Azure Resource Manager and Microsoft
222222

223223
In this section, you use the [az iot ops init](/cli/azure/iot/ops#az-iot-ops-init) command to configure your cluster so that it can communicate securely with your Azure IoT Operations components and key vault, then deploy Azure IoT Operations.
224224

225-
1. Run the following CLI command on your development machine or in your codespace terminal. Replace the placeholder parameters with your own information.
225+
1. Create a key vault. Replace the placeholder parameters with your own information.
226226

227227
| Placeholder | Value |
228228
| ----------- | ----- |
229-
| **CLUSTER_NAME** | The name of your connected cluster. |
230229
| **RESOURCE_GROUP** | The name of your resource group that contains the connected cluster. |
231230
| **KEYVAULT_NAME** | A name for a new key vault. |
232231

233232
```azurecli
234-
az iot ops init --cluster <CLUSTER_NAME> --resource-group <RESOURCE_GROUP> $(az keyvault create --enable-rbac-authorization false --name "<KEYVAULT_NAME>" --resource-group "<RESOURCE_GROUP>") --simulate-plc
233+
az keyvault create --enable-rbac-authorization false --name "<KEYVAULT_NAME>" --resource-group "<RESOURCE_GROUP>"
235234
```
236235

237236
>[!TIP]
238237
> You can use an existing key vault for your secrets, but verify that the **Permission model** is set to **Vault access policy**. You can check this setting in the Azure portal in the **Access configuration** section of an existing key vault. Or use the [az keyvault show](/cli/azure/keyvault#az-keyvault-show) command to check that `enableRbacAuthorization` is false.
239238
239+
1. Run the following CLI command on your development machine or in your codespace terminal. Replace the placeholder parameters with your own information.
240+
241+
| Placeholder | Value |
242+
| ----------- | ----- |
243+
| **CLUSTER_NAME** | The name of your connected cluster. |
244+
| **RESOURCE_GROUP** | The name of your resource group that contains the connected cluster. |
245+
| **KEYVAULT_NAME** | The name of your key vault. |
246+
247+
```azurecli
248+
az iot ops init --simulate-plc --mq-mode auto --cluster <CLUSTER_NAME> --resource-group <RESOURCE_GROUP> --kv-id $(az keyvault show --name <KEYVAULT_NAME> -o tsv --query id)
249+
```
250+
251+
If you get an error that says *Your device is required to be managed to access your resource*, run `az login` again and make sure that you sign in interactively with a browser.
252+
240253
>[!TIP]
241-
>If you get an error that says *Your device is required to be managed to access your resource*, run `az login` again and make sure that you sign in interactively with a browser.
254+
>If you've run `az iot ops init` before, it automatically created an app registration in Microsoft Entra ID for you. You can reuse that registration rather than creating a new one each time. To use an existing app registration, add the optional parameter `--sp-app-id <APPLICATION_CLIENT_ID>`.
242255
243256
1. These quickstarts use the **OPC PLC simulator** to generate sample data. To configure the simulator for the quickstart scenario, run the following command:
244257

0 commit comments

Comments
 (0)