共用方式為


Batch Account - Create

使用指定的參數建立新的 Batch 帳戶。 現有的帳戶無法使用此 API 更新,而應該改為使用更新 Batch 帳戶 API 進行更新。

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}?api-version=2024-07-01

URI 參數

名稱 位於 必要 類型 Description
accountName
path True

string

minLength: 3
maxLength: 24
pattern: ^[a-z0-9]+$

Batch 帳戶的名稱,該帳戶在區域內必須是唯一的。 Batch 帳戶名稱長度必須介於 3 到 24 個字元之間,且只能使用數位和小寫字母。 此名稱是用來存取建立帳戶之區域中 Batch 服務的 DNS 名稱的一部分。 例如:http://accountname.region.batch.azure.com/

resourceGroupName
path True

string

包含 Batch 帳戶的資源群組名稱。

subscriptionId
path True

string

Azure 訂用帳戶標識碼。 這是 GUID 格式的字串(例如 0000000000-0000-0000-0000-0000000000000000)

api-version
query True

string

要與 HTTP 要求搭配使用的 API 版本。

要求本文

名稱 必要 類型 Description
location True

string

要在其中建立帳戶的區域。

identity

BatchAccountIdentity

Batch 帳戶的身分識別。

properties.allowedAuthenticationModes

AuthenticationMode[]

Batch 帳戶允許的驗證模式清單,可用來向數據平面進行驗證。 這不會影響控制平面的驗證。

properties.autoStorage

AutoStorageBaseProperties

與自動記憶體帳戶相關的屬性。

properties.encryption

EncryptionProperties

Batch 帳戶的加密組態。
設定客戶數據在 Batch 帳戶內加密的方式。 根據預設,帳戶會使用Microsoft受控密鑰來加密。 如需其他控制,可以改用客戶管理的密鑰。

properties.keyVaultReference

KeyVaultReference

與 Batch 帳戶相關聯的 Azure 金鑰保存庫參考。

properties.networkProfile

NetworkProfile

Batch 帳戶的網路配置檔,其中包含每個端點的網路規則設定。
只有在啟用 publicNetworkAccess 時,網路配置檔才會生效。

properties.poolAllocationMode

PoolAllocationMode

用於在 Batch 帳戶中建立集區的配置模式。
集區配置模式也會影響用戶端如何向 Batch 服務 API 進行驗證。 如果模式為 BatchService,用戶端可以使用存取金鑰或Microsoft Entra 識別碼進行驗證。 如果模式為 UserSubscription,客戶端必須使用Microsoft Entra ID。 預設值為 BatchService。

properties.publicNetworkAccess

PublicNetworkAccessType

用於存取 Azure Batch 帳戶的網路存取類型。
如果未指定,預設值為 'enabled'。

tags

object

與帳戶相關聯的使用者指定標記。

回應

名稱 類型 Description
200 OK

BatchAccount

作業成功。 回應包含 Batch 帳戶實體。

202 Accepted

作業將會以異步方式完成。

標題

  • Location: string
  • Retry-After: integer
Other Status Codes

CloudError

描述作業失敗原因的錯誤回應。

安全性

azure_auth

Microsoft Entra OAuth 2.0 驗證碼流程

類型: oauth2
Flow: implicit
授權 URL: https://login.microsoftonline.com/common/oauth2/authorize

範圍

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

BatchAccountCreate_BYOS
BatchAccountCreate_Default
BatchAccountCreate_SystemAssignedIdentity
BatchAccountCreate_UserAssignedIdentity
PrivateBatchAccountCreate

BatchAccountCreate_BYOS

範例要求

PUT https://management.azure.com/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct?api-version=2024-07-01

{
  "location": "japaneast",
  "properties": {
    "autoStorage": {
      "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"
    },
    "poolAllocationMode": "UserSubscription",
    "keyVaultReference": {
      "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample",
      "url": "http://sample.vault.azure.net/"
    }
  }
}

範例回覆

{
  "name": "sampleacct",
  "location": "japaneast",
  "properties": {
    "accountEndpoint": "sampleacct.japaneast.batch.azure.com",
    "provisioningState": "Succeeded",
    "poolAllocationMode": "UserSubscription",
    "dedicatedCoreQuota": 20,
    "lowPriorityCoreQuota": 20,
    "poolQuota": 20,
    "activeJobAndJobScheduleQuota": 20,
    "autoStorage": {
      "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
      "lastKeySync": "2016-03-10T23:48:38.9878479Z"
    },
    "keyVaultReference": {
      "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample",
      "url": "http://sample.vault.azure.net/"
    },
    "publicNetworkAccess": "Enabled"
  },
  "identity": {
    "type": "None"
  },
  "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct",
  "type": "Microsoft.Batch/batchAccounts"
}

BatchAccountCreate_Default

範例要求

PUT https://management.azure.com/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct?api-version=2024-07-01

{
  "location": "japaneast",
  "properties": {
    "autoStorage": {
      "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"
    }
  }
}

範例回覆

{
  "name": "sampleacct",
  "location": "japaneast",
  "properties": {
    "accountEndpoint": "sampleacct.japaneast.batch.azure.com",
    "provisioningState": "Succeeded",
    "poolAllocationMode": "BatchService",
    "dedicatedCoreQuota": 20,
    "lowPriorityCoreQuota": 20,
    "poolQuota": 20,
    "activeJobAndJobScheduleQuota": 20,
    "autoStorage": {
      "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
      "lastKeySync": "2016-03-10T23:48:38.9878479Z"
    },
    "publicNetworkAccess": "Enabled"
  },
  "identity": {
    "type": "None"
  },
  "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct",
  "type": "Microsoft.Batch/batchAccounts"
}

BatchAccountCreate_SystemAssignedIdentity

範例要求

PUT https://management.azure.com/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct?api-version=2024-07-01

{
  "location": "japaneast",
  "properties": {
    "autoStorage": {
      "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"
    }
  },
  "identity": {
    "type": "SystemAssigned"
  }
}

範例回覆

{
  "name": "sampleacct",
  "location": "japaneast",
  "properties": {
    "accountEndpoint": "sampleacct.japaneast.batch.azure.com",
    "provisioningState": "Succeeded",
    "poolAllocationMode": "BatchService",
    "dedicatedCoreQuota": 20,
    "lowPriorityCoreQuota": 20,
    "poolQuota": 20,
    "activeJobAndJobScheduleQuota": 20,
    "autoStorage": {
      "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
      "lastKeySync": "2016-03-10T23:48:38.9878479Z"
    },
    "publicNetworkAccess": "Enabled"
  },
  "identity": {
    "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7",
    "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd",
    "type": "SystemAssigned"
  },
  "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct",
  "type": "Microsoft.Batch/batchAccounts"
}

BatchAccountCreate_UserAssignedIdentity

範例要求

PUT https://management.azure.com/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct?api-version=2024-07-01

{
  "location": "japaneast",
  "properties": {
    "autoStorage": {
      "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"
    }
  },
  "identity": {
    "type": "UserAssigned",
    "userAssignedIdentities": {
      "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}
    }
  }
}

範例回覆

{
  "name": "sampleacct",
  "location": "japaneast",
  "properties": {
    "accountEndpoint": "sampleacct.japaneast.batch.azure.com",
    "provisioningState": "Succeeded",
    "poolAllocationMode": "BatchService",
    "dedicatedCoreQuota": 20,
    "lowPriorityCoreQuota": 20,
    "poolQuota": 20,
    "activeJobAndJobScheduleQuota": 20,
    "autoStorage": {
      "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
      "lastKeySync": "2016-03-10T23:48:38.9878479Z"
    },
    "publicNetworkAccess": "Enabled"
  },
  "identity": {
    "type": "UserAssigned",
    "userAssignedIdentities": {
      "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {
        "principalId": "principalId1",
        "clientId": "clientId1"
      }
    }
  },
  "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct",
  "type": "Microsoft.Batch/batchAccounts"
}

PrivateBatchAccountCreate

範例要求

PUT https://management.azure.com/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct?api-version=2024-07-01

{
  "location": "japaneast",
  "properties": {
    "autoStorage": {
      "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"
    },
    "keyVaultReference": {
      "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample",
      "url": "http://sample.vault.azure.net/"
    },
    "publicNetworkAccess": "Disabled"
  }
}

範例回覆

{
  "name": "sampleacct",
  "location": "japaneast",
  "properties": {
    "accountEndpoint": "sampleacct.japaneast.batch.azure.com",
    "provisioningState": "Succeeded",
    "poolAllocationMode": "UserSubscription",
    "dedicatedCoreQuota": 20,
    "lowPriorityCoreQuota": 20,
    "poolQuota": 20,
    "activeJobAndJobScheduleQuota": 20,
    "autoStorage": {
      "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
      "lastKeySync": "2016-03-10T23:48:38.9878479Z"
    },
    "keyVaultReference": {
      "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample",
      "url": "http://sample.vault.azure.net/"
    },
    "publicNetworkAccess": "Disabled"
  },
  "identity": {
    "type": "None"
  },
  "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct",
  "type": "Microsoft.Batch/batchAccounts"
}

定義

名稱 Description
AuthenticationMode

Batch 帳戶的驗證模式。

AutoStorageAuthenticationMode

Batch 服務將用來管理自動記憶體帳戶的驗證模式。

AutoStorageBaseProperties

與自動記憶體帳戶相關的屬性。

AutoStorageProperties

包含與 Batch 帳戶相關聯的自動記憶體帳戶相關信息。

BatchAccount

包含 Azure Batch 帳戶的相關信息。

BatchAccountCreateParameters

提供給建立作業的參數。

BatchAccountIdentity

如果已設定,則為 Batch 帳戶的身分識別。 當使用者指定 『Microsoft.KeyVault』 作為其 Batch 帳戶加密組態,或選取 ManagedIdentity 作為自動儲存驗證模式時,就會使用此選項。

CloudError

Batch 服務的錯誤回應。

CloudErrorBody

Batch 服務的錯誤回應。

ComputeNodeIdentityReference

與計算節點將使用的 Batch 集區相關聯的使用者指派身分識別參考。

EncryptionProperties

設定客戶數據在 Batch 帳戶內加密的方式。 根據預設,帳戶會使用Microsoft受控密鑰來加密。 如需其他控制,可以改用客戶管理的密鑰。

EndpointAccessDefaultAction

沒有符合IPRule時的預設動作。

EndpointAccessProfile

Batch 端點的網路存取配置檔。

IPRule

篩選用戶端 IP 位址的規則。

IPRuleAction

比對用戶端IP位址時的動作。

KeySource

金鑰來源的類型。

KeyVaultProperties

使用 Microsoft.KeyVault 的加密金鑰來源時,KeyVault 組態。

KeyVaultReference

識別與 Batch 帳戶相關聯的 Azure 金鑰保存庫。

NetworkProfile

Batch 帳戶的網路配置檔,其中包含每個端點的網路規則設定。

PoolAllocationMode

在 Batch 帳戶中建立集區的配置模式。

PrivateEndpoint

私人端點連線的私人端點。

PrivateEndpointConnection

包含私人鏈接資源的相關信息。

PrivateEndpointConnectionProvisioningState

私人端點聯機的布建狀態。

PrivateLinkServiceConnectionState

私人端點連線的私人連結服務連線狀態

PrivateLinkServiceConnectionStatus

Batch 私人端點連線的狀態

ProvisioningState

資源的布建狀態

PublicNetworkAccessType

在 Batch 帳戶中的資源上操作的網路存取類型。

ResourceIdentityType

用於 Batch 帳戶的身分識別類型。

UserAssignedIdentities

相關聯的使用者身分識別清單。

VirtualMachineFamilyCoreQuota

VM 系列及其 Batch 帳戶的相關核心配額。

AuthenticationMode

Batch 帳戶的驗證模式。

Description
AAD

使用 Microsoft Entra 識別碼的驗證模式。

SharedKey

使用共用金鑰的驗證模式。

TaskAuthenticationToken

使用工作驗證令牌的驗證模式。

AutoStorageAuthenticationMode

Batch 服務將用來管理自動記憶體帳戶的驗證模式。

Description
BatchAccountManagedIdentity

Batch 服務會使用指派給 Batch 帳戶的受控識別來驗證對自動記憶體的要求。

StorageKeys

Batch 服務會使用記憶體帳戶密鑰來驗證對自動記憶體的要求。

AutoStorageBaseProperties

與自動記憶體帳戶相關的屬性。

名稱 類型 預設值 Description
authenticationMode

AutoStorageAuthenticationMode

StorageKeys

Batch 服務將用來管理自動記憶體帳戶的驗證模式。

nodeIdentityReference

ComputeNodeIdentityReference

使用者指派身分識別的參考,計算節點將用來存取自動記憶體。
此處參考的身分識別必須指派給具有需要存取自動記憶體之計算節點的集區。

storageAccountId

string (arm-id)

要用於自動記憶體帳戶之記憶體帳戶的記憶體帳戶的資源識別碼。

AutoStorageProperties

包含與 Batch 帳戶相關聯的自動記憶體帳戶相關信息。

名稱 類型 預設值 Description
authenticationMode

AutoStorageAuthenticationMode

StorageKeys

Batch 服務將用來管理自動記憶體帳戶的驗證模式。

lastKeySync

string (date-time)

上次同步處理記憶體金鑰與 Batch 帳戶的 UTC 時間。

nodeIdentityReference

ComputeNodeIdentityReference

使用者指派身分識別的參考,計算節點將用來存取自動記憶體。
此處參考的身分識別必須指派給具有需要存取自動記憶體之計算節點的集區。

storageAccountId

string (arm-id)

要用於自動記憶體帳戶之記憶體帳戶的記憶體帳戶的資源識別碼。

BatchAccount

包含 Azure Batch 帳戶的相關信息。

名稱 類型 預設值 Description
id

string

資源的標識碼。

identity

BatchAccountIdentity

Batch 帳戶的身分識別。

location

string

資源的位置。

name

string

資源的名稱。

properties.accountEndpoint

string

用來與 Batch 服務互動的帳戶端點。

properties.activeJobAndJobScheduleQuota

integer (int32)

Batch 帳戶的作用中作業和作業排程配額。

properties.allowedAuthenticationModes

AuthenticationMode[]

Batch 帳戶允許的驗證模式清單,可用來向數據平面進行驗證。 這不會影響控制平面的驗證。

properties.autoStorage

AutoStorageProperties

與 Batch 帳戶相關聯的任何自動記憶體帳戶的屬性和狀態。
包含與 Batch 帳戶相關聯的自動記憶體帳戶相關信息。

properties.dedicatedCoreQuota

integer (int32)

Batch 帳戶的專用核心配額。
針對將 PoolAllocationMode 設定為 UserSubscription 的帳戶,訂用帳戶上會管理配額,因此不會傳回此值。

properties.dedicatedCoreQuotaPerVMFamily

VirtualMachineFamilyCoreQuota[]

Batch 帳戶的每個虛擬機系列專用核心配額清單。 針對將 PoolAllocationMode 設定為 UserSubscription 的帳戶,訂用帳戶上會管理配額,因此不會傳回此值。

properties.dedicatedCoreQuotaPerVMFamilyEnforced

boolean

值,指出是否針對此帳戶強制執行每個虛擬機系列的核心配額
如果此旗標為 true,則會透過帳戶上的 dedicatedCoreQuotaPerVMFamily 和 dedicatedCoreQuota 屬性強制執行專用核心配額。 如果此旗標為 false,則專用核心配額只會透過帳戶上的 dedicatedCoreQuota 屬性強制執行,而且不會考慮虛擬機系列。

properties.encryption

EncryptionProperties

Batch 帳戶的加密組態。
設定客戶數據在 Batch 帳戶內加密的方式。 根據預設,帳戶會使用Microsoft受控密鑰來加密。 如需其他控制,可以改用客戶管理的密鑰。

properties.keyVaultReference

KeyVaultReference

與 Batch 帳戶相關聯的 Azure 金鑰保存庫參考。
識別與 Batch 帳戶相關聯的 Azure 金鑰保存庫。

properties.lowPriorityCoreQuota

integer (int32)

Batch 帳戶的 Spot/low-priority 核心配額。
針對將 PoolAllocationMode 設定為 UserSubscription 的帳戶,訂用帳戶上會管理配額,因此不會傳回此值。

properties.networkProfile

NetworkProfile

Batch 帳戶的網路配置檔,其中包含每個端點的網路規則設定。
只有在啟用 publicNetworkAccess 時,網路配置檔才會生效。

properties.nodeManagementEndpoint

string

計算節點用來連線到 Batch 節點管理服務的端點。

properties.poolAllocationMode

PoolAllocationMode

用於在 Batch 帳戶中建立集區的配置模式。
在 Batch 帳戶中建立集區的配置模式。

properties.poolQuota

integer (int32)

Batch 帳戶的集區配額。

properties.privateEndpointConnections

PrivateEndpointConnection[]

與 Batch 帳戶相關聯的私人端點連線清單

properties.provisioningState

ProvisioningState

資源的布建狀態

properties.publicNetworkAccess

PublicNetworkAccessType

Enabled

用於存取 Azure Batch 服務和 Batch 帳戶作業的網路介面類型。
如果未指定,預設值為 'enabled'。

tags

object

資源的標記。

type

string

資源的型別。

BatchAccountCreateParameters

提供給建立作業的參數。

名稱 類型 預設值 Description
identity

BatchAccountIdentity

Batch 帳戶的身分識別。

location

string

要在其中建立帳戶的區域。

properties.allowedAuthenticationModes

AuthenticationMode[]

Batch 帳戶允許的驗證模式清單,可用來向數據平面進行驗證。 這不會影響控制平面的驗證。

properties.autoStorage

AutoStorageBaseProperties

與自動記憶體帳戶相關的屬性。

properties.encryption

EncryptionProperties

Batch 帳戶的加密組態。
設定客戶數據在 Batch 帳戶內加密的方式。 根據預設,帳戶會使用Microsoft受控密鑰來加密。 如需其他控制,可以改用客戶管理的密鑰。

properties.keyVaultReference

KeyVaultReference

與 Batch 帳戶相關聯的 Azure 金鑰保存庫參考。

properties.networkProfile

NetworkProfile

Batch 帳戶的網路配置檔,其中包含每個端點的網路規則設定。
只有在啟用 publicNetworkAccess 時,網路配置檔才會生效。

properties.poolAllocationMode

PoolAllocationMode

用於在 Batch 帳戶中建立集區的配置模式。
集區配置模式也會影響用戶端如何向 Batch 服務 API 進行驗證。 如果模式為 BatchService,用戶端可以使用存取金鑰或Microsoft Entra 識別碼進行驗證。 如果模式為 UserSubscription,客戶端必須使用Microsoft Entra ID。 預設值為 BatchService。

properties.publicNetworkAccess

PublicNetworkAccessType

Enabled

用於存取 Azure Batch 帳戶的網路存取類型。
如果未指定,預設值為 'enabled'。

tags

object

與帳戶相關聯的使用者指定標記。

BatchAccountIdentity

如果已設定,則為 Batch 帳戶的身分識別。 當使用者指定 『Microsoft.KeyVault』 作為其 Batch 帳戶加密組態,或選取 ManagedIdentity 作為自動儲存驗證模式時,就會使用此選項。

名稱 類型 Description
principalId

string

Batch 帳戶的主體標識碼。 此屬性只會針對系統指派的身分識別提供。

tenantId

string

與 Batch 帳戶相關聯的租用戶標識碼。 此屬性只會針對系統指派的身分識別提供。

type

ResourceIdentityType

用於 Batch 帳戶的身分識別類型。

userAssignedIdentities

<string,  UserAssignedIdentities>

與 Batch 帳戶相關聯的使用者身分識別清單。

CloudError

Batch 服務的錯誤回應。

名稱 類型 Description
error

CloudErrorBody

錯誤回應的主體。

CloudErrorBody

Batch 服務的錯誤回應。

名稱 類型 Description
code

string

錯誤的識別碼。 程序代碼是不變的,而且是要以程序設計方式取用。

details

CloudErrorBody[]

錯誤的其他詳細數據清單。

message

string

描述錯誤的訊息,適用於在使用者介面中顯示。

target

string

特定錯誤的目標。 例如,錯誤中的屬性名稱。

ComputeNodeIdentityReference

與計算節點將使用的 Batch 集區相關聯的使用者指派身分識別參考。

名稱 類型 Description
resourceId

string

使用者指派身分識別的 ARM 資源識別碼。

EncryptionProperties

設定客戶數據在 Batch 帳戶內加密的方式。 根據預設,帳戶會使用Microsoft受控密鑰來加密。 如需其他控制,可以改用客戶管理的密鑰。

名稱 類型 Description
keySource

KeySource

金鑰來源的類型。

keyVaultProperties

KeyVaultProperties

使用 Microsoft.KeyVault 時的其他詳細數據

EndpointAccessDefaultAction

沒有符合IPRule時的預設動作。

Description
Allow

允許用戶端存取。

Deny

拒絕用戶端存取。

EndpointAccessProfile

Batch 端點的網路存取配置檔。

名稱 類型 Description
defaultAction

EndpointAccessDefaultAction

沒有符合IPRule時的預設動作。
端點存取的預設動作。 只有在啟用 publicNetworkAccess 時才適用。

ipRules

IPRule[]

篩選用戶端 IP 位址的 IP 範圍數位。

IPRule

篩選用戶端 IP 位址的規則。

名稱 類型 Description
action

IPRuleAction

比對用戶端IP位址時的動作。

value

string

要篩選的IP位址或IP位址範圍
IPv4 位址或 CIDR 格式的 IPv4 位址範圍。

IPRuleAction

比對用戶端IP位址時的動作。

Description
Allow

允許存取相符的用戶端IP位址。

KeySource

金鑰來源的類型。

Description
Microsoft.Batch

Batch 會建立和管理用來保護帳戶數據的加密密鑰。

Microsoft.KeyVault

用來保護帳戶數據的加密金鑰會儲存在外部金鑰保存庫中。 如果設定此選項,則必須將 Batch 帳戶身分識別設定為 SystemAssigned,而且必須在 keyVaultProperties 底下提供有效的密鑰標識碼。

KeyVaultProperties

使用 Microsoft.KeyVault 的加密金鑰來源時,KeyVault 組態。

名稱 類型 Description
keyIdentifier

string

具有或不含版本之秘密的完整路徑。 範例 https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053。 或 https://mykeyvault.vault.azure.net/keys/testkey。 若要可供使用,必須符合下列必要條件:

Batch 帳戶具有系統指派的身分識別 帳戶身分識別已獲授與密鑰/取得、金鑰/解除包裝和密鑰/包裝許可權 KeyVault 已啟用虛刪除和清除保護

KeyVaultReference

識別與 Batch 帳戶相關聯的 Azure 金鑰保存庫。

名稱 類型 Description
id

string (arm-id)

與 Batch 帳戶相關聯的 Azure 金鑰保存庫資源識別碼。

url

string

與 Batch 帳戶相關聯的 Azure 金鑰保存庫 URL。

NetworkProfile

Batch 帳戶的網路配置檔,其中包含每個端點的網路規則設定。

名稱 類型 Description
accountAccess

EndpointAccessProfile

batchAccount 端點的網路存取配置檔(Batch 帳戶數據平面 API)。

nodeManagementAccess

EndpointAccessProfile

nodeManagement 端點的網路存取配置檔(Batch 服務管理 Batch 集區的計算節點)。

PoolAllocationMode

在 Batch 帳戶中建立集區的配置模式。

Description
BatchService

集區將會配置在 Batch 服務所擁有的訂用帳戶中。

UserSubscription

集區將會配置在使用者所擁有的訂用帳戶中。

PrivateEndpoint

私人端點連線的私人端點。

名稱 類型 Description
id

string

私人端點的 ARM 資源識別碼。 這是 /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/privateEndpoints/{privateEndpoint}的格式。

PrivateEndpointConnection

包含私人鏈接資源的相關信息。

名稱 類型 Description
etag

string

資源的 ETag,用於並行語句。

id

string

資源的標識碼。

name

string

資源的名稱。

properties.groupIds

string[]

私人端點聯機的群組標識碼。
值只有一個且只有一個群組標識符。

properties.privateEndpoint

PrivateEndpoint

私人端點的 ARM 資源識別碼。
私人端點連線的私人端點。

properties.privateLinkServiceConnectionState

PrivateLinkServiceConnectionState

私人端點連線的私人連結服務連線狀態。
私人端點連線的私人連結服務連線狀態

properties.provisioningState

PrivateEndpointConnectionProvisioningState

私人端點聯機的布建狀態。

tags

object

資源的標記。

type

string

資源的型別。

PrivateEndpointConnectionProvisioningState

私人端點聯機的布建狀態。

Description
Cancelled

使用者已取消連線建立。

Creating

正在建立連線。

Deleting

線上正在刪除。

Failed

使用者要求更新連線且失敗。 您可以重試更新作業。

Succeeded

連線狀態為最終狀態,且已準備好在 [狀態] 為 [已核准] 時使用。

Updating

使用者已要求更新連線狀態,但更新作業尚未完成。 連接 Batch 帳戶時,您可能不會參考連線。

PrivateLinkServiceConnectionState

私人端點連線的私人連結服務連線狀態

名稱 類型 Description
actionsRequired

string

私人連線狀態所需的動作

description

string

私人連線狀態的描述

status

PrivateLinkServiceConnectionStatus

Batch 帳戶的私人端點連線狀態

PrivateLinkServiceConnectionStatus

Batch 私人端點連線的狀態

Description
Approved

私人端點連線已核准,可用來存取 Batch 帳戶

Disconnected

私人端點連線已中斷連線,無法用來存取 Batch 帳戶

Pending

私人端點連線擱置中,無法用來存取 Batch 帳戶

Rejected

私人端點連線遭到拒絕,無法用來存取 Batch 帳戶

ProvisioningState

資源的布建狀態

Description
Cancelled

取消帳戶的最後一個作業。

Creating

正在建立帳戶。

Deleting

正在刪除帳戶。

Failed

帳戶的最後一個作業失敗。

Invalid

帳戶處於無效狀態。

Succeeded

帳戶已建立並可供使用。

PublicNetworkAccessType

在 Batch 帳戶中的資源上操作的網路存取類型。

Description
Disabled

停用公用連線,並透過私人端點資源啟用對 Azure Batch Service 的私人連線。

Enabled

允許透過公用 DNS 連線到 Azure Batch。

SecuredByPerimeter

透過 NSP 設定保護與 Azure Batch 的連線。

ResourceIdentityType

用於 Batch 帳戶的身分識別類型。

Description
None

Batch 帳戶沒有與其相關聯的身分識別。 在更新帳戶中設定 None 將會移除現有的身分識別。

SystemAssigned

Batch 帳戶具有系統指派的身分識別。

UserAssigned

Batch 帳戶具有使用者指派的身分識別。

UserAssignedIdentities

相關聯的使用者身分識別清單。

名稱 類型 Description
clientId

string

使用者指派身分識別的用戶端標識碼。

principalId

string

使用者指派身分識別的主體標識碼。

VirtualMachineFamilyCoreQuota

VM 系列及其 Batch 帳戶的相關核心配額。

名稱 類型 Description
coreQuota

integer (int32)

Batch 帳戶 VM 系列的核心配額。

name

string

虛擬機系列名稱。