Skip to content

hikoma/azure-storage-cmdlets

Repository files navigation

About

Visual Studio 2012 project template for PowerShell 3.0 module to access azure storage using Windows Azure Storage Client Library 2.0.

Sample Usage

PS C:\azure-storage-cmdlets> Get-Host | select Version

Version
-------
3.0

PS C:\azure-storage-cmdlets> Import-Module .\AzureStorage2PowerShellSample\bin\Debug\AzureStorage2PowerShellSample.dll
PS C:\azure-storage-cmdlets> Get-Module -Name AzureStorage2PowerShellSample

ModuleType Name                                ExportedCommands
---------- ----                                ----------------
Binary     AzureStorage2PowerShellSample       Get-AzureStorage2Account

PS C:\azure-storage-cmdlets> $account = Get-AzureStorage2Account -AccountName <name> -KeyValue <key>
PS C:\azure-storage-cmdlets> $client = $account.CreateCloudBlobClient()
PS C:\azure-storage-cmdlets> $container = $client.GetContainerReference("test")
PS C:\azure-storage-cmdlets> $container.CreateIfNotExists()
True
PS C:\azure-storage-cmdlets> $blob = $container.GetBlockBlobReference("empty")
PS C:\azure-storage-cmdlets> $blob.UploadFromStream([IO.Stream]::Null)

Note

License

You may use this sample under the terms of the MIT License.

About

vs2012 template for azure storage cmdlets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages