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/azure-app-configuration/howto-disable-access-key-authentication.md
+19-18Lines changed: 19 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,14 @@ To allow/disallow access key authentication for an Azure App Configuration resou
35
35
36
36
# [Azure CLI](#tab/azure-cli)
37
37
38
-
The capability to enable access key authentication using the Azure CLI is in development.
38
+
To enable access keys for Azure App configuration resource, use the following command. The `--disable-local-auth` option is set to "false" for enable local auth.
39
+
40
+
```azurecli-interactive
41
+
az appconfig update \
42
+
--name <app-configuration-name> \
43
+
--resource-group <resource-group> \
44
+
--disable-local-auth false
45
+
```
39
46
40
47
---
41
48
@@ -58,21 +65,15 @@ To check if access key authentication is enabled for an Azure App Configuration
58
65
59
66
# [Azure CLI](#tab/azure-cli)
60
67
61
-
To check if access key authentication is enabled for an Azure App Configuration resource in the Azure portal, use the following command. The command will list the access keys for an Azure App Configuration resource.
68
+
To check if access key authentication is enabled for an Azure App Configuration resource, use the following command. The command will list the access keys for an Azure App Configuration resource.
69
+
If access key authentication is enabled, then read access keys and read-write access keys will be returned.
62
70
63
71
```azurecli-interactive
64
72
az appconfig credential list \
65
73
--name <app-configuration-name> \
66
74
--resource-group <resource-group>
67
75
```
68
76
69
-
If access key authentication is enabled, then read access keys and read-write access keys will be returned.
70
-
71
-
```azurecli-interactive
72
-
az appconfig credential list -g <resource-group> -n <app-configuration-name>
73
-
[]
74
-
```
75
-
76
77
---
77
78
78
79
## Disable access key authentication
@@ -94,7 +95,14 @@ To disallow access key authentication for an Azure App Configuration resource in
94
95
95
96
# [Azure CLI](#tab/azure-cli)
96
97
97
-
The capability to disable access key authentication using the Azure CLI is in development.
98
+
To disable access keys for Azure App configuration resource, use the following command. The `--disable-local-auth` option is set to "true" for disable local auth.
99
+
100
+
```azurecli-interactive
101
+
az appconfig update \
102
+
--name <app-configuration-name> \
103
+
--resource-group <resource-group> \
104
+
--disable-local-auth true
105
+
```
98
106
99
107
---
100
108
@@ -117,21 +125,14 @@ To verify access key authentication is disabled for an Azure App Configuration r
117
125
118
126
# [Azure CLI](#tab/azure-cli)
119
127
120
-
To verify access key authentication is disabled for an Azure App Configuration resource in the Azure portal, use the following command. The command will list the access keys for an Azure App Configuration resource and if access key authentication is disabled the list will be empty.
128
+
To verify access key authentication is disabled for an Azure App Configuration resource, use the following command. The command will list the access keys for an Azure App Configuration resource and if access key authentication is disabled the list will be empty.
121
129
122
130
```azurecli-interactive
123
131
az appconfig credential list \
124
132
--name <app-configuration-name> \
125
133
--resource-group <resource-group>
126
134
```
127
135
128
-
If access key authentication is disabled, then an empty list will be returned.
129
-
130
-
```
131
-
C:\Users\User>az appconfig credential list -g <resource-group> -n <app-configuration-name>
132
-
[]
133
-
```
134
-
135
136
---
136
137
137
138
## Permissions for allowing or disallowing access key authentication
0 commit comments