Microsoft AzureStorageAccount for Powershell
使用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)
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的更多相关文章
- 使用Powershell在Microsoft Azure中创建Virtual Machine
获取虚拟机镜像 PS C:\WINDOWS\system32> Get-AzureVMImage 仅获得虚拟机名 PS C:\WINDOWS\system32> (Get-AzureVMI ...
- [AlwaysOn Availability Groups]使用Powershell监控AlwayOn健康
使用Powershell监控AlwayOn健康 1.基本命令概述 AlwayOn Dashboard是很有用的查看整体AG健康状况的工具.但是这个工具不是用于7*24监控的.如果应用程序夜间发送严重的 ...
- PowerShell Start 1 - 使用Get - Help.
详细帮助命令参见:https://msdn.microsoft.com/zh-cn/powershell/scripting/getting-started/fundamental/getting-d ...
- powershell中的两只爬虫
--------------------序-------------------- (PowerShell中的)两只爬虫,两只爬虫,跑地快,爬网页不赖~~~ 一只基于com版的ie,一只基于.net中 ...
- Book Review: PowerShell 3.0 Advanced Administration Handbook
Recently I read a book, PowerShell 3.0 Advanced Administration Handbook, which I found really worthy ...
- 使用PowerShell 连接Azure
除了使用门户登入外,还可以使用PowerShell的方式来连接Azure.首先要去下载组件 http://azure.microsoft.com/en-us/downloads/?rnd=1 http ...
- PowerShell官方的MSDN
https://msdn.microsoft.com/en-us/powershell/mt173057.aspx 官方还咋github上放置了 扩展模块. 比如 web iis部署.sqlserv ...
- .NET通过PowerShell操作ExChange为用户开通邮箱账号
最近工作中一个web项目需要集成exchange邮箱服务,注册用户时需要动态创建邮箱用户,终于在http://www.cnblogs.com/gongguo/archive/2012/03/12/23 ...
- 3分钟带你了解PowerShell发展历程——PowerShell各版本资料整理
本文带你了解PowerShell发展历程,顺便整理了一点资料,方便大家查询. Windows PowerShell® 是基于任务的命令行管理程序和脚本语言,专为进行系统管理而设计. 在 .NET Fr ...
随机推荐
- C语言中的命名空间
C语言中的命名空间 命名空间是为了解决 "在相同作用域内如何区分 相同的标识符". 说明: ①只有在相同作用域的情况下才能使用到命名空间去区分标识符,在嵌套的作用域.不同的作用域区 ...
- .net MVC 下载文件乱码问题解决方案
public ActionResult OverAllSummaryExport(string id) { #region 解决中文乱码 Response.HeaderEncoding = Encod ...
- html + js 右 点击 弹出 菜单
页面 引用jar 包 <link rel="stylesheet" href="../../style/zui.min.css" type="t ...
- 关于automatic_Panoramic_Image_Stitching_using_Invariant_features 的阅读笔记(2)
接上一篇: http://www.cnblogs.com/letben/p/5446074.html#3538201 捆绑调整 (好开心有同学一起来看看这些问题,要不然就是我自己的话,我应该也不会看的 ...
- 转:云风skynet服务端框架研究
转: http://forthxu.com/blog/skynet.html skynet是云风编写的服务端底层管理框架,底层由C编写,配套lua作为脚本使用,可换python等其他脚本语言.sky ...
- 自定义TabBarController报错 - Unbalanced calls to begin/end appearance transitions for <>
自定义了TabBarController 之后必须实现以下方法才能避免报错 -(void)viewWillAppear:(BOOL)animated { [self.selectedViewContr ...
- IDG合伙人李丰:O2O中的C2C蕴藏巨大商机
[ 亿欧导读 ] IDG合伙人李丰表示,每个新趋势出现,都是在解决上一轮行业革新时没有解决好的市场需求.而O2O中的C2C将会出现巨大商机的原因在于移动互联网的出现创造了新的交互方式,可以更快速的匹配 ...
- Matlab之文件读写
读文件: (0)自己添加 你可以将txt的一些文本数据直接拷贝到matlab窗口,然后保存为mat文件,下次就可以直接采用load函数了. (1)Load load 从Matlab的数据文件.mat ...
- PHP插件技术-插件钩子(hooks)分析
最近准备做一个开源的个人博客系统,因为在构想中要添加插件功能,所以就研究了一下插件功能的实现方法. 插件的功能按照本人自己的理解就是对已有的程序进行功能方面的添加以及改进,插件要与程序所提供的接口进行 ...
- hexo资源--theme等
Hexo (https://github.com/hexojs/hexo) [3]hexo你的博客(http://ibruce.info/2013/11/22/hexo-your-blog/) [4] ...