Skip to content

Commit 1962a12

Browse files
committed
support encryption in transit for azure file share
Signed-off-by: Jianguo Ma <[email protected]>
1 parent 8fa502d commit 1962a12

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

src/main/arm/mainTemplate.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,7 @@
265265
"sku": {
266266
"name": "Standard_LRS"
267267
},
268-
"kind": "Storage",
269-
"properties": {
270-
"supportsHttpsTrafficOnly": false
271-
}
268+
"kind": "Storage"
272269
},
273270
{
274271
"condition": "[parameters('configureIHS')]",

src/main/scripts/configure-ihs-on-dmgr.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ mkdir /etc/smbcredentials
3636
echo "username=$storageAccountName" > /etc/smbcredentials/${storageAccountName}.cred
3737
echo "password=$storageAccountKey" >> /etc/smbcredentials/${storageAccountName}.cred
3838
chmod 600 /etc/smbcredentials/${storageAccountName}.cred
39-
echo "//${storageAccountName}.file.core.windows.net/${fileShareName} $mountpointPath cifs nofail,vers=2.1,credentials=/etc/smbcredentials/${storageAccountName}.cred,dir_mode=0777,file_mode=0777,serverino" >> /etc/fstab
39+
echo "//${storageAccountName}.file.core.windows.net/${fileShareName} $mountpointPath cifs nofail,credentials=/etc/smbcredentials/${storageAccountName}.cred,dir_mode=0777,file_mode=0777,serverino" >> /etc/fstab
4040

41-
mount -t cifs //${storageAccountName}.file.core.windows.net/${fileShareName} $mountpointPath -o vers=2.1,credentials=/etc/smbcredentials/${storageAccountName}.cred,dir_mode=0777,file_mode=0777,serverino
41+
mount -t cifs //${storageAccountName}.file.core.windows.net/${fileShareName} $mountpointPath -o credentials=/etc/smbcredentials/${storageAccountName}.cred,dir_mode=0777,file_mode=0777,serverino
4242
if [[ $? != 0 ]]; then
4343
echo "Failed to mount //${storageAccountName}.file.core.windows.net/${fileShareName} $mountpointPath"
4444
exit 1

src/main/scripts/configure-ihs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ mkdir /etc/smbcredentials
134134
echo "username=$storageAccountName" > /etc/smbcredentials/${storageAccountName}.cred
135135
echo "password=$storageAccountKey" >> /etc/smbcredentials/${storageAccountName}.cred
136136
chmod 600 /etc/smbcredentials/${storageAccountName}.cred
137-
echo "//${storageAccountName}.file.core.windows.net/${fileShareName} $mountpointPath cifs nofail,vers=2.1,credentials=/etc/smbcredentials/${storageAccountName}.cred,dir_mode=0777,file_mode=0777,serverino" >> /etc/fstab
137+
echo "//${storageAccountName}.file.core.windows.net/${fileShareName} $mountpointPath cifs nofail,credentials=/etc/smbcredentials/${storageAccountName}.cred,dir_mode=0777,file_mode=0777,serverino" >> /etc/fstab
138138

139-
mount -t cifs //${storageAccountName}.file.core.windows.net/${fileShareName} $mountpointPath -o vers=2.1,credentials=/etc/smbcredentials/${storageAccountName}.cred,dir_mode=0777,file_mode=0777,serverino
139+
mount -t cifs //${storageAccountName}.file.core.windows.net/${fileShareName} $mountpointPath -o credentials=/etc/smbcredentials/${storageAccountName}.cred,dir_mode=0777,file_mode=0777,serverino
140140
if [[ $? != 0 ]]; then
141141
echo "Failed to mount //${storageAccountName}.file.core.windows.net/${fileShareName} $mountpointPath"
142142
exit 1

0 commit comments

Comments
 (0)