You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-operations/get-started/quickstart-deploy.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -222,23 +222,36 @@ This helper command checks connectivity to Azure Resource Manager and Microsoft
222
222
223
223
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.
224
224
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.
226
226
227
227
| Placeholder | Value |
228
228
| ----------- | ----- |
229
-
|**CLUSTER_NAME**| The name of your connected cluster. |
230
229
|**RESOURCE_GROUP**| The name of your resource group that contains the connected cluster. |
az keyvault create --enable-rbac-authorization false --name "<KEYVAULT_NAME>" --resource-group "<RESOURCE_GROUP>"
235
234
```
236
235
237
236
>[!TIP]
238
237
> 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.
239
238
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
+
240
253
>[!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>`.
242
255
243
256
1. These quickstarts use the **OPC PLC simulator** to generate sample data. To configure the simulator for the quickstart scenario, run the following command:
0 commit comments