Skip to content

Commit a8f11c5

Browse files
committed
keyvault name limit
1 parent ce2e158 commit a8f11c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ In this section, you use the [az iot ops init](/cli/azure/iot/ops#az-iot-ops-ini
8585

8686
Run the following CLI commands in your Codespaces terminal.
8787

88-
1. Create a key vault. For this scenario, use the same name and resource group as your cluster.
88+
1. Create a key vault. For this scenario, we'll use the same name and resource group as your cluster. Keyvault names have a maximum length of 24 characters, so the following command truncates the `CLUSTER_NAME`environment variable if necessary.
8989

9090
```azurecli
91-
az keyvault create --enable-rbac-authorization false --name $CLUSTER_NAME --resource-group $RESOURCE_GROUP
91+
az keyvault create --enable-rbac-authorization false --name ${CLUSTER_NAME:0:24} --resource-group $RESOURCE_GROUP
9292
```
9393

9494
>[!TIP]
@@ -97,7 +97,7 @@ Run the following CLI commands in your Codespaces terminal.
9797
1. Deploy Azure IoT Operations.
9898

9999
```azurecli
100-
az iot ops init --simulate-plc --cluster $CLUSTER_NAME --resource-group $RESOURCE_GROUP --kv-id $(az keyvault show --name $CLUSTER_NAME -o tsv --query id)
100+
az iot ops init --simulate-plc --cluster $CLUSTER_NAME --resource-group $RESOURCE_GROUP --kv-id $(az keyvault show --name ${CLUSTER_NAME:0:24} -o tsv --query id)
101101
```
102102

103103
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.

0 commit comments

Comments
 (0)