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/troubleshoot/troubleshoot.md
+54Lines changed: 54 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,60 @@ A deployment can fail if the cluster doesn't have sufficient resources for the s
72
72
73
73
To learn more about how to choose suitable values for these parameters, see [Configure broker settings for high availability, scaling, and memory usage](../manage-mqtt-broker/howto-configure-availability-scale.md).
74
74
75
+
### You want to enable resource sync rules on an existing instance
76
+
77
+
Currently, you can't use the `az iot ops` command to enable resource sync rules on an existing instance. To work around this limitation, you can use the `az rest` command as follows:
78
+
79
+
To create the device registry rule:
80
+
81
+
1. Create a file called *rsr_device_registry.json* with the following content. Replace the `<placeholder>` values with your own values:
82
+
83
+
```json
84
+
{
85
+
"location": "<custom location region>",
86
+
"properties": {
87
+
"targetResourceGroup": "/subscriptions/<subscription Id>/resourceGroups/<resource group name>",
1. Run the following command to create the device registry resource sync rule. Replace the `<placeholder>` values with your own values:
99
+
100
+
```azcli
101
+
az rest --url /subscriptions/<subscription Id>/resourceGroups/<resource group name>/providers/Microsoft.ExtendedLocation/customLocations/<custom location name>/resourceSyncRules/<rule name>?api-version=2021-08-31-preview --method PUT --body "@rsr_device_registry.json"
102
+
```
103
+
104
+
To create the instance rule:
105
+
106
+
1. Create a file called *rsr_instance.json* with the following content. Replace the `<placeholder>` values with your own values:
107
+
108
+
```json
109
+
{
110
+
"location": "<custom location region>",
111
+
"properties": {
112
+
"targetResourceGroup": "/subscriptions/<subscription Id>/resourceGroups/<resource group name>",
1. Run the following command to create the instance resource sync rule. Replace the `<placeholder>` values with your own values:
124
+
125
+
```azcli
126
+
az rest --url /subscriptions/<subscription Id>/resourceGroups/<resource group name>/providers/Microsoft.ExtendedLocation/customLocations/<custom location name>/resourceSyncRules/<rule name>?api-version=2021-08-31-preview --method PUT --body "@rsr_instance.json"
127
+
```
128
+
75
129
## Troubleshoot Azure Key Vault secret management
76
130
77
131
If you see the following error message related to secret management, you need to update your Azure Key Vault contents:
0 commit comments