Category : azure

My objective is to attach a new Drive to Windows VM Mapping to Azure File Share This needs to be done via Terraform $UserName = $StorageAccount $SecurePassword = ConvertTo-SecureString $StorageAccountKey -AsPlainText -Force $Credentials = New-Object System.Management.Automation.PSCredential -ArgumentList $UserName, $SecurePassword # Mount the drive If (!(Test-Path O:)) { New-PSDrive -Name "O" -PSProvider "FileSystem" -Root "$StorageAccount.file.core.windows.net$FileShareName" -Persist ..

Read more