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
You now have a storage account and file share ready for SMB OAuth authentication. Verify in the Azure portal that your storage account and file share were created.
146
146
147
+
### [Azure CLI](#tab/cli)
148
+
149
+
To enable the `SMBOAuth` property on your storage account by using Azure CLI, first sign in to Azure:
150
+
151
+
```azurecli
152
+
az login
153
+
```
154
+
155
+
Select your subscription by specifying your subscription ID:
156
+
157
+
```azurecli
158
+
az account set --subscription "<subscription-ID>"
159
+
```
160
+
161
+
### Create the storage account
162
+
163
+
To create a new storage account with `SMBOAuth` enabled, run the following command. Replace `<resource-group>`, `<storage-account-name>`, and `<region>` with your values.
To enable SMBOAuth on an existing storage account, run the following command. Replace `<resource-group>` and `<storage-account-name>` with your values.
170
+
171
+
```azurecli
172
+
az storage account update --resource-group <resource-group> --name <storage-account-name> --enable-smb-oauth true
173
+
```
174
+
175
+
Next, create an SMB file share on the storage account. Replace `<storage-account-name>` and `<file-share-name>` with your values.
176
+
177
+
```azurecli
178
+
az storage share create --account-name <storage-account-name> --name <file-share-name>
179
+
```
180
+
181
+
You now have a storage account and file share ready for SMB OAuth authentication. Verify in the Azure portal that your storage account and file share were created.
182
+
147
183
---
148
184
149
185
## Configure a managed identity
150
186
151
-
You can use managed identities with Windows or Linux. Select your operating system and follow the instructions.
187
+
You can use managed identities with Windows or Linux. Select your operating system at the beginning of this article and follow the instructions.
0 commit comments