Microsoft Azurestorageaccount for Powershell

Source: Internet
Author: User

Using a storage account created with PowerShell, note that storageaccountname can only use lowercase letters and numbers,-location reference http://www.cnblogs.com/SignalTips/p/4111101.html

PS c:\windows\system32> New-azurestorageaccount-storageaccountname"Andersonstorage1"-label"AndersonStorage1"- Location"China East"operationdescription OperationID operationstatus--------------------                    -----------                             ---------------New-azurestorageaccount ed58cdda-fcd7-4830-a901-8e58a5cc2e7d Succeededps C:\WINDOWS\system32> New-azurestorageaccount-storageaccountname"Andersonstorage2"-label"AndersonStorage2"- Location" North"operationdescription OperationID operationstatus--------------------                    -----------                             ---------------New-azurestorageaccount 01ce6305-44ad-48f0-9277-c13440ee98d0 Succeeded

Get Storage account Information

PS c:\windows\system32> get-AzureStorageAccountStorageAccountDescription:AffinityGroup:Location:China Eastgeorepl Icationenabled:TrueGeoprimarylocation:china Eastgeosecondarylocation:china Northlabel:andersonstora                 GeStorageAccountStatus:CreatedStatusOfPrimary:AvailableStatusOfSecondary:AvailableEndpoints : {https:andersonstorage.blob.core.chinacloudapi.cn/, https:andersonstorage.queue.core.chinacloudapi.cn/, https:andersonstorage.table.core.chinacloudapi.cn/}accounttype:standard_grsstorageaccountname:andersonstorageoperationdescription:get-azurestorageaccountoperationid:ec8de9f1-a197-49f5-99e8-5a959881e728operationstatus:succeededwarning:georeplicationenabled property would be deprecatedincha future release of Azure PowerShell. The value would bemerged into the AccountType property.ps C:\WINDOWS\system32>

Subscribe to account bindings or switch storage

PS c:\windows\system32> set-azuresubscription-subscriptionname ' free '-currentstorageaccount ' Andersonstorage2 ' PS C:\WINDOWS\system32> Get-azuresubscription-subscriptionname ' free ' SubscriptionId            : 36b1bd18-6519-4ea5-8d90-5300a6915a25subscriptionname          : freeenvironment               : Azurechinacloudsupportedmodes            : Azureservicemanagementdefaultaccount            : Ling@  SHTriathlon.partner.onmschina.cnAccounts                  : {}isdefault                 Trueiscurrent                  True currentstorageaccountname:andersonstorage2ps C:\WINDOWS\system32>

Delete a storage account

" Andersonstorage " Storageaccountname            OperationDescription          operationid                   operationstatus------------------            --------------------          - ----------                   ---------------andersonstorage               Remove-azurestorageaccount    495845d6-7818-4f3d-8b3c-9d ... Succeeded

Create a container under the storage account, you can think of the container as a folder, but only create a layer of folders-permission off/container/blob corresponding portal Private/public container/public Blob

PS c:\windows\system32> new-azurestoragecontainer Containeranderson-Permission Off   End point:https://andersonstorage2.blob.core.chinacloudapi.cn/Name                                              publicaccess         lastmodified----                                              ------------         ------------containeranderson                                 Off                  11/26/2014 9:49:46 AM +00:00PS c \ Windows\System32>

The following instance is creating multiple containers

 PS c:\windows\system32>  " container1 Container2 container3  . Split () | New-azurestoragecontainer-permission Container Blob  end  point:https://andersonstorage.blob.core.chinacloudapi.cn/name Publicaccess lastmodified --------            --------------------container1 Container                                         11/26/2014 9:01:21 AM +00:00container2                                        Container  11/26/2014 9:01:20 AM +00:00container3 Container  11/26/2014 9:01:19 AM +00:00 

Windows Azure Storage Explorers (2014)

Http://blogs.msdn.com/b/windowsazurestorage/archive/2014/03/11/windows-azure-storage-explorers-2014.aspx

BLOB Management Tools

Http://clumsyleaf.com/products/downloads

Azure Storage Explorer (CodePlex)

http://azurestorageexplorer.codeplex.com/

Cloudxplorer-explore your favorite cloud storage with ease

Http://clumsyleaf.com/products/cloudxplorer

Microsoft Azurestorageaccount for Powershell

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.