获取虚拟机镜像

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

http://azure.microsoft.com/zh-cn/documentation/articles/virtual-machines-how-to-configure-availability/

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

  1. 上传通用化 VHD 并使用它在 Azure 中创建新 VM

    本主题逐步讲解如何使用 PowerShell 将通用化 VM 的 VHD 上传到 Azure.从该 VHD 创建映像,然后从该映像创建新 VM. 可以上传从本地虚拟化工具或其他云导出的 VHD. 对新 ...

  2. 如何修复在Microsoft Azure中“虚拟机防火墙打开,关闭RDP的连接端口”问题

     注:下列步骤并不一定适用所有场景,提供思路,请灵活应用 我们在使用Microsoft Azure 中Windows 虚拟机,有时会发生错误打开防火墙或一些管家软件错误的关闭了"远程桌面 ...

  3. 排查在 Azure 中创建、重启 Windows VM 或调整其大小时发生的分配失败

    创建 VM.重新启动已停止(解除分配)的 VM 和重设 VM 大小时,Azure 会为订阅分配计算资源. 执行这些操作时,即使尚未达到 Azure 订阅限制,也可能偶尔收到错误. 本文说明一些常见分配 ...

  4. 排查在 Azure 中创建、重启 Linux VM 或调整其大小时发生的分配故障

    创建 VM.重启已停止(解除分配)的 VM 和重设 VM 大小时,Azure 会为订阅分配计算资源. 执行这些操作时,即使尚未达到 Azure 订阅限制,也可能偶尔收到错误. 本文说明一些常见分配故障 ...

  5. 如何使用 Packer 在 Azure 中创建 Windows 虚拟机映像

    Azure 中的每个虚拟机 (VM) 都是基于定义 Windows 分发和操作系统版本的映像创建的. 映像可以包括预安装的应用程序和配置. Azure 应用商店为最常见的操作系统和应用程序环境提供了许 ...

  6. 在 Azure 中创建通用 VM 的托管映像

    可以从在存储帐户中存储为托管磁盘或非托管磁盘的通用 VM 中创建托管映像资源. 然后可以使用该映像创建多个 VM. 使用 Sysprep 通用化 Windows VM Sysprep 将删除所有个人帐 ...

  7. 如何在 Azure 中创建 ASP.NET Web 应用

    Azure Web 应用提供高度可缩放.自修补的 Web 托管服务. 本快速入门演示如何将第一个 ASP.NET Web 应用部署到 Azure Web 应用中. 完成后,便拥有了一个资源组,该资源组 ...

  8. 在 Azure 中创建静态 HTML Web 应用

    Azure Web 应用提供高度可缩放.自修补的 Web 托管服务. 本快速入门教程演示如何将基本 HTML+CSS 站点部署到 Azure Web 应用. 使用 Azure CLI 创建 Web 应 ...

  9. 排查在 Azure 中创建新 Linux 虚拟机时遇到的 Resource Manager 部署问题

    本文内容 常见问题 收集活动日志 问题:自定义映像:预配错误 问题:自定义/库/应用商店映像:分配失败 后续步骤 尝试创建新的 Azure 虚拟机 (VM) 时,遇到的常见错误是预配失败或分配失败. ...

随机推荐

  1. kindeditor在JavaWeb中的应用

    KindEditor 是一套开源的在线HTML编辑器,主要用于让用户在网站上获得所见即所得编辑效果,开发人员可以用 KindEditor 把传统的多行文本输入框textarea替换为可视化的富文本编辑 ...

  2. 社交分享:-canOpenURL: failed for URL: "weixin://app/*************/" - error: "This app is not allowed to query for scheme weixin"

    升级到iOS9后,微信,QQ,微博等社交软件的分享都失效了,控制台默默地打印了这条信息: This app is not allowed to query for scheme xxx 这是因为iOS ...

  3. Spring Data:企业级Java的现代数据访问技术(影印版)

    <Spring Data:企业级Java的现代数据访问技术(影印版)>基本信息原书名:Spring Data:Modern Data Access for Enterprise Java作 ...

  4. python 基础——常用功能片段

    1. 元素去重 data = [1,2,3,4,4,5,5,6] res = set(data) 2. 元素去重排序 res = sorted(set(data)) 2. 打印重复的元素 res = ...

  5. POJ 1679 The Unique MST (最小生成树)

    The Unique MST Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 22668   Accepted: 8038 D ...

  6. 转: HHVM at Baidu

    评注: 一个项目迁移的问题考虑与实现使用.非常之详细. 转:http://lamp.baidu.com/2014/11/04/hhvm-in-baidu/ 在这之前我们介绍了我们为什么要迁移PHP到H ...

  7. 限额类费用报销单N+1原则

    --添加通过自定义档案列表编码及档案编码查询主键 select bd_defdoc.pk_defdoc as defdoc --查询限额类费用类型主键 from bd_defdoc, bd_defdo ...

  8. html5+css3第一屏滚屏动画效果

    详细内容请点击 在线预览立即下载 html5+css3第一屏滚屏动画效果. 转载自:http://tympanus.net/codrops/2014/05/22/inspiration-for-art ...

  9. part 2 Angular modules and controllers

    What is a module in AngularJS? A module is a container for different parts of your application i.e c ...

  10. ueditor 单独图片上传 转载

    <body> <script type="text/javascript"> //这个是图片上传的,网上还有附件上传的 (function($) { var ...