共用方式為


Microsoft.ServiceFabric managedClusters 2020-01-01-preview

Bicep 資源定義

managedClusters 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄

資源格式

若要建立 Microsoft.ServiceFabric/managedClusters 資源,請將下列 Bicep 新增至您的範本。

resource symbolicname 'Microsoft.ServiceFabric/managedClusters@2020-01-01-preview' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  sku: {
    name: 'string'
  }
  properties: {
    addonFeatures: [
      'string'
    ]
    adminPassword: 'string'
    adminUserName: 'string'
    azureActiveDirectory: {
      clientApplication: 'string'
      clusterApplication: 'string'
      tenantId: 'string'
    }
    clientConnectionPort: int
    clients: [
      {
        commonName: 'string'
        isAdmin: bool
        issuerThumbprint: 'string'
        thumbprint: 'string'
      }
    ]
    clusterCodeVersion: 'string'
    dnsName: 'string'
    fabricSettings: [
      {
        name: 'string'
        parameters: [
          {
            name: 'string'
            value: 'string'
          }
        ]
      }
    ]
    httpGatewayConnectionPort: int
    loadBalancingRules: [
      {
        backendPort: int
        frontendPort: int
        probeProtocol: 'string'
        probeRequestPath: 'string'
        protocol: 'string'
      }
    ]
  }
}

屬性值

managedClusters

名稱 描述
NAME 資源名稱 字串 (必要)
location Azure 資源位置。 字串 (必要)
tags Azure 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標記
sku 受控叢集的SKU Sku
properties 受控叢集資源屬性 ManagedClusterProperties

ManagedClusterProperties

名稱 描述
addonFeatures 叢集的客戶端憑證。 包含任何項目的字串數組:
'BackupRestoreService'
'DnsService'
'ResourceMonitorService'
adminPassword vm 系統管理員用戶密碼。 字串

約束:
敏感性值。 以安全參數的形式傳入。
adminUserName vm 系統管理員用戶名稱。 字串 (必要)
azureActiveDirectory Azure Active Directory。 AzureActiveDirectory
clientConnectionPort 用於與叢集之用戶端連線的埠。 int
用戶端 叢集的客戶端憑證。 ClientCertificate[]
clusterCodeVersion 叢集的 Service Fabric 運行時間版本。 只有在 upgradeMode 設定為 'Manual' 時,才能將此屬性設定為使用者。 若要取得新叢集可用的 Service Fabric 版本清單,請使用 ClusterVersion API。 若要取得現有叢集可用的版本清單,請使用 availableClusterVersions 字串
dnsName 叢集 dns 名稱。 字串 (必要)
fabricSettings 要設定叢集的自定義網狀架構設定清單。 SettingsSectionDescription[]
httpGatewayConnectionPort 用於叢集 HTTP 連線的埠。 int
loadBalancingRules 描述負載平衡規則。 LoadBalancingRule[]

AzureActiveDirectory

名稱 描述
clientApplication Azure Active Directory 用戶端應用程式識別碼。 字串
clusterApplication Azure Active Directory 叢集應用程式標識符。 字串
tenantId Azure Active Directory 租用戶標識符。 字串

ClientCertificate

名稱 描述
commonName 憑證一般名稱。 字串
isAdmin 憑證是否為系統管理員。 bool (必要)
issuerThumbprint 憑證的簽發者指紋。 只與 CommonName 搭配使用。 字串
thumbprint 憑證指紋。 字串

SettingsSectionDescription

名稱 描述
NAME 網狀架構設定的區段名稱。 需要字串 ()
參數 區段中的參數集合。 SettingsParameterDescription[] (必要)

SettingsParameterDescription

名稱 描述
NAME 網狀架構設定的參數名稱。 需要字串 ()
網狀架構設定的參數值。 需要字串 ()

LoadBalancingRule

名稱 描述
backendPort 在端點上用於內部連接的連接埠。 可接受的值介於 1 到 65535 之間。 需要 int ()

約束:
最小值 = 1
最大值 = 65534
frontendPort 外部端點的連接埠。 每個規則的埠號碼在 Load Balancer 內必須是唯一的。 可接受的值介於 1 到 65534 之間。 需要 int ()

約束:
最小值 = 1
最大值 = 65534
probeProtocol 負載平衡規則所使用的負載平衡器探查參考。 'http'
'https'
需要 『tcp』 ()
probeRequestPath 探查要求路徑。 僅支援 HTTP/HTTPS 探查。 字串
protocol 負載平衡規則所使用的傳輸通訊協議參考。 'tcp'
需要 『udp』 ()

SKU

名稱 描述
NAME Sku 名稱。 'Basic'
「標準」 (必要)

ARM 範本資源定義

managedClusters 資源類型可以使用以下列目標作業部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

資源格式

若要建立 Microsoft.ServiceFabric/managedClusters 資源,請將下列 JSON 新增至您的範本。

{
  "type": "Microsoft.ServiceFabric/managedClusters",
  "apiVersion": "2020-01-01-preview",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "sku": {
    "name": "string"
  },
  "properties": {
    "addonFeatures": [ "string" ],
    "adminPassword": "string",
    "adminUserName": "string",
    "azureActiveDirectory": {
      "clientApplication": "string",
      "clusterApplication": "string",
      "tenantId": "string"
    },
    "clientConnectionPort": "int",
    "clients": [
      {
        "commonName": "string",
        "isAdmin": "bool",
        "issuerThumbprint": "string",
        "thumbprint": "string"
      }
    ],
    "clusterCodeVersion": "string",
    "dnsName": "string",
    "fabricSettings": [
      {
        "name": "string",
        "parameters": [
          {
            "name": "string",
            "value": "string"
          }
        ]
      }
    ],
    "httpGatewayConnectionPort": "int",
    "loadBalancingRules": [
      {
        "backendPort": "int",
        "frontendPort": "int",
        "probeProtocol": "string",
        "probeRequestPath": "string",
        "protocol": "string"
      }
    ]
  }
}

屬性值

managedClusters

名稱 描述
類型 資源類型 'Microsoft.ServiceFabric/managedClusters'
apiVersion 資源 API 版本 '2020-01-01-preview'
NAME 資源名稱 字串 (必要)
location Azure 資源位置。 字串 (必要)
tags Azure 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標記
sku 受控叢集的SKU Sku
properties 受控叢集資源屬性 ManagedClusterProperties

ManagedClusterProperties

名稱 描述
addonFeatures 叢集的客戶端憑證。 包含任何項目的字串數組:
'BackupRestoreService'
'DnsService'
'ResourceMonitorService'
adminPassword vm 系統管理員用戶密碼。 字串

約束:
敏感性值。 以安全參數的形式傳入。
adminUserName vm 系統管理員用戶名稱。 字串 (必要)
azureActiveDirectory Azure Active Directory。 AzureActiveDirectory
clientConnectionPort 用於與叢集之用戶端連線的埠。 int
用戶端 叢集的客戶端憑證。 ClientCertificate[]
clusterCodeVersion 叢集的 Service Fabric 運行時間版本。 只有在 upgradeMode 設定為 'Manual' 時,才能將此屬性設定為使用者。 若要取得新叢集可用的 Service Fabric 版本清單,請使用 ClusterVersion API。 若要取得現有叢集可用的版本清單,請使用 availableClusterVersions 字串
dnsName 叢集 dns 名稱。 字串 (必要)
fabricSettings 要設定叢集的自定義網狀架構設定清單。 SettingsSectionDescription[]
httpGatewayConnectionPort 用於叢集 HTTP 連線的埠。 int
loadBalancingRules 描述負載平衡規則。 LoadBalancingRule[]

AzureActiveDirectory

名稱 描述
clientApplication Azure Active Directory 用戶端應用程式識別碼。 字串
clusterApplication Azure Active Directory 叢集應用程式標識符。 字串
tenantId Azure Active Directory 租用戶標識符。 字串

ClientCertificate

名稱 描述
commonName 憑證一般名稱。 字串
isAdmin 憑證是否為系統管理員。 bool (必要)
issuerThumbprint 憑證的簽發者指紋。 僅與 CommonName 搭配使用。 字串
thumbprint 憑證指紋。 字串

SettingsSectionDescription

名稱 描述
NAME 網狀架構設定的區段名稱。 字串 (必要)
參數 區段中的參數集合。 SettingsParameterDescription[] (必要)

SettingsParameterDescription

名稱 描述
NAME 網狀架構設定的參數名稱。 需要字串 ()
網狀架構設定的參數值。 需要字串 ()

LoadBalancingRule

名稱 描述
backendPort 在端點上用於內部連接的連接埠。 可接受的值介於 1 到 65535 之間。 需要 int ()

約束:
最小值 = 1
最大值 = 65534
frontendPort 外部端點的連接埠。 每個規則的埠號碼在 Load Balancer 內必須是唯一的。 可接受的值介於 1 到 65534 之間。 需要 int ()

約束:
最小值 = 1
最大值 = 65534
probeProtocol 負載平衡規則所使用的負載平衡器探查參考。 'http'
'https'
需要 『tcp』 ()
probeRequestPath 探查要求路徑。 僅支援 HTTP/HTTPS 探查。 字串
protocol 負載平衡規則所使用的傳輸通訊協議參考。 'tcp'
需要 『udp』 ()

SKU

名稱 描述
NAME Sku 名稱。 'Basic'
「標準」 (必要)

Terraform (AzAPI 提供者) 資源定義

managedClusters 資源類型可以使用以下列目標作業部署:

  • 資源群組

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

資源格式

若要建立 Microsoft.ServiceFabric/managedClusters 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.ServiceFabric/managedClusters@2020-01-01-preview"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      addonFeatures = [
        "string"
      ]
      adminPassword = "string"
      adminUserName = "string"
      azureActiveDirectory = {
        clientApplication = "string"
        clusterApplication = "string"
        tenantId = "string"
      }
      clientConnectionPort = int
      clients = [
        {
          commonName = "string"
          isAdmin = bool
          issuerThumbprint = "string"
          thumbprint = "string"
        }
      ]
      clusterCodeVersion = "string"
      dnsName = "string"
      fabricSettings = [
        {
          name = "string"
          parameters = [
            {
              name = "string"
              value = "string"
            }
          ]
        }
      ]
      httpGatewayConnectionPort = int
      loadBalancingRules = [
        {
          backendPort = int
          frontendPort = int
          probeProtocol = "string"
          probeRequestPath = "string"
          protocol = "string"
        }
      ]
    }
    sku = {
      name = "string"
    }
  })
}

屬性值

managedClusters

名稱 描述
類型 資源類型 “Microsoft.ServiceFabric/managedClusters@2020-01-01-preview”
NAME 資源名稱 需要字串 ()
location Azure 資源位置。 需要字串 ()
parent_id 若要部署至資源群組,請使用該資源群組的標識碼。 需要字串 ()
tags Azure 資源標籤。 標記名稱和值的字典。
sku 受控叢集的SKU Sku
properties 受控叢集資源屬性 ManagedClusterProperties

ManagedClusterProperties

名稱 描述
addonFeatures 叢集的客戶端憑證。 包含任何項目的字串數組:
“BackupRestoreService”
“DnsService”
“ResourceMonitorService”
adminPassword vm 管理員用戶密碼。 字串

約束:
敏感性值。 以安全參數的形式傳入。
adminUserName vm 管理員用戶名稱。 需要字串 ()
azureActiveDirectory Azure Active Directory。 AzureActiveDirectory
clientConnectionPort 用於客戶端連線至叢集的埠。 int
用戶端 叢集的客戶端憑證。 ClientCertificate[]
clusterCodeVersion 叢集的 Service Fabric 運行時間版本。 只有在 upgradeMode 設定為 'Manual' 時,才能將此屬性設定為使用者。 若要取得新叢集的可用 Service Fabric 版本清單,請使用 ClusterVersion API。 若要取得現有叢集的可用版本清單,請使用 availableClusterVersions 字串
dnsName 叢集 dns 名稱。 需要字串 ()
fabricSettings 要設定叢集的自定義網狀架構設定清單。 SettingsSectionDescription[]
httpGatewayConnectionPort 用於叢集 HTTP 連線的埠。 int
loadBalancingRules 描述負載平衡規則。 LoadBalancingRule[]

AzureActiveDirectory

名稱 描述
clientApplication Azure Active Directory 用戶端應用程式識別碼。 字串
clusterApplication Azure Active Directory 叢集應用程式標識符。 字串
tenantId Azure Active Directory 租用戶標識符。 字串

ClientCertificate

名稱 描述
commonName 憑證一般名稱。 字串
isAdmin 憑證是否為系統管理員。 bool (必要)
issuerThumbprint 憑證的簽發者指紋。 只與 CommonName 搭配使用。 字串
thumbprint 憑證指紋。 字串

SettingsSectionDescription

名稱 描述
NAME 網狀架構設定的區段名稱。 需要字串 ()
參數 區段中的參數集合。 SettingsParameterDescription[] (必要)

SettingsParameterDescription

名稱 描述
NAME 網狀架構設定的參數名稱。 需要字串 ()
網狀架構設定的參數值。 需要字串 ()

LoadBalancingRule

名稱 描述
backendPort 在端點上用於內部連接的連接埠。 可接受的值介於 1 到 65535 之間。 需要 int ()

約束:
最小值 = 1
最大值 = 65534
frontendPort 外部端點的連接埠。 每個規則的埠號碼在 Load Balancer 內必須是唯一的。 可接受的值介於 1 到 65534 之間。 需要 int ()

約束:
最小值 = 1
最大值 = 65534
probeProtocol 負載平衡規則所使用的負載平衡器探查參考。 "http"
"https"
“tcp” (必要)
probeRequestPath 探查要求路徑。 僅支援 HTTP/HTTPS 探查。 字串
protocol 負載平衡規則所使用的傳輸通訊協議參考。 “tcp”
“udp” (必要)

SKU

名稱 描述
NAME Sku 名稱。 "Basic"
「標準」 (必要)