Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View PaulGentle-DataMinister's full-sized avatar

Data Minister PaulGentle-DataMinister

View GitHub Profile
@PaulGentle-DataMinister
PaulGentle-DataMinister / Create Azure File Share and Map as Drive - Powershell.ps1
Created January 8, 2019 11:09
Create an Azure File Share and Map as Drive on Remote Server - PowerShell
## Connect to your Azure account in PowerShell
Connect-AzAccount
## Set the variables below to the names, sizes, locations, etc that you want to use
$ResourceGroupName = "EnterResourceGroupName"
$StorageAccountName = "EnterStorageAccountName"
$FileShareName = "EnterFileShareName"
$FileShareSizeMB = 1024
$Location = "UK West"
$SkuName = "Standard_LRS"