你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Node Types - Update

更新给定托管群集的节点类型资源的标记。
更新给定托管群集的节点类型的配置,仅更新标记。

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}?api-version=2024-09-01-preview

URI 参数

名称 必需 类型 说明
clusterName
path True

string

群集资源的名称。

nodeTypeName
path True

string

节点类型的名称。

resourceGroupName
path True

string

资源组的名称。

subscriptionId
path True

string

客户订阅标识符。

api-version
query True

string

Service Fabric 资源提供程序 API 的版本。 这是一个必需参数,其值必须为此规范的“2024-09-01-preview”。

请求正文

名称 类型 说明
sku

NodeTypeSku

节点类型 SKU。

tags

object

节点类型更新参数

响应

名称 类型 说明
200 OK

NodeType

操作已成功完成。

202 Accepted

请求已接受,操作将以异步方式完成。

标头

  • Azure-AsyncOperation: string
  • Location: string
Other Status Codes

ErrorModel

详细的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 Flow

类型: oauth2
流向: implicit
授权 URL: https://login.microsoftonline.com/common/oauth2/authorize

作用域

名称 说明
user_impersonation 模拟用户帐户

示例

Patch a node type
Patch a node type while auto-scaling

Patch a node type

示例请求

PATCH https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.ServiceFabric/managedClusters/myCluster/nodeTypes/BE?api-version=2024-09-01-preview

{
  "tags": {
    "a": "b"
  }
}

示例响应

{
  "type": "Microsoft.ServiceFabric/managedClusters/nodeTypes",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/managedClusters/myCluster/nodeTypes/BE",
  "name": "BE",
  "tags": {
    "a": "b"
  },
  "properties": {
    "provisioningState": "Succeeded",
    "isPrimary": false,
    "dataDiskSizeGB": 200,
    "dataDiskType": "StandardSSD_LRS",
    "placementProperties": {
      "HasSSD": "true",
      "NodeColor": "green",
      "SomeProperty": "5"
    },
    "capacities": {
      "ClientConnections": "65536"
    },
    "vmSize": "Standard_D3",
    "vmImagePublisher": "MicrosoftWindowsServer",
    "vmImageOffer": "WindowsServer",
    "vmImageSku": "2016-Datacenter-Server-Core",
    "vmImageVersion": "latest",
    "vmInstanceCount": 10,
    "isStateless": false,
    "vmSecrets": [
      {
        "sourceVault": {
          "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.KeyVault/vaults/myVault"
        },
        "vaultCertificates": [
          {
            "certificateStore": "My",
            "certificateUrl": "https://myVault.vault.azure.net:443/secrets/myCert/ef1a31d39e1f46bca33def54b6cda54c"
          }
        ]
      }
    ],
    "vmExtensions": [
      {
        "name": "Microsoft.Azure.Geneva.GenevaMonitoring",
        "properties": {
          "autoUpgradeMinorVersion": true,
          "publisher": "Microsoft.Azure.Geneva",
          "type": "GenevaMonitoring",
          "typeHandlerVersion": "2.0",
          "settings": {}
        }
      }
    ],
    "vmManagedIdentity": {
      "userAssignedIdentities": [
        "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity"
      ]
    }
  }
}
Location: http://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/managedClusterOperationResults/1ca6e48d-70ca-4e43-b652-3b0522f64d67?api-version=2024-09-01-preview
Azure-AsyncOperation: http://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/managedClusterOperationStatus/1ca6e48d-70ca-4e43-b652-3b0522f64d67?api-version=2024-09-01-preview

Patch a node type while auto-scaling

示例请求

PATCH https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.ServiceFabric/managedClusters/myCluster/nodeTypes/BE?api-version=2024-09-01-preview

{
  "tags": {
    "a": "b"
  },
  "sku": {
    "name": "Standard_S0",
    "tier": "Standard",
    "capacity": 10
  }
}

示例响应

{
  "type": "Microsoft.ServiceFabric/managedClusters/nodeTypes",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/managedClusters/myCluster/nodeTypes/BE",
  "name": "BE",
  "tags": {
    "a": "b"
  },
  "sku": {
    "name": "Standard_S0",
    "tier": "Standard",
    "capacity": 10
  },
  "properties": {
    "provisioningState": "Succeeded",
    "isPrimary": false,
    "dataDiskSizeGB": 200,
    "dataDiskType": "StandardSSD_LRS",
    "placementProperties": {
      "HasSSD": "true",
      "NodeColor": "green",
      "SomeProperty": "5"
    },
    "capacities": {
      "ClientConnections": "65536"
    },
    "vmSize": "Standard_D3",
    "vmImagePublisher": "MicrosoftWindowsServer",
    "vmImageOffer": "WindowsServer",
    "vmImageSku": "2016-Datacenter-Server-Core",
    "vmImageVersion": "latest",
    "vmInstanceCount": 10,
    "isStateless": false,
    "vmSecrets": [
      {
        "sourceVault": {
          "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.KeyVault/vaults/myVault"
        },
        "vaultCertificates": [
          {
            "certificateStore": "My",
            "certificateUrl": "https://myVault.vault.azure.net:443/secrets/myCert/ef1a31d39e1f46bca33def54b6cda54c"
          }
        ]
      }
    ],
    "vmExtensions": [
      {
        "name": "Microsoft.Azure.Geneva.GenevaMonitoring",
        "properties": {
          "autoUpgradeMinorVersion": true,
          "publisher": "Microsoft.Azure.Geneva",
          "type": "GenevaMonitoring",
          "typeHandlerVersion": "2.0",
          "settings": {}
        }
      }
    ],
    "vmManagedIdentity": {
      "userAssignedIdentities": [
        "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity"
      ]
    }
  }
}
Location: http://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/managedClusterOperationResults/1ca6e48d-70ca-4e43-b652-3b0522f64d67?api-version=2024-09-01-preview
Azure-AsyncOperation: http://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/managedClusterOperationStatus/1ca6e48d-70ca-4e43-b652-3b0522f64d67?api-version=2024-09-01-preview

定义

名称 说明
access

允许或拒绝网络流量。

AdditionalNetworkInterfaceConfiguration

指定要附加到节点类型的网络接口的设置。

direction

网络安全规则方向。

DiskType

托管数据磁盘类型。 IOPS 和吞吐量由磁盘大小提供,有关详细信息,请转到 https://docs.microsoft.com/en-us/azure/virtual-machines/disks-types

EndpointRangeDescription

端口范围详细信息

ErrorModel

错误的结构。

ErrorModelError

错误详细信息。

EvictionPolicyType

指定 SPOT 节点类型中虚拟机的逐出策略。

FrontendConfiguration

描述节点类型的前端配置。

IPAddressType

IP 地址类型。

IpConfiguration

指定网络接口的 IP 配置。

IpTag

与公共 IP 地址关联的 IP 标记。

ManagedResourceProvisioningState

托管资源的预配状态。

NetworkSecurityRule

描述网络安全规则。

NodeType

描述群集中的节点类型,每个节点类型表示群集中的子节点集。

NodeTypeNatConfig

提供有关节点类型默认公共负载均衡器上的 NAT 配置的信息。

NodeTypeSku

描述节点类型 SKU。

NodeTypeUpdateParameters

节点类型更新请求

nsgProtocol

此规则适用于的网络协议。

privateIPAddressVersion

指定 IP 配置的专用 IP 是 IPv4 还是 IPv6。 默认值为 IPv4。

PublicIPAddressConfiguration

网络接口的公共 IP 地址配置。

publicIPAddressVersion

指定 IP 配置的公共 IP 是 IPv4 还是 IPv6。 默认值为 IPv4。

securityType

指定 nodeType 的安全类型。 目前仅支持 Standard 和 TrustedLaunch

SubResource

Azure 资源标识符。

SystemData

与创建和上次修改资源相关的元数据。

VaultCertificate

介绍 Key Vault 中的单个证书引用,以及证书应驻留在 VM 上的位置。

VaultSecretGroup

指定应安装在虚拟机上的证书集。

VmApplication

指定应提供给基础 VMSS 的库应用程序。

VmImagePlan

指定有关用于创建虚拟机的市场映像的信息。 此元素仅用于市场映像。 必须先启用映像以编程方式使用映像,然后才能从 API 使用市场映像。 在 Azure 门户中,找到要使用的市场映像,然后单击“想要以编程方式部署”->。 输入任何必需信息,然后单击“保存”。

VmManagedIdentity

节点类型下虚拟机规模集的标识。

VmSetupAction

在启动 Service Fabric 运行时之前,在 VM 上执行的操作。

VmssDataDisk

托管数据磁盘说明。

VMSSExtension

指定应安装在虚拟机上的扩展集。

VmssExtensionSetupOrder

Vm 扩展设置顺序。

access

允许或拒绝网络流量。

说明
allow
deny

AdditionalNetworkInterfaceConfiguration

指定要附加到节点类型的网络接口的设置。

名称 类型 说明
dscpConfiguration

SubResource

指定要应用于网络接口的 DSCP 配置。

enableAcceleratedNetworking

boolean

指定网络接口是否已启用加速网络。

ipConfigurations

IpConfiguration[]

指定网络接口的 IP 配置。

name

string

网络接口的名称。

direction

网络安全规则方向。

说明
inbound
outbound

DiskType

托管数据磁盘类型。 IOPS 和吞吐量由磁盘大小提供,有关详细信息,请转到 https://docs.microsoft.com/en-us/azure/virtual-machines/disks-types

说明
Premium_LRS

高级 SSD 本地冗余存储。 最适合生产和性能敏感的工作负荷。

StandardSSD_LRS

标准 SSD 本地冗余存储。 最适合 Web 服务器、轻型企业应用程序和开发/测试。

Standard_LRS

标准 HDD 本地冗余存储。 最适合备份、非关键访问和不经常访问。

EndpointRangeDescription

端口范围详细信息

名称 类型 说明
endPort

integer (int32)

一系列端口的结束端口

startPort

integer (int32)

一系列端口的起始端口

ErrorModel

错误的结构。

名称 类型 说明
error

ErrorModelError

错误详细信息。

ErrorModelError

错误详细信息。

名称 类型 说明
code

string

错误代码。

message

string

错误消息。

EvictionPolicyType

指定 SPOT 节点类型中虚拟机的逐出策略。

说明
Deallocate

逐出策略将为 SPOT vm 的解除分配。

Delete

逐出策略将为 SPOT vm 删除。

FrontendConfiguration

描述节点类型的前端配置。

名称 类型 默认值 说明
applicationGatewayBackendAddressPoolId

string (arm-id)

应用程序网关后端地址池的资源 ID。 资源 ID 的格式为“/subscriptions//resourceGroups//providers/Microsoft.Network/applicationGateways//backendAddressPools/”。

ipAddressType

IPAddressType

IPv4

此前端配置的 IP 地址类型。 如果省略默认值为 IPv4。

loadBalancerBackendAddressPoolId

string (arm-id)

与节点类型的 VM 实例关联的负载均衡器后端地址池的资源 ID。 资源 ID 的格式为“/subscriptions//resourceGroups//providers/Microsoft.Network/loadBalancers//backendAddressPools/”。

loadBalancerInboundNatPoolId

string (arm-id)

与节点类型的 VM 实例关联的负载均衡器入站 NAT 池的资源 ID。 资源 ID 的格式为“/subscriptions//resourceGroups//providers/Microsoft.Network/loadBalancers//inboundNatPools/”。

IPAddressType

IP 地址类型。

说明
IPv4

IPv4 地址类型。

IPv6

IPv6 地址类型。

IpConfiguration

指定网络接口的 IP 配置。

名称 类型 默认值 说明
applicationGatewayBackendAddressPools

SubResource[]

指定对应用程序网关后端地址池的引用数组。 节点类型可以引用多个应用程序网关的后端地址池。 多个节点类型不能使用相同的应用程序网关。

loadBalancerBackendAddressPools

SubResource[]

指定对负载均衡器后端地址池的引用数组。 节点类型可以引用一个公共负载均衡器和一个内部负载均衡器的后端地址池。 多个节点类型不能使用相同的基本 SKU 负载均衡器。

loadBalancerInboundNatPools

SubResource[]

指定对负载均衡器的入站 Nat 池的引用数组。 节点类型可以引用一个公共负载均衡器和一个内部负载均衡器的入站 NAT 池。 多个节点类型不能使用相同的基本 SKU 负载均衡器。

name

string

网络接口的名称。

privateIPAddressVersion

privateIPAddressVersion

IPv4

指定 IP 配置的专用 IP 是 IPv4 还是 IPv6。 默认值为 IPv4。

publicIPAddressConfiguration

PublicIPAddressConfiguration

网络接口的公共 IP 地址配置。

subnet

SubResource

指定网络接口的子网。

IpTag

与公共 IP 地址关联的 IP 标记。

名称 类型 说明
ipTagType

string

IP 标记类型。 示例:FirstPartyUsage。

tag

string

与公共 IP 关联的 IP 标记。 示例:SQL、存储等。

ManagedResourceProvisioningState

托管资源的预配状态。

说明
Canceled
Created
Creating
Deleted
Deleting
Failed
None
Other
Succeeded
Updating

NetworkSecurityRule

描述网络安全规则。

名称 类型 说明
access

access

允许或拒绝网络流量。

description

string

网络安全规则说明。

destinationAddressPrefix

string

目标地址前缀。 CIDR 或目标 IP 范围。 星号“*”还可用于匹配所有源 IP。 也可以使用默认标记,例如“VirtualNetwork”、“AzureLoadBalancer”和“Internet”。

destinationAddressPrefixes

string[]

目标地址前缀。 CIDR 或目标 IP 范围。

destinationPortRange

string

他的目标端口或范围。 介于 0 和 65535 之间的整数或范围。 星号“*”也可用于匹配所有端口。

destinationPortRanges

string[]

目标端口范围。

direction

direction

网络安全规则方向。

name

string

网络安全规则名称。

priority

integer (int32)

minimum: 1000
maximum: 3000

规则的优先级。 该值可以介于 1000 到 3000 的范围内。 此范围之外的值是为 Service Fabric ManagerCluster 资源提供程序保留的。 对于集合中的每个规则,优先级编号必须是唯一的。 优先级编号越低,规则优先级越高。

protocol

nsgProtocol

此规则适用于的网络协议。

sourceAddressPrefix

string

CIDR 或源 IP 范围。 星号“*”还可用于匹配所有源 IP。 也可以使用默认标记,例如“VirtualNetwork”、“AzureLoadBalancer”和“Internet”。 如果这是入口规则,则指定网络流量的来源。

sourceAddressPrefixes

string[]

CIDR 或源 IP 范围。

sourcePortRange

string

源端口或范围。 介于 0 和 65535 之间的整数或范围。 星号“*”也可用于匹配所有端口。

sourcePortRanges

string[]

源端口范围。

NodeType

描述群集中的节点类型,每个节点类型表示群集中的子节点集。

名称 类型 默认值 说明
id

string

Azure 资源标识符。

name

string

Azure 资源名称。

properties.additionalDataDisks

VmssDataDisk[]

其他托管数据磁盘。

properties.additionalNetworkInterfaceConfigurations

AdditionalNetworkInterfaceConfiguration[]

指定要附加到节点类型的任何其他辅助网络接口的设置。

properties.applicationPorts

EndpointRangeDescription

群集分配端口到 Service Fabric 应用程序的端口范围。

properties.capacities

object

应用于节点类型的节点的容量标记,群集资源管理器使用这些标记来了解节点拥有的资源量。

properties.computerNamePrefix

string

指定计算机名称前缀。 限制为 9 个字符。 如果指定,则允许为节点类型名称指定更长的名称。

properties.dataDiskLetter

string

pattern: ^[a-zA-Z]{1}$

托管数据磁盘字母。 它不能使用保留的字母 C 或 D,并且无法在创建后更改。

properties.dataDiskSizeGB

integer (int32)

附加到 BLOB 中节点类型的 VM 的托管磁盘的磁盘大小。

properties.dataDiskType

DiskType

StandardSSD_LRS

托管数据磁盘类型。 指定托管磁盘的存储帐户类型

properties.dscpConfigurationId

string (arm-id)

指定要应用于节点类型网络接口的 DSCP 配置的资源 ID。

properties.enableAcceleratedNetworking

boolean

指定网络接口是否已启用加速网络。

properties.enableEncryptionAtHost

boolean

False

为节点类型上的虚拟机启用或禁用主机加密。 这将为所有磁盘启用加密,包括主机本身的资源/临时磁盘。 默认值:除非将此属性设置为 true,否则将禁用主机上的加密。

properties.enableNodePublicIP

boolean

指定是否为每个节点分配自己的公共 IPv4 地址。 这仅在具有自定义负载均衡器的辅助节点类型上受支持。

properties.enableNodePublicIPv6

boolean

指定是否为每个节点分配自己的公共 IPv6 地址。 这仅在具有自定义负载均衡器的辅助节点类型上受支持。

properties.enableOverProvisioning

boolean

指定是否应过度预配节点类型。 仅允许无状态节点类型使用。

properties.ephemeralPorts

EndpointRangeDescription

应配置此节点类型的节点的临时端口范围。

properties.evictionPolicy

EvictionPolicyType

指定 SPOT 节点类型中虚拟机的逐出策略。 默认值为 Delete。

properties.frontendConfigurations

FrontendConfiguration[]

指示节点类型使用自己的前端配置,而不是群集的默认配置。 此设置只能为非主节点类型指定,并且无法在创建节点类型后添加或删除。

properties.hostGroupId

string

指定完整的主机组资源 ID。此属性用于在 Azure 专用主机上部署。

properties.isPrimary

boolean

指示群集的 Service Fabric 系统服务将在此节点类型上运行。 创建节点类型后,无法更改此设置。

properties.isSpotVM

boolean

指示节点类型是否为现成虚拟机。 如果容量可用,Azure 将分配 VM,并且可以随时逐出 VM。

properties.isStateless

boolean

False

指示节点类型是否只能托管无状态工作负荷。

properties.multiplePlacementGroups

boolean

False

指示与节点类型关联的规模集是否可以由多个放置组组成。

properties.natConfigurations

NodeTypeNatConfig[]

为节点类型指定默认公共负载均衡器上的 NAT 配置。 只有节点类型才支持使用默认的公共负载均衡器。

properties.natGatewayId

string (arm-id)

指定要附加到此节点类型的子网的 NAT 网关的资源 ID。 节点类型必须使用自定义负载均衡器。

properties.networkSecurityRules

NetworkSecurityRule[]

此节点类型的网络安全规则。 只能为配置前端配置的节点类型指定此设置。

properties.placementProperties

object

应用于节点类型的节点的放置标记,可用于指示某些服务(工作负荷)应运行的位置。

properties.provisioningState

ManagedResourceProvisioningState

节点类型资源的预配状态。

properties.secureBootEnabled

boolean

指定是否应在 nodeType 上启用安全启动。 只能与 TrustedLaunch SecurityType 一起使用

properties.securityType

securityType

指定 nodeType 的安全类型。 目前仅支持 Standard 和 TrustedLaunch

properties.serviceArtifactReferenceId

string (arm-id)

指定使用“latest”映像版本时,用于为规模集中的所有虚拟机设置相同映像版本的服务项目引用 ID。

properties.spotRestoreTimeout

string

指示平台不会尝试还原指定为 ISO 8601 的 VMSS SPOT 实例的持续时间。

properties.subnetId

string (arm-id)

指示节点类型的子网的资源 ID。

properties.useDefaultPublicLoadBalancer

boolean

指定是否使用公共负载均衡器。 如果未指定且节点类型没有自己的前端配置,它将附加到默认负载均衡器。 如果节点类型使用自己的负载均衡器,并且 useDefaultPublicLoadBalancer 为 true,则前端必须是内部负载均衡器。 如果节点类型使用自己的负载均衡器,并且 useDefaultPublicLoadBalancer 为 false 或未设置,则自定义负载均衡器必须包含公共负载均衡器才能提供出站连接。

properties.useEphemeralOSDisk

boolean

指示是否使用临时 os 磁盘。 vmSize 属性上选择的 SKU 需要支持此功能。

properties.useTempDataDisk

boolean

指定是否将临时磁盘用于 Service Fabric 数据根目录,在这种情况下,不会附加托管数据磁盘,并且将使用临时磁盘。 仅允许无状态节点类型使用。

properties.vmApplications

VmApplication[]

指定应提供给基础 VMSS 的库应用程序。

properties.vmExtensions

VMSSExtension[]

虚拟机扩展。
应安装在虚拟机上的扩展集。

properties.vmImageOffer

string

Azure 虚拟机市场映像的产品/服务类型。 例如,UbuntuServer 或 WindowsServer。

properties.vmImagePlan

VmImagePlan

指定有关用于创建虚拟机的市场映像的信息。 此元素仅用于市场映像。 必须先启用映像以编程方式使用映像,然后才能从 API 使用市场映像。 在 Azure 门户中,找到要使用的市场映像,然后单击“想要以编程方式部署”->。 输入任何必需信息,然后单击“保存”。

properties.vmImagePublisher

string

Azure 虚拟机市场映像的发布者。 例如,Canonical 或 MicrosoftWindowsServer。

properties.vmImageResourceId

string (arm-id)

指示 vm 映像的资源 ID。 此参数用于自定义 VM 映像。

properties.vmImageSku

string

Azure 虚拟机市场映像的 SKU。 例如,14.04.0-LTS 或 2012-R2-Datacenter。

properties.vmImageVersion

string

Azure 虚拟机市场映像的版本。 可以指定值“latest”以选择映像的最新版本。 如果省略,则默认值为“latest”。

properties.vmInstanceCount

integer (int32)

minimum: -1
maximum: 2147483647

节点类型中的节点数。

值:
-1 - 配置自动缩放规则或定义 sku.capacity 时使用
0 - 不支持
>0 - 用于手动缩放。

properties.vmManagedIdentity

VmManagedIdentity

要分配给节点类型下的虚拟机规模集的标识。

properties.vmSecrets

VaultSecretGroup[]

虚拟机机密。
要安装在虚拟机中的机密。

properties.vmSetupActions

VmSetupAction[]

指定要在启动 Service Fabric 运行时之前在 VM 上执行的操作。

properties.vmSharedGalleryImageId

string (arm-id)

指示 vm 共享库映像的资源 ID。 此参数用于自定义 VM 映像。

properties.vmSize

string

池中虚拟机的大小。 池中的所有虚拟机的大小都相同。 例如,Standard_D3。

properties.zones

string[]

指定节点类型跨越的可用性区域。 如果群集未跨可用性区域,请启动群集的 az migration。

sku

NodeTypeSku

节点类型 SKU。

systemData

SystemData

与创建和上次修改资源相关的元数据。

tags

object

Azure 资源标记。

type

string

Azure 资源类型。

NodeTypeNatConfig

提供有关节点类型默认公共负载均衡器上的 NAT 配置的信息。

名称 类型 说明
backendPort

integer (int32)

minimum: 1
maximum: 65535

NAT 配置的内部端口。

frontendPortRangeEnd

integer (int32)

minimum: 1
maximum: 65534

外部终结点的端口范围结束。

frontendPortRangeStart

integer (int32)

minimum: 1
maximum: 65534

端口范围从外部终结点开始。

NodeTypeSku

描述节点类型 SKU。

名称 类型 说明
capacity

integer (int32)

minimum: 1
maximum: 2147483647

节点类型中的节点数。

如果请求中存在,它将替代 properties.vmInstanceCount。

name

string

SKU 名称。

名称在内部生成,用于自动缩放方案。
属性不允许更改为生成的其他值。
若要避免部署错误,请省略该属性。

tier

string

指定节点类型的层。

可能的值:
标准

NodeTypeUpdateParameters

节点类型更新请求

名称 类型 说明
sku

NodeTypeSku

节点类型 SKU。

tags

object

节点类型更新参数

nsgProtocol

此规则适用于的网络协议。

说明
ah
esp
http
https
icmp
tcp
udp

privateIPAddressVersion

指定 IP 配置的专用 IP 是 IPv4 还是 IPv6。 默认值为 IPv4。

说明
IPv4
IPv6

PublicIPAddressConfiguration

网络接口的公共 IP 地址配置。

名称 类型 默认值 说明
ipTags

IpTag[]

指定与公共 IP 地址关联的 IP 标记列表。

name

string

网络接口的名称。

publicIPAddressVersion

publicIPAddressVersion

IPv4

指定 IP 配置的公共 IP 是 IPv4 还是 IPv6。 默认值为 IPv4。

publicIPAddressVersion

指定 IP 配置的公共 IP 是 IPv4 还是 IPv6。 默认值为 IPv4。

说明
IPv4
IPv6

securityType

指定 nodeType 的安全类型。 目前仅支持 Standard 和 TrustedLaunch

说明
Standard

标准是所有计算机的默认安全类型。

TrustedLaunch

受信任的启动是保护第 2 代虚拟机的安全类型。

SubResource

Azure 资源标识符。

名称 类型 说明
id

string

Azure 资源标识符。

SystemData

与创建和上次修改资源相关的元数据。

名称 类型 说明
createdAt

string (date-time)

资源创建时间戳(UTC)。

createdBy

string

创建资源的标识。

createdByType

string

创建资源的标识的类型。

lastModifiedAt

string (date-time)

上次修改的资源时间戳(UTC)。

lastModifiedBy

string

上次修改资源的标识。

lastModifiedByType

string

上次修改资源的标识的类型。

VaultCertificate

介绍 Key Vault 中的单个证书引用,以及证书应驻留在 VM 上的位置。

名称 类型 说明
certificateStore

string

对于 Windows VM,指定应向其添加证书的虚拟机上的证书存储。 指定的证书存储隐式位于 LocalMachine 帐户中。

对于 Linux VM,证书文件位于 /var/lib/waagent 目录下,文件名为 .crt,用于 X509 证书文件和私钥的 .prv。 这两个文件都是 .pem 格式的。

certificateUrl

string

这是已作为机密上传到 Key Vault 的证书的 URL。 若要将机密添加到 Key Vault,请参阅 向密钥保管库添加密钥或机密

VaultSecretGroup

指定应安装在虚拟机上的证书集。

名称 类型 说明
sourceVault

SubResource

Key Vault 的相对 URL,其中包含 VaultCertificates 中的所有证书。

vaultCertificates

VaultCertificate[]

SourceVault 中包含证书的密钥保管库引用列表。

VmApplication

指定应提供给基础 VMSS 的库应用程序。

名称 类型 说明
configurationReference

string (uri)

可选,指定 Azure Blob 的 URI,该 URI 将替换包的默认配置(如果提供)。

enableAutomaticUpgrade

boolean

如果设置为 true,则当 PIR/SIG 中提供了新的库应用程序版本时,基础 VMSS 会自动更新它。

order

integer (int32)

可选,指定包必须安装的顺序。

packageReferenceId

string (arm-id)

指定 /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/gallerys/{galleryName}/applications/{application}/versions/{version} 形式的 GalleryApplicationVersion 资源 ID。

treatFailureAsDeploymentFailure

boolean

可选,如果为 true,则 VmApplication 中任何操作的任何失败都将使部署失败。

vmGalleryTags

string

可选,指定更多泛型上下文的传递值。 接受 JSON 格式的字符串,例如“{”Tag1“:”Value1“,”Tag2“:”Value2“}”。

VmImagePlan

指定有关用于创建虚拟机的市场映像的信息。 此元素仅用于市场映像。 必须先启用映像以编程方式使用映像,然后才能从 API 使用市场映像。 在 Azure 门户中,找到要使用的市场映像,然后单击“想要以编程方式部署”->。 输入任何必需信息,然后单击“保存”。

名称 类型 说明
name

string

计划 ID。

product

string

指定来自市场的映像的产品。 此值与 imageReference 元素下的 Offer 相同。

promotionCode

string

促销代码。

publisher

string

发布者 ID。

VmManagedIdentity

节点类型下虚拟机规模集的标识。

名称 类型 说明
userAssignedIdentities

string[]

与节点类型下的虚拟机规模集关联的用户标识列表。 每个条目都是 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。

VmSetupAction

在启动 Service Fabric 运行时之前,在 VM 上执行的操作。

说明
EnableContainers

启用 Windows 容器功能。

EnableHyperV

启用 Windows HyperV 功能。

VmssDataDisk

托管数据磁盘说明。

名称 类型 默认值 说明
diskLetter

string

pattern: ^[a-zA-Z]{1}$

托管数据磁盘字母。 它不能使用保留的字母 C 或 D,并且无法在创建后更改。

diskSizeGB

integer (int32)

节点类型中每个 VM 的磁盘大小(以 GB 为单位)。

diskType

DiskType

StandardSSD_LRS

托管数据磁盘类型。 指定托管磁盘的存储帐户类型

lun

integer (int32)

minimum: 1

指定数据磁盘的逻辑单元号。 此值用于标识 VM 中的数据磁盘,因此对于附加到 VM 的每个数据磁盘必须是唯一的。 Lun 0 是为 Service Fabric 数据磁盘保留的。

VMSSExtension

指定应安装在虚拟机上的扩展集。

名称 类型 说明
name

string

扩展的名称。

properties.autoUpgradeMinorVersion

boolean

指示扩展是否应在部署时使用较新的次要版本。 但是,部署后,除非重新部署,否则扩展不会升级次要版本,即使此属性设置为 true 也是如此。

properties.enableAutomaticUpgrade

boolean

指示如果有较新版本的扩展可用,平台是否应自动升级扩展。

properties.forceUpdateTag

string

如果提供值并且与上一个值不同,则即使扩展配置未更改,扩展处理程序也会强制更新。

properties.protectedSettings

object

该扩展可以包含 protectedSettings 或 protectedSettingsFromKeyVault,或者根本不包含受保护的设置。

properties.provisionAfterExtensions

string[]

需要预配此扩展的扩展名称的集合。

properties.provisioningState

string

预配状态,仅出现在响应中。

properties.publisher

string

扩展处理程序发布者的名称。

properties.settings

object

扩展的 Json 格式公共设置。

properties.setupOrder

VmssExtensionSetupOrder[]

指示扩展的设置顺序。

properties.type

string

指定扩展的类型;例如“CustomScriptExtension”。

properties.typeHandlerVersion

string

指定脚本处理程序的版本。

VmssExtensionSetupOrder

Vm 扩展设置顺序。

说明
BeforeSFRuntime

指示 VM 扩展应在 Service Fabric 运行时启动之前运行。