博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
使用Powershell在Microsoft Azure中创建Virtual Machine
阅读量:5255 次
发布时间:2019-06-14

本文共 3641 字,大约阅读时间需要 12 分钟。

获取虚拟机镜像

PS C:\WINDOWS\system32> Get-AzureVMImage

仅获得虚拟机名

PS C:\WINDOWS\system32> (Get-AzureVMImage).ImageName0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20131018-enus0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20131018-zhcn0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140115-enus0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140115-zhcn0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140213-enus0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140213-zhcn0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140306-enus0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140306-zhcn0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140327-enus0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140327-zhcn0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140618-enus0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140618-zhcn0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140715-enus0c5c79005aae478e8883bf950a861ce0__Windows-Server-2012-Essentials-20140715-zhcn250d269906be4694a10aee49a3385f2d__SUSE-Linux-Enterprise-Server-11-SP3-SAP-CAL-v103250d269906be4694a10aee49a3385f2d__SUSE-Linux-Enterprise-Server-11-SP3-SAP-CAL-v108250d269906be4694a10aee49a3385f2d__SUSE-Linux-Enterprise-Server-11-SP3-v203250d269906be4694a10aee49a3385f2d__SUSE-Linux-Enterprise-Server-11-SP3-v206250d269906be4694a10aee49a3385f2d__openSUSE-13.1-v102250d269906be4694a10aee49a3385f2d__openSUSE-13.1-v10555bc2b193643443bb879a78bda516fc8__Win2K8R2SP1-Datacenter-201408.01-en.us-127GB.vhd55bc2b193643443bb879a78bda516fc8__Win2K8R2SP1-Datacenter-201408.01-zh.cn-127GB.vhd55bc2b193643443bb879a78bda516fc8__Win2K8R2SP1-Datacenter-201409.01-en.us-127GB.vhd55bc2b193643443bb879a78bda516fc8__Win2K8R2SP1-Datacenter-201409.01-zh.cn-127GB.vhd55bc2b193643443bb879a78bda516fc8__Win2K8R2SP1-Datacenter-201410.01-en.us-127GB.vhd55bc2b193643443bb879a78bda516fc8__Win2K8R2SP1-Datacenter-201410.01-zh.cn-127GB.vhd55bc2b193643443bb879a78bda516fc8__Windows-Server-2012-Datacenter-201408.01-en.us-127GB.vhd55bc2b193643443bb879a78bda516fc8__Windows-Server-2012-Datacenter-201408.01-zh.cn-127GB.vhd55bc2b193643443bb879a78bda516fc8__Windows-Server-2012-Datacenter-201409.01-en.us-127GB.vhd55bc2b193643443bb879a78bda516fc8__Windows-Server-2012-Datacenter-201409.01-zh.cn-127GB.vhd55bc2b193643443bb879a78bda516fc8__Windows-Server-2012-Datacenter-201410.01-en.us-127GB.vhd55bc2b193643443bb879a78bda516fc8__Windows-Server-2012-Datacenter-201410.01-zh.cn-127GB.vhd。。。。

需要0.8.7 版本为 the Microsoft Azure PowerShell module,如何安装请参考

使用 Windows PowerShell 管理映像

 

需要的事先绑定的存储账号,参考

密码请自行符合复杂程度

创建单台虚拟机

PS C:\WINDOWS\system32> New-AzureVMConfig -Name 'WinSerEss-1' -InstanceSize 'ExtraSmall' -ImageName (Get-AzureVMImage)[12].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

 

 

Azure 虚拟机常见问题 更新时间: 2014年9月

How to Configure An Availability Set for Virtual Machines

Manage the availability of virtual machines Understand planned versus unplanned maintenance

 

转载于:https://www.cnblogs.com/SignalTips/p/4118880.html

你可能感兴趣的文章
字符串转 Boolean 的正确方式
查看>>
给你的网站404页面加上“宝贝寻亲”公益页面
查看>>
整理推荐的CSS属性书写顺序
查看>>
协程, IO阻塞模型 和 IO非阻塞模型
查看>>
ServerSocket和Socket通信
查看>>
css & input type & search icon
查看>>
jQuery插件开发详细教程
查看>>
Crontab 在linux中的非常有用的Schedule Jobs
查看>>
ProxySQL Scheduler
查看>>
源代码的下载和编译读后感
查看>>
Kafka学习笔记
查看>>
Octotree Chrome安装与使用方法
查看>>
用CALayer实现下载进度条控件
查看>>
Windows 环境下基于 Redis 的 Celery 任务调度模块的实现
查看>>
趣谈Java变量的可见性问题
查看>>
C# 强制关闭当前程序进程(完全Kill掉不留痕迹)
查看>>
ssm框架之将数据库的数据导入导出为excel文件
查看>>
语音识别中的MFCC的提取原理和MATLAB实现
查看>>
验证组件FluentValidation的使用示例
查看>>
0320-学习进度条
查看>>