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 ...
随机推荐
- leetcode 题解:Binary Tree Level Order Traversal (二叉树的层序遍历)
题目: Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to ri ...
- android网络请求之get方法
package com.jredu.helloworld.activity; import android.os.Bundle; import android.os.Handler; import a ...
- python用装饰器实现缓存函数执行结果
根据调用的函数名和调用的参数,对函数的结果进行缓存,下次执行的时候就不用重复计算 可以用装饰器来实现 import time import hashlib import pickle cach ...
- java8中的Stream
Collection.stream() / parallelStream() 1. Stream 1)Filter stringCollection .stream().filter((s) - ...
- web前端开发(3)
css 类命名使用骆驼命名法,可以与划线法结合使用. 骆驼命名法用于区别单词,划线命名用于表达从属关系. 尽量不要使用子选择器,否则容易引起冲突隐患. css可以分为 base.common.page ...
- 初识 Asp.Net内置对象之Request对象
Request对象 Request对象用于检索从浏览器向服务器所发送的请求信息.它提供对当前页请求的访问,包括标题,Cookie,客户端证书等等.它也与HTTP协议的请求消息对应. Request对象 ...
- .NET下实现分布式缓存系统Memcached (转自网络)
Memcached在.NET中的应用 一.Memcached服务器端的安装(此处将其作为系统服务安装) 下载文件:memcached 1.2.1 for Win32 binaries (Dec 23, ...
- Android开发之AlarmManager详解
AlarmManager实质是一个全局的定时器,是Android中常用的一种系统级别的提示服务,在指定时间或周期性启动其它组件(包括Activity,Service,BroadcastReceiver ...
- Part 6 AngularJS ng repeat directive
ng-repeat is similar to foreach loop in C#. Let us understand this with an example. Here is what we ...
- Part 14 Mathematical functions in sql server
Part 29 Mathematical functions in sql server