Skip to content

Instantly share code, notes, and snippets.

@PixelRobots
Last active June 9, 2018 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PixelRobots/c2ac34b870a4b0e6b95cfb74cfcfc4f5 to your computer and use it in GitHub Desktop.
Save PixelRobots/c2ac34b870a4b0e6b95cfb74cfcfc4f5 to your computer and use it in GitHub Desktop.
New-AzureRMStorageAccount -ResourceGroupName "PixelRobotsLab" -Name "pixelfileshare" -Location "UK South" -SkuName standard_LRS
Get-AzureRmStorageAccountKey -ResourceGroupName "PixelRobotsLab" -AccountName "pixelfileshare"
$SAC = New-AzureStorageContext "pixelfileshare" "ydfisEVGXkmG/CQ9DyqSiyr/yPk/7RTopTjmd7vivgnyx+/n14pnNGi3ZpXqA+98vjI5EHe1iCBh8lufRVwdrg=="
New-AzureStorageShare "pixelshare" -Context $SAC
net use P: \\pixelfileshare.file.core.windows.net\pixelshare "ydfisEVGXkmG/CQ9DyqSiyr/yPk/7RTopTjmd7vivgnyx+/n14pnNGi3ZpXqA+98vjI5EHe1iCBh8lufRVwdrg==" /user:Azure\pixelfileshare
cmdkey /add:pixelfileshare.file.core.windows.net /user:AZURE\pixelshare /pass:ydfisEVGXkmG/CQ9DyqSiyr/yPk/7RTopTjmd7vivgnyx+/n14pnNGi3ZpXqA+98vjI5EHe1iCBh8lufRVwdrg==
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment