使用Powershell在Microsoft Azure中创建Virtual Machine
获取虚拟机镜像
PS C:\WINDOWS\system32> Get-AzureVMImage
仅获得虚拟机名
PS C:\WINDOWS\system32> (Get-AzureVMImage).ImageName
0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20131018-enus
0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20131018-zhcn
0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140115-enus
0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140115-zhcn
0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140213-enus
0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140213-zhcn
0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140306-enus
0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140306-zhcn
0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140327-enus
0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140327-zhcn
0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140618-enus
0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140618-zhcn
0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140715-enus
0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140715-zhcn
250d269906be4694a10aee49a3385f2d__SUSE-Linux-Enterprise-Server-11-SP3-SAP-CAL-v103
250d269906be4694a10aee49a3385f2d__SUSE-Linux-Enterprise-Server-11-SP3-SAP-CAL-v108
250d269906be4694a10aee49a3385f2d__SUSE-Linux-Enterprise-Server-11-SP3-v203
250d269906be4694a10aee49a3385f2d__SUSE-Linux-Enterprise-Server-11-SP3-v206
250d269906be4694a10aee49a3385f2d__openSUSE-13.1-v102
250d269906be4694a10aee49a3385f2d__openSUSE-13.1-v105
55bc2b193643443bb879a78bda516fc8__Win2K8R2SP1-Datacenter-201408.01-en.us-127GB.vhd
55bc2b193643443bb879a78bda516fc8__Win2K8R2SP1-Datacenter-201408.01-zh.cn-127GB.vhd
55bc2b193643443bb879a78bda516fc8__Win2K8R2SP1-Datacenter-201409.01-en.us-127GB.vhd
55bc2b193643443bb879a78bda516fc8__Win2K8R2SP1-Datacenter-201409.01-zh.cn-127GB.vhd
55bc2b193643443bb879a78bda516fc8__Win2K8R2SP1-Datacenter-201410.01-en.us-127GB.vhd
55bc2b193643443bb879a78bda516fc8__Win2K8R2SP1-Datacenter-201410.01-zh.cn-127GB.vhd
55bc2b193643443bb879a78bda516fc8__Windows-Server-2012-Datacenter-201408.01-en.us-127GB.vhd
55bc2b193643443bb879a78bda516fc8__Windows-Server-2012-Datacenter-201408.01-zh.cn-127GB.vhd
55bc2b193643443bb879a78bda516fc8__Windows-Server-2012-Datacenter-201409.01-en.us-127GB.vhd
55bc2b193643443bb879a78bda516fc8__Windows-Server-2012-Datacenter-201409.01-zh.cn-127GB.vhd
55bc2b193643443bb879a78bda516fc8__Windows-Server-2012-Datacenter-201410.01-en.us-127GB.vhd
55bc2b193643443bb879a78bda516fc8__Windows-Server-2012-Datacenter-201410.01-zh.cn-127GB.vhd
。。。。
需要0.8.7 版本为 the Microsoft Azure PowerShell module,如何安装请参考http://www.cnblogs.com/SignalTips/p/4106248.html
使用 Windows PowerShell 管理映像
http://msdn.microsoft.com/zh-cn/library/azure/dn790330.aspx
需要的事先绑定的存储账号,参考
Microsoft AzureStorageAccount for Powershell
密码请自行符合复杂程度
创建单台虚拟机
PS C:\WINDOWS\system32> New-AzureVMConfig -Name 'WinSerEss-1' -InstanceSize 'ExtraSmall' -ImageName (Get-AzureVMImage)[1
2].ImageName ` | Add-AzureProvisioningConfig -Windows -AdminUsername 'Anderson' -Password '' ` | New-AzureVM -
ServiceName 'AndersonService' -Location 'China East' OperationDescription OperationId OperationStatus
-------------------- ----------- ---------------
New-AzureVM 57c11fda-7545-4d0c-b3e2-67d461f23d3f Succeeded
PowerShell中看到Create Succeeded,其实虚拟机没有完全创建,可以去Portal上查看
New-AzureVMConfig
http://msdn.microsoft.com/en-us/library/azure/dn495159.aspx
Azure 虚拟机常见问题 更新时间: 2014年9月
http://msdn.microsoft.com/zh-cn/library/azure/dn683781.aspx
How to Configure An Availability Set for Virtual Machines
Manage the availability of virtual machines Understand planned versus unplanned maintenance
http://azure.microsoft.com/zh-cn/documentation/articles/virtual-machines-manage-availability/
使用Powershell在Microsoft Azure中创建Virtual Machine的更多相关文章
- 上传通用化 VHD 并使用它在 Azure 中创建新 VM
本主题逐步讲解如何使用 PowerShell 将通用化 VM 的 VHD 上传到 Azure.从该 VHD 创建映像,然后从该映像创建新 VM. 可以上传从本地虚拟化工具或其他云导出的 VHD. 对新 ...
- 如何修复在Microsoft Azure中“虚拟机防火墙打开,关闭RDP的连接端口”问题
注:下列步骤并不一定适用所有场景,提供思路,请灵活应用 我们在使用Microsoft Azure 中Windows 虚拟机,有时会发生错误打开防火墙或一些管家软件错误的关闭了"远程桌面 ...
- 排查在 Azure 中创建、重启 Windows VM 或调整其大小时发生的分配失败
创建 VM.重新启动已停止(解除分配)的 VM 和重设 VM 大小时,Azure 会为订阅分配计算资源. 执行这些操作时,即使尚未达到 Azure 订阅限制,也可能偶尔收到错误. 本文说明一些常见分配 ...
- 排查在 Azure 中创建、重启 Linux VM 或调整其大小时发生的分配故障
创建 VM.重启已停止(解除分配)的 VM 和重设 VM 大小时,Azure 会为订阅分配计算资源. 执行这些操作时,即使尚未达到 Azure 订阅限制,也可能偶尔收到错误. 本文说明一些常见分配故障 ...
- 如何使用 Packer 在 Azure 中创建 Windows 虚拟机映像
Azure 中的每个虚拟机 (VM) 都是基于定义 Windows 分发和操作系统版本的映像创建的. 映像可以包括预安装的应用程序和配置. Azure 应用商店为最常见的操作系统和应用程序环境提供了许 ...
- 在 Azure 中创建通用 VM 的托管映像
可以从在存储帐户中存储为托管磁盘或非托管磁盘的通用 VM 中创建托管映像资源. 然后可以使用该映像创建多个 VM. 使用 Sysprep 通用化 Windows VM Sysprep 将删除所有个人帐 ...
- 如何在 Azure 中创建 ASP.NET Web 应用
Azure Web 应用提供高度可缩放.自修补的 Web 托管服务. 本快速入门演示如何将第一个 ASP.NET Web 应用部署到 Azure Web 应用中. 完成后,便拥有了一个资源组,该资源组 ...
- 在 Azure 中创建静态 HTML Web 应用
Azure Web 应用提供高度可缩放.自修补的 Web 托管服务. 本快速入门教程演示如何将基本 HTML+CSS 站点部署到 Azure Web 应用. 使用 Azure CLI 创建 Web 应 ...
- 排查在 Azure 中创建新 Linux 虚拟机时遇到的 Resource Manager 部署问题
本文内容 常见问题 收集活动日志 问题:自定义映像:预配错误 问题:自定义/库/应用商店映像:分配失败 后续步骤 尝试创建新的 Azure 虚拟机 (VM) 时,遇到的常见错误是预配失败或分配失败. ...
随机推荐
- xe5 android sample 中的 SimpleList 是怎样绑定的
C:\Users\Public\Documents\RAD Studio\12.0\Samples\FireMonkeyMobile 例子中的绑定方式如下图: 1.拖拽一个listview到界面上,然 ...
- HDU 1003 Max Sum && HDU 1231 最大连续子序列 (DP)
Max Sum Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Sub ...
- [wordpress] determine_current_user 在get_current_user_id() 或者 wp_get_current_user()会调用
在看了Cookie Authentication In A AngularJS WordPress Theme之后,清楚了当Wordpress在中使用get_current_user_id() 或者w ...
- AJAX一些基本知识点
ajax的定义: 中文意思:异步JavaScript和XML. 指一种创建交互式网页应用的网页开发技术. ajax的核心是XMLHttpRequest,在页面中由XMLHTTPRequest来发出Ht ...
- A*算法的实现
#include<cstdio> #include<cstdlib> #include<cstring> #include<iostream> #inc ...
- centos安装与基本使用
1. 插入安装光盘 2. 进入试用 3. 在试用的桌面系统选择安装到硬盘 4. 选择安装语言 5. 选择基本存储或者专门的存储设备 6. - ...
- iOS 之单例,代理,通知,KVO,Block全能解析
//单例 //.h + (Instannce *)shareInstance; //.m static Instannce *instance = nil; @implementation Insta ...
- 20141017--循环语句for 穷举
穷举:把所有的可能性都列举一遍 1.羽毛球怕15元一个,球3元一个,水2元一瓶,一共有200元,每种至少一个,列出所有可能: 2. 50元钱,有面值2元,3元,5元,不要求每种至少一张,有多少种组 ...
- 2014028-jQuery与正则表达式[转]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- JAVA:数组,排序,查找<4>
一.数组 1.一维数组 (1).数组的定义 数据类型 数组名[]=new 数据类型[大小] public class Demo1 { public static void main(String[] ...