使用Powershell 创建的存储账户,注意StorageAccountName只能使用小写字母以及数字, -Location参考http://www.cnblogs.com/SignalTips/p/4111101.html

PS C:\WINDOWS\system32> New-AzureStorageAccount -StorageAccountName "andersonstorage1" -Label "AndersonStorage1" -Locati
on "China East" OperationDescription OperationId OperationStatus
-------------------- ----------- ---------------
New-AzureStorageAccount ed58cdda-fcd7-4830-a901-8e58a5cc2e7d Succeeded PS C:\WINDOWS\system32> New-AzureStorageAccount -StorageAccountName "andersonstorage2" -Label "AndersonStorage2" -Locati
on "China North"
OperationDescription OperationId OperationStatus
-------------------- ----------- ---------------
New-AzureStorageAccount 01ce6305-44ad-48f0-9277-c13440ee98d0 Succeeded

获取存储账户信息

PS C:\WINDOWS\system32> Get-AzureStorageAccount

StorageAccountDescription :
AffinityGroup :
Location : China East
GeoReplicationEnabled : True
GeoPrimaryLocation : China East
GeoSecondaryLocation : China North
Label : AndersonStorage
StorageAccountStatus : Created
StatusOfPrimary : Available
StatusOfSecondary : Available
Endpoints : {https://andersonstorage.blob.core.chinacloudapi.cn/,
https://andersonstorage.queue.core.chinacloudapi.cn/,
https://andersonstorage.table.core.chinacloudapi.cn/}
AccountType : Standard_GRS
StorageAccountName : andersonstorage
OperationDescription : Get-AzureStorageAccount
OperationId : ec8de9f1-a197-49f5-99e8-5a959881e728
OperationStatus : Succeeded WARNING: GeoReplicationEnabled property will be deprecated in a future release of Azure PowerShell. The value will be
merged into the AccountType property. PS C:\WINDOWS\system32>

订阅账号绑定或切换存储

PS C:\WINDOWS\system32> Set-AzureSubscription -SubscriptionName 'Free' -CurrentStorageAccount 'andersonstorage2'
PS C:\WINDOWS\system32> Get-AzureSubscription -SubscriptionName 'Free' SubscriptionId : 36b1bd18-6519-4ea5-8d90-5300a6915a25
SubscriptionName : Free
Environment : AzureChinaCloud
SupportedModes : AzureServiceManagement
DefaultAccount : Ling@SHTriathlon.partner.onmschina.cn
Accounts : {}
IsDefault : True
IsCurrent : True
CurrentStorageAccountName : andersonstorage2 PS C:\WINDOWS\system32>

删除存储账户

PS C:\WINDOWS\system32> Remove-AzureStorageAccount -StorageAccountName "andersonstorage"

StorageAccountName            OperationDescription          OperationId                   OperationStatus
------------------ -------------------- ----------- ---------------
andersonstorage Remove-AzureStorageAccount 495845d6-7818-4f3d-8b3c-9d... Succeeded

在存储账户下创建容器,可以把容器想象成的文件夹,但只能建立一层文件夹 -Permission Off/Container/Blob对应门户Private/Public Container/Public Blob

PS C:\WINDOWS\system32> New-AzureStorageContainer containeranderson -Permission Off

   Blob End Point: https://andersonstorage2.blob.core.chinacloudapi.cn/

Name                                              PublicAccess         LastModified
---- ------------ ------------
containeranderson Off 11/26/2014 9:49:46 AM +00:00 PS C:\WINDOWS\system32>

以下实例是创建多个容器

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:00
container2 Container 11/26/2014 9:01:20 AM +00:00
container3 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 管理工具

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的更多相关文章

  1. 使用Powershell在Microsoft Azure中创建Virtual Machine

    获取虚拟机镜像 PS C:\WINDOWS\system32> Get-AzureVMImage 仅获得虚拟机名 PS C:\WINDOWS\system32> (Get-AzureVMI ...

  2. [AlwaysOn Availability Groups]使用Powershell监控AlwayOn健康

    使用Powershell监控AlwayOn健康 1.基本命令概述 AlwayOn Dashboard是很有用的查看整体AG健康状况的工具.但是这个工具不是用于7*24监控的.如果应用程序夜间发送严重的 ...

  3. PowerShell Start 1 - 使用Get - Help.

    详细帮助命令参见:https://msdn.microsoft.com/zh-cn/powershell/scripting/getting-started/fundamental/getting-d ...

  4. powershell中的两只爬虫

    --------------------序-------------------- (PowerShell中的)两只爬虫,两只爬虫,跑地快,爬网页不赖~~~ 一只基于com版的ie,一只基于.net中 ...

  5. Book Review: PowerShell 3.0 Advanced Administration Handbook

    Recently I read a book, PowerShell 3.0 Advanced Administration Handbook, which I found really worthy ...

  6. 使用PowerShell 连接Azure

    除了使用门户登入外,还可以使用PowerShell的方式来连接Azure.首先要去下载组件 http://azure.microsoft.com/en-us/downloads/?rnd=1 http ...

  7. PowerShell官方的MSDN

    https://msdn.microsoft.com/en-us/powershell/mt173057.aspx 官方还咋github上放置了  扩展模块. 比如 web iis部署.sqlserv ...

  8. .NET通过PowerShell操作ExChange为用户开通邮箱账号

    最近工作中一个web项目需要集成exchange邮箱服务,注册用户时需要动态创建邮箱用户,终于在http://www.cnblogs.com/gongguo/archive/2012/03/12/23 ...

  9. 3分钟带你了解PowerShell发展历程——PowerShell各版本资料整理

    本文带你了解PowerShell发展历程,顺便整理了一点资料,方便大家查询. Windows PowerShell® 是基于任务的命令行管理程序和脚本语言,专为进行系统管理而设计. 在 .NET Fr ...

随机推荐

  1. 《Cortex-M0权威指南》之Cortex-M0技术综述

    转载请注明来源:cuixiaolei的技术博客 Cortex-M0 处理器简介 1. Cortex-M0 处理器基于冯诺依曼架构(单总线接口),使用32位精简指令集(RISC),该指令集被称为Thum ...

  2. 进程控制块的task_struct结构

    >进程控制块 在linux中进程信息存放在叫做进程控制块的数据结构中,每个进程在内核中都有⼀个进程控制块(PCB)来维护进程相关的信息,Linux内核的 进程控制块是task_struct结构体 ...

  3. [转]Displaying standard DataTables in MVC

    本文转自:http://stackoverflow.com/questions/2243898/displaying-standard-datatables-in-mvc Controller act ...

  4. VB.NET 小程序 2

    Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click ...

  5. java上传组件FileUpload

    如果表单中有文件要上传,也就是有<input type="file" name="name"/> 就需要在form标签中添加enctype=&quo ...

  6. ASP.NET缓存全解析5:文件缓存依赖 转自网络原文作者李天平

    这种策略让缓存依赖于一个指定的文件,通过改变文件的更新日期来清除缓存. ///<summary> /// 获取当前应用程序指定CacheKey的Cache对象值 ///</summa ...

  7. 十个顶级的C语言资源助你成为优秀的程序员

    译者言:学习C语言,需要一点一滴,沉下心来,找个安静的地方,泡上一杯咖啡,在浓郁的香味中一起品味她.(by Boatman Yang) 人们通常认为计算机编程很烦,但是有些人却从中发现了乐趣.每一个程 ...

  8. [老老实实学WCF] 第十篇 消息通信模式(下) 双工

    老老实实学WCF 第十篇 消息通信模式(下) 双工 在前一篇的学习中,我们了解了单向和请求/应答这两种消息通信模式.我们知道可以通过配置操作协定的IsOneWay属性来改变模式.在这一篇中我们来研究双 ...

  9. iOS定位 - 普通定位(没有地图) - 反地理编码(得到具体位置)

    #import <CoreLocation/CoreLocation.h> 使用到的头文件 要引入CoreLocation这个包 <CLLocationManagerDelegate ...

  10. 关于C# webform 项目发布 aspx页面无任何代码 每个页面都以dll形式发布

    关于C# webform 项目发布 注意:aspx页面无任何代码,每个页面都以dll形式发布带bin文件夹里 具体操作方法如下图: