Skip to content

Commit a867df1

Browse files
committed
Fix PS/CLI feature registration commands.
1 parent 945c7d6 commit a867df1

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

articles/storage/files/encryption-in-transit-for-nfs-shares.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,23 @@ Register through the Azure portal by searching for "Encryption in transit for Az
4646

4747
:::image type="content" source="./media/encryption-in-transit-nfs-shares/portal-registration-encryption-in-transit.png" alt-text="Diagram showing the Azure portal screen to test if EiT is applied." lightbox="./media/encryption-in-transit-nfs-shares/portal-registration-encryption-in-transit.png":::
4848

49-
5049
For more information, see [Set up preview features in Azure subscription](/azure/azure-resource-manager/management/preview-features?tabs=azure-portal).
5150

52-
5351
### [PowerShell](#tab/azure-powershell)
5452

55-
Register through PowerShell using [Register-AzProviderFeature](/powershell/module/az.resources/register-azproviderfeature)
56-
53+
Register through PowerShell using [Register-AzProviderFeature](/powershell/module/az.resources/register-azproviderfeature):
5754

58-
`Register-AzProviderFeature -FeatureName "AllowEncryptionInTransitNFS4" -ProviderNamespace "Microsoft.Storage"`
55+
```PowerShell
56+
Register-AzProviderFeature -FeatureName "AllowEncryptionInTransitNFS4" -ProviderNamespace "Microsoft.Storage"
57+
```
5958

6059
### [Azure CLI](#tab/azure-cli)
6160

62-
Register through Azure CLI using [az feature register](/cli/azure/feature)
63-
64-
`az feature register --name AllowEncryptionInTransitNFS4 --namespace Microsoft.Storage`
61+
Register through Azure CLI using [az feature register](/cli/azure/feature):
62+
63+
```bash
64+
az feature register --name AllowEncryptionInTransitNFS4 --namespace Microsoft.Storage
65+
```
6566

6667
---
6768

@@ -85,9 +86,11 @@ Follow these steps to encrypt data in transit:
8586
### Step 1: Check AZNFS mount helper package installation
8687

8788
To check if the AZNFS mount helper package is installed on your client, run the following command:
89+
8890
```bash
8991
systemctl is-active --quiet aznfswatchdog && echo -e "\nAZNFS mounthelper is installed! \n"
9092
```
93+
9194
If the package is installed, you'll see the message `AZNFS mounthelper is installed!`. If it isn't installed, you'll need to use the appropriate command to install the AZNFS mount helper package on your client.
9295

9396
### [Ubuntu/Debian](#tab/Ubuntu)

0 commit comments

Comments
 (0)