Bicep 資源定義
fluidRelayServers 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
使用範例
Bicep 範例
部署 Fluid Relay Server 的基本範例。
param resourceName string = 'acctest0001'
param location string = 'westeurope'
resource fluidRelayServer 'Microsoft.FluidRelay/fluidRelayServers@2022-05-26' = {
name: resourceName
location: location
properties: {}
tags: {
foo: 'bar'
}
}
資源格式
若要建立 Microsoft.FluidRelay/fluidRelayServers 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.FluidRelay/fluidRelayServers@2025-06-20-preview' = {
identity: {
type: 'string'
userAssignedIdentities: {
{customized property}: {}
}
}
location: 'string'
name: 'string'
properties: {
encryption: {
customerManagedKeyEncryption: {
keyEncryptionKeyIdentity: {
identityType: 'string'
userAssignedIdentityResourceId: 'string'
}
keyEncryptionKeyUrl: 'string'
}
}
privateKeyAccess: 'string'
provisioningState: 'string'
publicNetworkAccess: 'string'
sharedKeyAccess: 'string'
storagesku: 'string'
}
tags: {
{customized property}: 'string'
}
}
屬性值
Microsoft.FluidRelay/fluidRelayServers
| 名稱 | Description | 價值觀 |
|---|---|---|
| 身分識別 | 用於資源的身分識別類型。 | 身分識別 |
| 位置 | 資源所在的地理位置 | 字串(必填) |
| 名稱 | 資源名稱 | 字串(必填) |
| properties | 此資源的資源特定屬性。 | FluidRelayServer屬性 |
| tags | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
CustomerManagedKeyEncryptionProperties
| 名稱 | Description | 價值觀 |
|---|---|---|
| keyEncryptionKeyIdentity | 客戶管理金鑰設定的所有身分識別設定,定義應該使用哪個身分識別來驗證金鑰保存庫。 | CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity |
| 金鑰加密金鑰網址 | 金鑰加密金鑰 URL,包含或不含版本。 例如:https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 或 https://contosovault.vault.azure.net/keys/contosokek。 金鑰自動輪替是藉由提供沒有版本的金鑰 URI 來啟用。 否則,客戶須負責輪替密鑰。 keyEncryptionKeyIdentity(SystemAssigned 或 UserAssigned) 應該具有存取此密鑰 URL 的許可權。 |
字串 |
CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity
| 名稱 | Description | 價值觀 |
|---|---|---|
| identityType | 值可以是 SystemAssigned 或 UserAssigned | 'SystemAssigned' 'UserAssigned' |
| userAssignedIdentityResourceId | 使用者指派的身分識別可用來存取金鑰加密金鑰 URL。 例如:/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<資源群組>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId。 與 identityType systemAssignedIdentity 互斥。 | 字串 |
加密屬性
| 名稱 | Description | 價值觀 |
|---|---|---|
| customerManagedKeyEncryption | 資源的所有客戶自控金鑰加密屬性。 | CustomerManagedKeyEncryptionProperties |
FluidRelayServer屬性
| 名稱 | Description | 價值觀 |
|---|---|---|
| 加密 | 資源的所有加密組態。 | EncryptionProperties |
| 私鑰訪問 | 指出使用私密金鑰的伺服器目前存取狀態。 | 'Disabled' 'Enabled' |
| provisioningState | 為 FluidRelay RP 布建狀態 | “已取消” “失敗” 'Succeeded' |
| 公共網路存取 | 指出是否已啟用公用網路存取。 | 'Disabled' 'Enabled' |
| sharedKeyAccess | 指出使用共用金鑰的伺服器目前存取狀態。 | 'Disabled' 'Enabled' |
| 存儲SKU | 與資源相關聯的記憶體 SKU | '基本' '標準' |
身份
| 名稱 | Description | 價值觀 |
|---|---|---|
| 型別 | 識別類型。 | 'None' 'SystemAssigned' 'SystemAssigned, UserAssigned' 'UserAssigned' |
| userAssignedIdentities | 與資源相關聯的使用者身分識別清單。 | IdentityUserAssignedIdentities |
IdentityUserAssignedIdentities
| 名稱 | Description | 價值觀 |
|---|
TrackedResourceTags
| 名稱 | Description | 價值觀 |
|---|
UserAssignedIdentitiesValue
| 名稱 | Description | 價值觀 |
|---|
ARM 樣本資源定義
fluidRelayServers 資源類型可以使用目標作業來部署:
使用範例
資源格式
若要建立 Microsoft.FluidRelay/fluidRelayServers 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.FluidRelay/fluidRelayServers",
"apiVersion": "2025-06-20-preview",
"name": "string",
"identity": {
"type": "string",
"userAssignedIdentities": {
"{customized property}": {
}
}
},
"location": "string",
"properties": {
"encryption": {
"customerManagedKeyEncryption": {
"keyEncryptionKeyIdentity": {
"identityType": "string",
"userAssignedIdentityResourceId": "string"
},
"keyEncryptionKeyUrl": "string"
}
},
"privateKeyAccess": "string",
"provisioningState": "string",
"publicNetworkAccess": "string",
"sharedKeyAccess": "string",
"storagesku": "string"
},
"tags": {
"{customized property}": "string"
}
}
屬性值
Microsoft.FluidRelay/fluidRelayServers
| 名稱 | Description | 價值觀 |
|---|---|---|
| apiVersion | API 版本 | '2025-06-20-預覽' |
| 身分識別 | 用於資源的身分識別類型。 | 身分識別 |
| 位置 | 資源所在的地理位置 | 字串(必填) |
| 名稱 | 資源名稱 | 字串(必填) |
| properties | 此資源的資源特定屬性。 | FluidRelayServer屬性 |
| tags | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
| 型別 | 資源類型 | “Microsoft.FluidRelay/fluidRelayServers” |
CustomerManagedKeyEncryptionProperties
| 名稱 | Description | 價值觀 |
|---|---|---|
| keyEncryptionKeyIdentity | 客戶管理金鑰設定的所有身分識別設定,定義應該使用哪個身分識別來驗證金鑰保存庫。 | CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity |
| 金鑰加密金鑰網址 | 金鑰加密金鑰 URL,包含或不含版本。 例如:https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 或 https://contosovault.vault.azure.net/keys/contosokek。 金鑰自動輪替是藉由提供沒有版本的金鑰 URI 來啟用。 否則,客戶須負責輪替密鑰。 keyEncryptionKeyIdentity(SystemAssigned 或 UserAssigned) 應該具有存取此密鑰 URL 的許可權。 |
字串 |
CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity
| 名稱 | Description | 價值觀 |
|---|---|---|
| identityType | 值可以是 SystemAssigned 或 UserAssigned | 'SystemAssigned' 'UserAssigned' |
| userAssignedIdentityResourceId | 使用者指派的身分識別可用來存取金鑰加密金鑰 URL。 例如:/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<資源群組>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId。 與 identityType systemAssignedIdentity 互斥。 | 字串 |
加密屬性
| 名稱 | Description | 價值觀 |
|---|---|---|
| customerManagedKeyEncryption | 資源的所有客戶自控金鑰加密屬性。 | CustomerManagedKeyEncryptionProperties |
FluidRelayServer屬性
| 名稱 | Description | 價值觀 |
|---|---|---|
| 加密 | 資源的所有加密組態。 | EncryptionProperties |
| 私鑰訪問 | 指出使用私密金鑰的伺服器目前存取狀態。 | 'Disabled' 'Enabled' |
| provisioningState | 為 FluidRelay RP 布建狀態 | “已取消” “失敗” 'Succeeded' |
| 公共網路存取 | 指出是否已啟用公用網路存取。 | 'Disabled' 'Enabled' |
| sharedKeyAccess | 指出使用共用金鑰的伺服器目前存取狀態。 | 'Disabled' 'Enabled' |
| 存儲SKU | 與資源相關聯的記憶體 SKU | '基本' '標準' |
身份
| 名稱 | Description | 價值觀 |
|---|---|---|
| 型別 | 識別類型。 | 'None' 'SystemAssigned' 'SystemAssigned, UserAssigned' 'UserAssigned' |
| userAssignedIdentities | 與資源相關聯的使用者身分識別清單。 | IdentityUserAssignedIdentities |
IdentityUserAssignedIdentities
| 名稱 | Description | 價值觀 |
|---|
TrackedResourceTags
| 名稱 | Description | 價值觀 |
|---|
UserAssignedIdentitiesValue
| 名稱 | Description | 價值觀 |
|---|
Terraform (AzAPI 提供者) 資源定義
fluidRelayServers 資源類型可以使用目標作業來部署:
- 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
使用範例
Terraform 範例
部署 Fluid Relay Server 的基本範例。
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "fluidRelayServer" {
type = "Microsoft.FluidRelay/fluidRelayServers@2022-05-26"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
}
tags = {
foo = "bar"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
資源格式
若要建立 Microsoft.FluidRelay/fluidRelayServers 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.FluidRelay/fluidRelayServers@2025-06-20-preview"
name = "string"
parent_id = "string"
identity {
type = "string"
identity_ids = [
"string"
]
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
encryption = {
customerManagedKeyEncryption = {
keyEncryptionKeyIdentity = {
identityType = "string"
userAssignedIdentityResourceId = "string"
}
keyEncryptionKeyUrl = "string"
}
}
privateKeyAccess = "string"
provisioningState = "string"
publicNetworkAccess = "string"
sharedKeyAccess = "string"
storagesku = "string"
}
}
}
屬性值
Microsoft.FluidRelay/fluidRelayServers
| 名稱 | Description | 價值觀 |
|---|---|---|
| 身分識別 | 用於資源的身分識別類型。 | 身分識別 |
| 位置 | 資源所在的地理位置 | 字串(必填) |
| 名稱 | 資源名稱 | 字串(必填) |
| properties | 此資源的資源特定屬性。 | FluidRelayServer屬性 |
| tags | 資源標籤 | 標記名稱和值的字典。 |
| 型別 | 資源類型 | “Microsoft.FluidRelay/fluidRelayServers@2025-06-20-preview” |
CustomerManagedKeyEncryptionProperties
| 名稱 | Description | 價值觀 |
|---|---|---|
| keyEncryptionKeyIdentity | 客戶管理金鑰設定的所有身分識別設定,定義應該使用哪個身分識別來驗證金鑰保存庫。 | CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity |
| 金鑰加密金鑰網址 | 金鑰加密金鑰 URL,包含或不含版本。 例如:https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 或 https://contosovault.vault.azure.net/keys/contosokek。 金鑰自動輪替是藉由提供沒有版本的金鑰 URI 來啟用。 否則,客戶須負責輪替密鑰。 keyEncryptionKeyIdentity(SystemAssigned 或 UserAssigned) 應該具有存取此密鑰 URL 的許可權。 |
字串 |
CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity
| 名稱 | Description | 價值觀 |
|---|---|---|
| identityType | 值可以是 SystemAssigned 或 UserAssigned | 'SystemAssigned' 'UserAssigned' |
| userAssignedIdentityResourceId | 使用者指派的身分識別可用來存取金鑰加密金鑰 URL。 例如:/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<資源群組>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId。 與 identityType systemAssignedIdentity 互斥。 | 字串 |
加密屬性
| 名稱 | Description | 價值觀 |
|---|---|---|
| customerManagedKeyEncryption | 資源的所有客戶自控金鑰加密屬性。 | CustomerManagedKeyEncryptionProperties |
FluidRelayServer屬性
| 名稱 | Description | 價值觀 |
|---|---|---|
| 加密 | 資源的所有加密組態。 | EncryptionProperties |
| 私鑰訪問 | 指出使用私密金鑰的伺服器目前存取狀態。 | 'Disabled' 'Enabled' |
| provisioningState | 為 FluidRelay RP 布建狀態 | “已取消” “失敗” 'Succeeded' |
| 公共網路存取 | 指出是否已啟用公用網路存取。 | 'Disabled' 'Enabled' |
| sharedKeyAccess | 指出使用共用金鑰的伺服器目前存取狀態。 | 'Disabled' 'Enabled' |
| 存儲SKU | 與資源相關聯的記憶體 SKU | '基本' '標準' |
身份
| 名稱 | Description | 價值觀 |
|---|---|---|
| 型別 | 識別類型。 | 'None' 'SystemAssigned' 'SystemAssigned, UserAssigned' 'UserAssigned' |
| userAssignedIdentities | 與資源相關聯的使用者身分識別清單。 | IdentityUserAssignedIdentities |
IdentityUserAssignedIdentities
| 名稱 | Description | 價值觀 |
|---|
TrackedResourceTags
| 名稱 | Description | 價值觀 |
|---|
UserAssignedIdentitiesValue
| 名稱 | Description | 價值觀 |
|---|