服务结构应用程序vmImageSku [英] Service Fabric Application vmImageSku

查看:58
本文介绍了服务结构应用程序vmImageSku的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将Service Fabric群集部署为ARM模板时,可以选择通过VmImageSku参数指定虚拟机的Windows版本(OS).默认情况下将其设置为"2012-R2-Datacenter".我还找不到其他任何值的示例.

When you deploy a Service Fabric Cluster as an ARM template you have the option of specify Windows Version (OS) of the Virtual Machine via the VmImageSku parameter. It is per default set to "2012-R2-Datacenter". I have not been able to find any examples of other values for this.

我真正的问题是可以将Service Fabric群集部署到服务器核心吗?

My real question is can a Service Fabric Cluster be deployed to a Server Core?

"vmImagePublisher": {
  "type": "string",
  "defaultValue": "MicrosoftWindowsServer",
  "metadata": {
    "description": "VM image Publisher"
  }
},
"vmImageOffer": {
  "type": "string",
  "defaultValue": "WindowsServer",
  "metadata": {
    "description": "VM image offer"
  }
},
"vmImageSku": {
  "type": "string",
  "defaultValue": "2012-R2-Datacenter",
  "metadata": {
    "description": "VM image SKU"
  }
},
"vmImageVersion": {
  "type": "string",
  "defaultValue": "latest",
  "metadata": {
    "description": "VM image version"
  }
}

用法:

"type": "Microsoft.Compute/virtualMachineScaleSets",
  "name": "[variables('vmNodeType0Name')]",
    "virtualMachineProfile": {
      "extensionProfile": {
        "extensions": [ 
           "storageProfile": {
           "imageReference": {
              "publisher": "[parameters('vmImagePublisher')]",
              "offer": "[parameters('vmImageOffer')]",
              "sku": "[parameters('vmImageSku')]",
              "version": "[parameters('vmImageVersion')]"
        }

推荐答案

Microsoft添加Windows Server 2016映像时,它们包括一个名为Nano Server的新选项:

When Microsoft added Windows Server 2016 images they included a new option called Nano Server:

为私有服务器优化的远程管理服务器操作系统 云和数据中心...类似于Server Core中的Windows Server 模式.

A remotely administered server operating system optimized for private clouds and datacenters... similar to Windows Server in Server Core mode.

Nano Server不提供本地登录功能,因此您将不得不依靠远程管理工具.

Nano Server does not provide the ability to logon locally so you will have to rely on remote administration tools.

您可以在 https://azure上了解有关此内容的更多信息. .microsoft.com/en-us/marketplace/partners/microsoft/windowsserver2016nanoserver/.

您可以在ARM模板中使用以下值来使用Nano Server映像:

You can use these values in your ARM template to use the Nano Server image:

"imageReference": {
    "publisher": "MicrosoftWindowsServer",
    "offer": "WindowsServer",
    "sku": "2016-Nano-Server",
    "version": "latest"
}

将来,您可以使用Azure-CLI获得所有VM映像发布者,要约和skus的列表.为了找到纳米服务器的图像sku,我使用了以下命令序列(最终选择了MicrosoftWindowsServer发布者和WindowsServer提供):

In the future you can get a list of all of the VM image publishers, offers, and skus using the Azure-CLI. To find the image sku for the nano server I used this sequence of commands (eventually choosing the MicrosoftWindowsServer publisher and WindowsServer offer):

azure login
azure vm image list-publishers westus
azure vm image list-offers westus MicrosoftWindowsServer 
azure vm image list-skus westus MicrosoftWindowsServer WindowsServer 

更新

看起来现在有两个Windows Server 2016数据中心-服务器核心映像:2016-Datacenter-Server-Core和2016-Datacenter-Server-Core-smalldisk.您可以在ARM模板中使用以下图像来选择这些图像:

Update

It looks like there are two Windows Server 2016 Datacenter - Server Core images available now: 2016-Datacenter-Server-Core and 2016-Datacenter-Server-Core-smalldisk. You can select these images using this in your ARM template:

"imageReference": {
    "publisher": "MicrosoftWindowsServer",
    "offer": "WindowsServer",
    "sku": "2016-Datacenter-Server-Core",
    "version": "latest"
}

"imageReference": {
    "publisher": "MicrosoftWindowsServer",
    "offer": "WindowsServer",
    "sku": "2016-Datacenter-Server-Core-smalldisk",
    "version": "latest"
}

这篇关于服务结构应用程序vmImageSku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆