Skip to content

Commit 6a52845

Browse files
author
Pat Altimore
committed
Add screenshot, CLI
1 parent f74a098 commit 6a52845

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

articles/iot-operations/manage-mqtt-broker/howto-broker-persistence.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The MQTT broker uses a persistent volume (PV) to store data on disk. Two setting
5151
5252
# [Azure portal](#tab/portal)
5353

54-
[Screenshot placeholder: Volume and volume size configuration in Azure portal]
54+
:::image type="content" source="media/howto-broker-persistence/data-persistence-deploy.png" alt-text="[Screenshot showing data persistence options during deployment in the Azure portal]":::
5555

5656
To configure volume settings in the Azure portal:
5757

@@ -78,10 +78,10 @@ To configure volume settings using Azure CLI, prepare a Broker configuration fil
7878
}
7979
```
8080

81-
Then run the `az iot ops create` command with the `--broker-config-file` flag to deploy IoT Operations:
81+
Then run the [az iot ops create](/cli/azure/iot/ops?view=azure-cli-latest#az-iot-ops-create) command with the `--broker-config-file` flag to deploy IoT Operations:
8282

8383
```azurecli
84-
az iot ops create ... --broker-config-file <FILE>.json
84+
az iot ops create --broker-config-file <BROKER_CONFIG_FILE>.json --cluster <CLUSTER_NAME> --name <INSTANCE_NAME> --resource-group <RESOURCE_GROUP_NAME> --sr-resource-id <SCHEMA_REGISTRY_RESOURCE_ID>
8585
```
8686

8787
---
@@ -173,6 +173,18 @@ To configure retained messages persistence using Azure CLI, add the following to
173173
}
174174
```
175175

176+
Use the [az iot ops broker persist update](/cli/azure/iot/ops/broker/persist) command to update MQTT broker data persistence settings.
177+
178+
```azurecli
179+
az iot ops broker persist update --resource-group <ResourceGroupName> --instance <AioInstanceName> --name <BrokerName> --persist-mode <PersistMode>
180+
```
181+
182+
Here's an example command to update custom persistence policy for retain messages:
183+
184+
```azurecli
185+
az iot ops broker persist update --resource-group myResourceGroup --instance myAioInstance --name myBroker --persist-mode retain=Custom --retain-topics "sensor1" "factory/#" "groundfloor/+/temperature"
186+
```
187+
176188
---
177189

178190
### Subscriber queue persistence
145 KB
Loading

0 commit comments

Comments
 (0)