Skip to content

Commit c1b5ede

Browse files
feat(tf): configure smb file share for tf storage
1 parent 37fdb68 commit c1b5ede

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pkg/recipes/terraform/terraform.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,20 @@ func (tf *terraformWrapper) Init() error {
181181
return internal.ReturnErrorOrPanic(err)
182182
}
183183

184+
fileSharePropertiesCmd := exec.Command("az", "storage", "account", "file-service-properties", "update",
185+
"--account-name", tf.stateStorageAccountName,
186+
"--resource-group", tf.resourceGroupName,
187+
"--versions", "SMB3.1.1",
188+
"--auth-methods", "Kerberos",
189+
"--kerb-ticket-encryption", "AES-256",
190+
"--channel-encryption", "AES-256-GCM")
191+
192+
_, err = tf.executor.ExecuteCmd(fileSharePropertiesCmd)
193+
194+
if err != nil {
195+
return internal.ReturnErrorOrPanic(err)
196+
}
197+
184198
logrus.Info("Reading the storage account key, which will be give to terraform to initialize the remote state...")
185199
storageAccountKey, err := tf.executor.ExecuteSilent("az storage account keys list" +
186200
" --resource-group " + tf.resourceGroupName +

0 commit comments

Comments
 (0)