Monday, October 5, 2015

PowerShell command to create a File Share

The following commands first creates an Azure Storage context, which encapsulates the Storage Account name and Key and then uses that context to create a file share:

$ctx= New-AzureStorageContext <Storage-AccountName>  <Storage-AccountKey>

New-AzureStorageShare <ShareName> -Context $ctx

With a file share in place, you can access it from any VM as long as they are in the SAME REGION as the share.



No comments:

Post a Comment