共用方式為


Microsoft.Compute cloudServices 2022-09-04

Bicep 資源定義

cloudServices 資源類型可以使用目標作業進行部署:

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

資源格式

若要建立 Microsoft.Compute/cloudServices 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.Compute/cloudServices@2022-09-04' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    allowModelOverride: bool
    configuration: 'string'
    configurationUrl: 'string'
    extensionProfile: {
      extensions: [
        {
          name: 'string'
          properties: {
            autoUpgradeMinorVersion: bool
            forceUpdateTag: 'string'
            protectedSettings: any()
            protectedSettingsFromKeyVault: {
              secretUrl: 'string'
              sourceVault: {
                id: 'string'
              }
            }
            publisher: 'string'
            rolesAppliedTo: [
              'string'
            ]
            settings: any()
            type: 'string'
            typeHandlerVersion: 'string'
          }
        }
      ]
    }
    networkProfile: {
      loadBalancerConfigurations: [
        {
          id: 'string'
          name: 'string'
          properties: {
            frontendIpConfigurations: [
              {
                name: 'string'
                properties: {
                  privateIPAddress: 'string'
                  publicIPAddress: {
                    id: 'string'
                  }
                  subnet: {
                    id: 'string'
                  }
                }
              }
            ]
          }
        }
      ]
      slotType: 'string'
      swappableCloudService: {
        id: 'string'
      }
    }
    osProfile: {
      secrets: [
        {
          sourceVault: {
            id: 'string'
          }
          vaultCertificates: [
            {
              certificateUrl: 'string'
            }
          ]
        }
      ]
    }
    packageUrl: 'string'
    roleProfile: {
      roles: [
        {
          name: 'string'
          sku: {
            capacity: int
            name: 'string'
            tier: 'string'
          }
        }
      ]
    }
    startCloudService: bool
    upgradeMode: 'string'
  }
  systemData: {}
  zones: [
    'string'
  ]
}

屬性值

cloudServices

名稱 描述
NAME 資源名稱 字串 (必要)

字元限制:1-15



有效字元:
不能使用空格、控制字元或下列字元:
~ ! @ # $ % ^ & * ( ) = + _ [ ] { } \ | ; : . ' " , < > / ?

不能以底線開頭。 不能以句號或連字號結尾。
location 資源位置。 字串 (必要)
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標記
properties 雲端服務屬性 CloudServiceProperties
systemData 與此資源相關的系統中繼資料。 SystemData
zones (區域) 資源的邏輯可用性區域清單。 清單應該只包含應該布建雲端服務的 1 個區域。 這是選擇性欄位。 string[]

CloudServiceProperties

名稱 描述
allowModelOverride (選擇性) 指出角色 sku 屬性是否 (roleProfile.roles.sku) 模型/範本中指定的角色實例計數和 .csdef 中分別指定的角色實例計數和 vm 大小。
預設值是 false
bool
組態 指定雲端服務的 XML 服務組態 (.cscfg) 。 string
configurationUrl 指定參考 Blob 服務中服務組態位置的 URL。 服務套件 URL 可以是來自任何儲存體帳戶的共用存取簽章 (SAS) URI。
這是唯寫屬性,而且不會在 GET 呼叫中傳回。
string
extensionProfile 描述雲端服務擴充功能設定檔。 CloudServiceExtensionProfile
networkProfile 雲端服務的網路設定檔。 CloudServiceNetworkProfile
osProfile 描述雲端服務的 OS 設定檔。 CloudServiceOsProfile
packageUrl 指定 URL 以表示服務封裝在 Blob 服務中的位置。 服務套件 URL 可以是來自任何儲存體帳戶的共用存取簽章 (SAS) URI。
這是唯寫屬性,而且不會在 GET 呼叫中傳回。
string
roleProfile 描述雲端服務的角色設定檔。 CloudServiceRoleProfile
startCloudService (選擇性) 指出是否要在建立雲端服務之後立即啟動雲端服務。 預設值是 true
如果為 false,服務模型仍會部署,但程式碼不會立即執行。 相反地,服務是 PoweredOff,直到您呼叫 Start 為止,此時服務將會啟動。 即使服務已關閉,已部署的服務仍會產生費用。
bool
upgradeMode 雲端服務的更新模式。 部署服務時,會將角色執行個體配置給更新網域。 您可以手動起始更新每個更新網域,或自動起始更新所有更新網域。
可能的值為

Auto

手動

同時


如果未指定,預設值為 Auto。如果設定為 [手動],則必須呼叫 PUT UpdateDomain 以套用更新。 如果設定為 [自動],則會依序自動套用更新至每個更新網域。
'Auto'
'Manual'
'Simultaneous'

CloudServiceExtensionProfile

名稱 描述
擴充功能 雲端服務的延伸模組清單。 Extension[]

分機

名稱 描述
NAME 延伸模組的名稱。 string
properties 延伸模組屬性。 CloudServiceExtensionProperties

CloudServiceExtensionProperties

名稱 描述
autoUpgradeMinorVersion 明確指定平臺是否可以在提供 typeHandlerVersion 時自動將 typeHandlerVersion 升級至較高的次要版本。 bool
forceUpdateTag 標籤以強制套用提供的公用和受保護的設定。
變更標籤值可讓您重新執行延伸模組,而不需要變更任何公用或受保護的設定。
如果未變更 forceUpdateTag,處理常式仍會套用對公用或受保護設定的更新。
如果 forceUpdateTag 和任何公用或受保護的設定都變更,擴充功能會流向具有相同序號的角色實例,
不論是否要重新執行它,它都是由處理常式實作所決定
string
protectedSettings 在傳送至角色實例之前加密之延伸模組的受保護設定。 針對 Bicep,您可以使用 any () 函式。
protectedSettingsFromKeyVault 延伸模組的受保護設定,使用 KeyVault 參考,這些金鑰會在傳送至角色實例之前加密。 CloudServiceVaultAndSecretReference
publisher 擴充處理常式發行者的名稱。 string
rolesAppliedTo 要套用此延伸模組的角色選擇性清單。 如果未指定 屬性或指定 '*',擴充功能會套用至雲端服務中的所有角色。 string[]
設定 延伸模組的公用設定。 針對 JSON 擴充功能,這是延伸模組的 JSON 設定。 對於 RDP) 之類的 XML 延伸模組 (,這是延伸模組的 XML 設定。 針對 Bicep,您可以使用 any () 函式。
類型 指定擴充功能的類型。 字串
typeHandlerVersion 指定擴充功能的版本。 指定擴充功能的版本。 如果未指定此元素,或是使用星號 (*) 作為值,則會使用最新版本的擴充功能。 如果值是以主要版本號碼和星號指定為次要版本號碼, (X.) ,則會選取指定主要版本的最新次要版本。 如果在 X.Y) (指定主要版本號碼和次要版本號碼,則會選取特定的擴充功能版本。 如果指定某個版本,則會針對角色執行個體執行自動升級。 string

CloudServiceVaultAndSecretReference

名稱 描述
secretUrl 包含延伸模組受保護設定的秘密 URL string
sourceVault 金鑰保存庫的 ARM 資源識別碼 SubResource

SubResource

名稱 描述
id 資源識別碼 string

CloudServiceNetworkProfile

名稱 描述
loadBalancerConfigurations 負載平衡器組態的清單。 雲端服務最多可以有兩個負載平衡器組態,對應至公用Load Balancer和內部Load Balancer。 LoadBalancerConfiguration[]
slotType 雲端服務的位置類型。
可能的值為

生產

預備


如果未指定,預設值為 Production。
'Production'
'Staging'
swappableCloudService 雲端服務的識別碼參考,其中包含主體雲端服務可執行交換的目標 IP。 一旦設定此屬性,就無法更新此屬性。 此識別碼所參考的可交換雲端服務必須存在,否則將會擲回錯誤。 SubResource

LoadBalancerConfiguration

名稱 描述
id 資源識別碼 字串
NAME 負載平衡器的名稱 需要字串 ()
properties 負載平衡器組態的屬性。 LoadBalancerConfigurationProperties (必要)

LoadBalancerConfigurationProperties

名稱 描述
frontendIpConfigurations 指定要用於負載平衡器的前端 IP。 僅支援 IPv4 前端 IP 位址。 每個負載平衡器設定都必須只有一個前端 IP 組態。 LoadBalancerFrontendIpConfiguration[] (必要)

LoadBalancerFrontendIpConfiguration

名稱 描述
NAME 負載平衡器所使用的一組前端 IP 組態內唯一的資源名稱。 此名稱可用來存取資源。 需要字串 ()
properties 負載平衡器前端 IP 組態的屬性。 LoadBalancerFrontendIpConfigurationProperties (必要)

LoadBalancerFrontendIpConfigurationProperties

名稱 描述
privateIPAddress IP 組態的虛擬網路私人 IP 位址。 string
publicIPAddress 公用 IP 位址資源的參考。 SubResource
子網路 虛擬網路子網資源的參考。 SubResource

CloudServiceOsProfile

名稱 描述
密碼 指定應該安裝在角色實例上的憑證集。 CloudServiceVaultSecretGroup[]

CloudServiceVaultSecretGroup

名稱 描述
sourceVault 包含 VaultCertificates 中所有憑證之金鑰保存庫的相對 URL。 SubResource
vaultCertificates SourceVault 中包含憑證的金鑰保存庫參考清單。 CloudServiceVaultCertificate[]

CloudServiceVaultCertificate

名稱 描述
certificateUrl 這是已上傳至金鑰保存庫做為秘密之憑證的 URL。 string

CloudServiceRoleProfile

名稱 描述
角色 雲端服務的角色清單。 CloudServiceRoleProfileProperties[]

CloudServiceRoleProfileProperties

名稱 描述
NAME 資源名稱。 string
sku 描述雲端服務角色 SKU。 CloudServiceRoleSku

CloudServiceRoleSku

名稱 描述
處理能力 指定雲端服務中的角色實例數目。 int
NAME SKU 名稱。 注意:如果雲端服務目前所在的硬體不支援新的 SKU,您必須刪除並重新建立雲端服務,或移回舊 SKU。 string
tier 指定雲端服務的層級。 可能的值為

標準

基本
string

SystemData

此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。

ARM 範本資源定義

cloudServices 資源類型可以使用目標作業進行部署:

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

資源格式

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

{
  "type": "Microsoft.Compute/cloudServices",
  "apiVersion": "2022-09-04",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "allowModelOverride": "bool",
    "configuration": "string",
    "configurationUrl": "string",
    "extensionProfile": {
      "extensions": [
        {
          "name": "string",
          "properties": {
            "autoUpgradeMinorVersion": "bool",
            "forceUpdateTag": "string",
            "protectedSettings": {},
            "protectedSettingsFromKeyVault": {
              "secretUrl": "string",
              "sourceVault": {
                "id": "string"
              }
            },
            "publisher": "string",
            "rolesAppliedTo": [ "string" ],
            "settings": {},
            "type": "string",
            "typeHandlerVersion": "string"
          }
        }
      ]
    },
    "networkProfile": {
      "loadBalancerConfigurations": [
        {
          "id": "string",
          "name": "string",
          "properties": {
            "frontendIpConfigurations": [
              {
                "name": "string",
                "properties": {
                  "privateIPAddress": "string",
                  "publicIPAddress": {
                    "id": "string"
                  },
                  "subnet": {
                    "id": "string"
                  }
                }
              }
            ]
          }
        }
      ],
      "slotType": "string",
      "swappableCloudService": {
        "id": "string"
      }
    },
    "osProfile": {
      "secrets": [
        {
          "sourceVault": {
            "id": "string"
          },
          "vaultCertificates": [
            {
              "certificateUrl": "string"
            }
          ]
        }
      ]
    },
    "packageUrl": "string",
    "roleProfile": {
      "roles": [
        {
          "name": "string",
          "sku": {
            "capacity": "int",
            "name": "string",
            "tier": "string"
          }
        }
      ]
    },
    "startCloudService": "bool",
    "upgradeMode": "string"
  },
  "systemData": {},
  "zones": [ "string" ]
}

屬性值

cloudServices

名稱 描述
類型 資源類型 'Microsoft.Compute/cloudServices'
apiVersion 資源 API 版本 '2022-09-04'
NAME 資源名稱 字串 (必要)

字元限制:1-15



有效字元:
不能使用空格、控制字元或下列字元:
~ ! @ # $ % ^ & * ( ) = + _ [ ] { } \ | ; : . ' " , < > / ?

不能以底線開頭。 不能以句號或連字號結尾。
location 資源位置。 字串 (必要)
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標記
properties 雲端服務屬性 CloudServiceProperties
systemData 與此資源相關的系統中繼資料。 SystemData
zones (區域) 資源的邏輯可用性區域清單。 清單應該只包含應該布建雲端服務的 1 個區域。 這是選擇性欄位。 string[]

CloudServiceProperties

名稱 描述
allowModelOverride (選擇性) 指出角色 sku 屬性是否 (roleProfile.roles.sku) 模型/範本中指定的角色實例計數和 .csdef 中分別指定的角色實例計數和 vm 大小。
預設值是 false
bool
組態 指定雲端服務的 XML 服務組態 (.cscfg) 。 string
configurationUrl 指定參考 Blob 服務中服務組態位置的 URL。 服務套件 URL 可以是來自任何儲存體帳戶的共用存取簽章 (SAS) URI。
這是唯寫屬性,而且不會在 GET 呼叫中傳回。
string
extensionProfile 描述雲端服務擴充功能設定檔。 CloudServiceExtensionProfile
networkProfile 雲端服務的網路設定檔。 CloudServiceNetworkProfile
osProfile 描述雲端服務的 OS 設定檔。 CloudServiceOsProfile
packageUrl 指定 URL 以表示服務封裝在 Blob 服務中的位置。 服務套件 URL 可以是來自任何儲存體帳戶的共用存取簽章 (SAS) URI。
這是唯寫屬性,而且不會在 GET 呼叫中傳回。
string
roleProfile 描述雲端服務的角色設定檔。 CloudServiceRoleProfile
startCloudService (選擇性) 指出是否要在建立雲端服務之後立即啟動雲端服務。 預設值是 true
如果為 false,服務模型仍會部署,但程式碼不會立即執行。 相反地,服務是 PoweredOff,直到您呼叫 Start 為止,此時服務將會啟動。 即使服務已關閉,已部署的服務仍會產生費用。
bool
upgradeMode 雲端服務的更新模式。 部署服務時,會將角色執行個體配置給更新網域。 您可以手動起始更新每個更新網域,或自動起始更新所有更新網域。
可能的值為

Auto

手動

同時


如果未指定,預設值為 Auto。如果設定為 [手動],則必須呼叫 PUT UpdateDomain 以套用更新。 如果設定為 [自動],則會依序自動套用更新至每個更新網域。
'Auto'
'Manual'
'Simultaneous'

CloudServiceExtensionProfile

名稱 描述
擴充功能 雲端服務的擴充功能清單。 Extension[]

分機

名稱 描述
NAME 延伸模組的名稱。 string
properties 延伸模組屬性。 CloudServiceExtensionProperties

CloudServiceExtensionProperties

名稱 描述
autoUpgradeMinorVersion 明確指定當平臺可供使用時,平臺是否可以自動將 typeHandlerVersion 升級至較高的次要版本。 bool
forceUpdateTag 要強制套用提供的公用和受保護設定的標籤。
變更標籤值可讓您重新執行延伸模組,而不需變更任何公用或受保護的設定。
如果未變更 forceUpdateTag,處理常式仍會套用公用或受保護設定的更新。
如果 forceUpdateTag 和任何公用或受保護的設定都未變更,擴充功能會流向具有相同序號的角色實例,而且
不論是否要重新執行,它都是由處理常式實作所決定
string
protectedSettings 在傳送至角色實例之前加密之延伸模組的受保護設定。
protectedSettingsFromKeyVault 延伸模組的受保護設定,使用 KeyVault 進行加密,再傳送至角色實例。 CloudServiceVaultAndSecretReference
publisher 擴充處理常式發行者的名稱。 string
rolesAppliedTo 要套用此擴充功能的選擇性角色清單。 如果未指定 屬性或指定 '*',擴充功能會套用至雲端服務中的所有角色。 string[]
設定 擴充功能的公用設定。 針對 JSON 延伸模組,這是擴充功能的 JSON 設定。 對於 RDP) 之類的 XML 延伸模組 (,這是延伸模組的 XML 設定。
類型 指定擴充功能的類型。 字串
typeHandlerVersion 指定擴充功能的版本。 指定擴充功能的版本。 如果未指定這個專案,或是使用星號 (*) 作為值,則會使用最新版本的延伸模組。 如果以主要版本號碼和星號指定值作為次要版本號碼, (X.) ,則會選取指定主要版本的最新次要版本。 如果 (X.Y) 指定主要版本號碼和次要版本號碼,則會選取特定的擴充功能版本。 如果指定某個版本,則會針對角色執行個體執行自動升級。 string

CloudServiceVaultAndSecretReference

名稱 描述
secretUrl 包含延伸模組受保護設定的秘密 URL string
sourceVault 金鑰保存庫的 ARM 資源識別碼 SubResource

SubResource

名稱 描述
id 資源識別碼 string

CloudServiceNetworkProfile

名稱 描述
loadBalancerConfigurations 負載平衡器組態的清單。 雲端服務最多可以有兩個負載平衡器組態,對應至公用Load Balancer和內部Load Balancer。 LoadBalancerConfiguration[]
slotType 雲端服務的位置類型。
可能的值為

生產

預備


如果未指定,預設值為 Production。
'Production'
'Staging'
swappableCloudService 雲端服務的識別碼參考,其中包含主體雲端服務可執行交換的目標 IP。 一旦設定此屬性,就無法更新此屬性。 此識別碼所參考的可交換雲端服務必須存在,否則將會擲回錯誤。 SubResource

LoadBalancerConfiguration

名稱 描述
id 資源識別碼 字串
NAME 負載平衡器的名稱 字串 (必要)
properties 負載平衡器組態的屬性。 LoadBalancerConfigurationProperties (必要)

LoadBalancerConfigurationProperties

名稱 描述
frontendIpConfigurations 指定要用於負載平衡器的前端 IP。 僅支援 IPv4 前端 IP 位址。 每個負載平衡器組態都必須有一個前端 IP 組態。 LoadBalancerFrontendIpConfiguration[] (必要)

LoadBalancerFrontendIpConfiguration

名稱 描述
NAME 負載平衡器所使用的前端 IP 組態集合內唯一的資源名稱。 此名稱可用來存取資源。 字串 (必要)
properties 負載平衡器前端 IP 組態的屬性。 LoadBalancerFrontendIpConfigurationProperties (必要)

LoadBalancerFrontendIpConfigurationProperties

名稱 描述
privateIPAddress IP 組態的虛擬網路私人 IP 位址。 string
publicIPAddress 公用 IP 位址資源的參考。 SubResource
子網路 虛擬網路子網資源的參考。 SubResource

CloudServiceOsProfile

名稱 描述
密碼 指定應該安裝在角色實例上的憑證集。 CloudServiceVaultSecretGroup[]

CloudServiceVaultSecretGroup

名稱 描述
sourceVault 包含 VaultCertificates 中所有憑證之金鑰保存庫的相對 URL。 SubResource
vaultCertificates SourceVault 中包含憑證的金鑰保存庫參考清單。 CloudServiceVaultCertificate[]

CloudServiceVaultCertificate

名稱 描述
certificateUrl 這是已上傳至金鑰保存庫作為秘密之憑證的 URL。 string

CloudServiceRoleProfile

名稱 描述
角色 雲端服務的角色清單。 CloudServiceRoleProfileProperties[]

CloudServiceRoleProfileProperties

名稱 描述
NAME 資源名稱。 string
sku 描述雲端服務角色 SKU。 CloudServiceRoleSku

CloudServiceRoleSku

名稱 描述
處理能力 指定雲端服務中的角色實例數目。 int
NAME SKU 名稱。 注意:如果雲端服務目前所在的硬體不支援新的 SKU,您需要刪除並重新建立雲端服務,或返回舊的 SKU。 string
tier 指定雲端服務的層級。 可能的值為

標準

基本
string

SystemData

此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。

Terraform (AzAPI 提供者) 資源定義

cloudServices 資源類型可以使用目標作業進行部署:

  • 資源群組

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

資源格式

若要建立 Microsoft.Compute/cloudServices 資源,請將下列 Terraform 新增至您的範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Compute/cloudServices@2022-09-04"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      allowModelOverride = bool
      configuration = "string"
      configurationUrl = "string"
      extensionProfile = {
        extensions = [
          {
            name = "string"
            properties = {
              autoUpgradeMinorVersion = bool
              forceUpdateTag = "string"
              protectedSettingsFromKeyVault = {
                secretUrl = "string"
                sourceVault = {
                  id = "string"
                }
              }
              publisher = "string"
              rolesAppliedTo = [
                "string"
              ]
              type = "string"
              typeHandlerVersion = "string"
            }
          }
        ]
      }
      networkProfile = {
        loadBalancerConfigurations = [
          {
            id = "string"
            name = "string"
            properties = {
              frontendIpConfigurations = [
                {
                  name = "string"
                  properties = {
                    privateIPAddress = "string"
                    publicIPAddress = {
                      id = "string"
                    }
                    subnet = {
                      id = "string"
                    }
                  }
                }
              ]
            }
          }
        ]
        slotType = "string"
        swappableCloudService = {
          id = "string"
        }
      }
      osProfile = {
        secrets = [
          {
            sourceVault = {
              id = "string"
            }
            vaultCertificates = [
              {
                certificateUrl = "string"
              }
            ]
          }
        ]
      }
      packageUrl = "string"
      roleProfile = {
        roles = [
          {
            name = "string"
            sku = {
              capacity = int
              name = "string"
              tier = "string"
            }
          }
        ]
      }
      startCloudService = bool
      upgradeMode = "string"
    }
    systemData = {}
    zones = [
      "string"
    ]
  })
}

屬性值

cloudServices

名稱 描述
類型 資源類型 「Microsoft.Compute/cloudServices@2022-09-04」
NAME 資源名稱 字串 (必要)

字元限制:1-15



有效字元:
不能使用空格、控制字元或下列字元:
~ ! @ # $ % ^ & * ( ) = + _ [ ] { } \ | ; : . ' " , < > / ?

不能以底線開頭。 不能以句號或連字號結尾。
location 資源位置。 字串 (必要)
parent_id 若要部署至資源群組,請使用該資源群組的識別碼。 字串 (必要)
tags 資源標籤。 標記名稱和值的字典。
properties 雲端服務屬性 CloudServiceProperties
systemData 與此資源相關的系統中繼資料。 SystemData
zones (區域) 資源的邏輯可用性區域清單。 清單應該只包含應該布建雲端服務的 1 個區域。 這是選擇性欄位。 string[]

CloudServiceProperties

名稱 描述
allowModelOverride (選擇性) 指出角色 sku 屬性是否 (roleProfile.roles.sku) 模型/範本中指定的角色實例計數和 .csdef 中分別指定的角色實例計數和 vm 大小。
預設值是 false
bool
組態 指定雲端服務的 XML 服務組態 (.cscfg) 。 string
configurationUrl 指定參考 Blob 服務中服務組態位置的 URL。 服務套件 URL 可以是來自任何儲存體帳戶的共用存取簽章 (SAS) URI。
這是唯寫屬性,而且不會在 GET 呼叫中傳回。
string
extensionProfile 描述雲端服務擴充功能設定檔。 CloudServiceExtensionProfile
networkProfile 雲端服務的網路設定檔。 CloudServiceNetworkProfile
osProfile 描述雲端服務的 OS 設定檔。 CloudServiceOsProfile
packageUrl 指定 URL 以表示服務封裝在 Blob 服務中的位置。 服務套件 URL 可以是來自任何儲存體帳戶的共用存取簽章 (SAS) URI。
這是唯寫屬性,而且不會在 GET 呼叫中傳回。
string
roleProfile 描述雲端服務的角色設定檔。 CloudServiceRoleProfile
startCloudService (選擇性) 指出是否要在建立雲端服務之後立即啟動雲端服務。 預設值是 true
如果為 false,服務模型仍會部署,但程式碼不會立即執行。 相反地,服務是 PoweredOff,直到您呼叫 Start 為止,此時服務將會啟動。 即使服務已關閉,已部署的服務仍會產生費用。
bool
upgradeMode 雲端服務的更新模式。 部署服務時,會將角色執行個體配置給更新網域。 您可以手動起始更新每個更新網域,或自動起始更新所有更新網域。
可能的值為

Auto

手動

同時


如果未指定,預設值為 Auto。如果設定為 [手動],則必須呼叫 PUT UpdateDomain 以套用更新。 如果設定為 [自動],則會依序自動套用更新至每個更新網域。
「Auto」
「Manual」
「同時」

CloudServiceExtensionProfile

名稱 描述
擴充功能 雲端服務的擴充功能清單。 Extension[]

分機

名稱 描述
NAME 延伸模組的名稱。 string
properties 延伸模組屬性。 CloudServiceExtensionProperties

CloudServiceExtensionProperties

名稱 描述
autoUpgradeMinorVersion 明確指定當平臺可供使用時,平臺是否可以自動將 typeHandlerVersion 升級至較高的次要版本。 bool
forceUpdateTag 要強制套用提供的公用和受保護設定的標籤。
變更標籤值可讓您重新執行延伸模組,而不需變更任何公用或受保護的設定。
如果未變更 forceUpdateTag,處理常式仍會套用公用或受保護設定的更新。
如果 forceUpdateTag 和任何公用或受保護的設定都未變更,擴充功能會流向具有相同序號的角色實例,而且
不論是否要重新執行,它都是由處理常式實作所決定
string
protectedSettings 在傳送至角色實例之前加密之延伸模組的受保護設定。
protectedSettingsFromKeyVault 延伸模組的受保護設定,使用 KeyVault 進行加密,再傳送至角色實例。 CloudServiceVaultAndSecretReference
publisher 擴充處理常式發行者的名稱。 string
rolesAppliedTo 要套用此擴充功能的選擇性角色清單。 如果未指定 屬性或指定 '*',擴充功能會套用至雲端服務中的所有角色。 string[]
設定 擴充功能的公用設定。 針對 JSON 延伸模組,這是擴充功能的 JSON 設定。 對於 RDP) 之類的 XML 延伸模組 (,這是延伸模組的 XML 設定。
類型 指定擴充功能的類型。 字串
typeHandlerVersion 指定擴充功能的版本。 指定擴充功能的版本。 如果未指定這個專案,或是使用星號 (*) 作為值,則會使用最新版本的延伸模組。 如果以主要版本號碼和星號指定值作為次要版本號碼, (X.) ,則會選取指定主要版本的最新次要版本。 如果 (X.Y) 指定主要版本號碼和次要版本號碼,則會選取特定的擴充功能版本。 如果指定某個版本,則會針對角色執行個體執行自動升級。 string

CloudServiceVaultAndSecretReference

名稱 描述
secretUrl 包含延伸模組受保護設定的秘密 URL string
sourceVault 金鑰保存庫的 ARM 資源識別碼 SubResource

SubResource

名稱 描述
id 資源識別碼 string

CloudServiceNetworkProfile

名稱 描述
loadBalancerConfigurations 負載平衡器組態的清單。 雲端服務最多可以有兩個負載平衡器組態,對應至公用Load Balancer和內部Load Balancer。 LoadBalancerConfiguration[]
slotType 雲端服務的位置類型。
可能的值為

生產

預備


如果未指定,預設值為 Production。
「Production」
「暫存」
swappableCloudService 雲端服務的識別碼參考,其中包含主體雲端服務可執行交換的目標 IP。 一旦設定此屬性,就無法更新此屬性。 此識別碼所參考的可交換雲端服務必須存在,否則將會擲回錯誤。 SubResource

LoadBalancerConfiguration

名稱 描述
id 資源識別碼 字串
NAME 負載平衡器的名稱 字串 (必要)
properties 負載平衡器組態的屬性。 LoadBalancerConfigurationProperties (必要)

LoadBalancerConfigurationProperties

名稱 描述
frontendIpConfigurations 指定要用於負載平衡器的前端 IP。 僅支援 IPv4 前端 IP 位址。 每個負載平衡器組態都必須有一個前端 IP 組態。 LoadBalancerFrontendIpConfiguration[] (必要)

LoadBalancerFrontendIpConfiguration

名稱 描述
NAME 負載平衡器所使用的前端 IP 組態集合內唯一的資源名稱。 此名稱可用來存取資源。 字串 (必要)
properties 負載平衡器前端 IP 組態的屬性。 LoadBalancerFrontendIpConfigurationProperties (必要)

LoadBalancerFrontendIpConfigurationProperties

名稱 描述
privateIPAddress IP 組態的虛擬網路私人 IP 位址。 string
publicIPAddress 公用 IP 位址資源的參考。 SubResource
子網路 虛擬網路子網資源的參考。 SubResource

CloudServiceOsProfile

名稱 描述
密碼 指定應該安裝在角色實例上的憑證集。 CloudServiceVaultSecretGroup[]

CloudServiceVaultSecretGroup

名稱 描述
sourceVault 包含 VaultCertificates 中所有憑證之金鑰保存庫的相對 URL。 SubResource
vaultCertificates SourceVault 中包含憑證的金鑰保存庫參考清單。 CloudServiceVaultCertificate[]

CloudServiceVaultCertificate

名稱 描述
certificateUrl 這是已上傳至金鑰保存庫作為秘密之憑證的 URL。 string

CloudServiceRoleProfile

名稱 描述
角色 雲端服務的角色清單。 CloudServiceRoleProfileProperties[]

CloudServiceRoleProfileProperties

名稱 描述
NAME 資源名稱。 string
sku 描述雲端服務角色 SKU。 CloudServiceRoleSku

CloudServiceRoleSku

名稱 描述
處理能力 指定雲端服務中的角色實例數目。 int
NAME SKU 名稱。 注意:如果雲端服務目前所在的硬體不支援新的 SKU,您需要刪除並重新建立雲端服務,或返回舊的 SKU。 string
tier 指定雲端服務的層級。 可能的值為

標準

基本
string

SystemData

此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。