Not
Bu sayfaya erişim yetkilendirme gerektiriyor. Oturum açmayı veya dizinleri değiştirmeyi deneyebilirsiniz.
Bu sayfaya erişim yetkilendirme gerektiriyor. Dizinleri değiştirmeyi deneyebilirsiniz.
Bicep kaynak tanımı
botServices kaynak türü, aşağıdakileri hedefleyen işlemlerle dağıtılabilir:
- kaynak grupları
- Bkz. kaynak grubu dağıtım komutları
Her API sürümünde değiştirilen özelliklerin listesi için bkz. değişiklik günlüğü.
Kullanım Örnekleri
Bicep Örnekleri
Azure Bot Hizmeti'ni dağıtmanın temel bir örneği.
param resourceName string = 'acctest0001'
param location string = 'westeurope'
param clientId string
resource botService 'Microsoft.BotService/botServices@2021-05-01-preview' = {
name: resourceName
location: 'global'
sku: {
name: 'F0'
}
kind: 'sdk'
properties: {
developerAppInsightKey: ''
developerAppInsightsApiKey: ''
developerAppInsightsApplicationId: ''
displayName: resourceName
endpoint: ''
luisAppIds: []
luisKey: ''
msaAppId: clientId
}
tags: {
environment: 'production'
}
}
Kaynak biçimi
Microsoft.BotService/botServices kaynağı oluşturmak için şablonunuza aşağıdaki Bicep'i ekleyin.
resource symbolicname 'Microsoft.BotService/botServices@2023-09-15-preview' = {
etag: 'string'
kind: 'string'
location: 'string'
name: 'string'
properties: {
allSettings: {
{customized property}: 'string'
}
appPasswordHint: 'string'
cmekKeyVaultUrl: 'string'
description: 'string'
developerAppInsightKey: 'string'
developerAppInsightsApiKey: 'string'
developerAppInsightsApplicationId: 'string'
disableLocalAuth: bool
displayName: 'string'
endpoint: 'string'
iconUrl: 'string'
isCmekEnabled: bool
isStreamingSupported: bool
luisAppIds: [
'string'
]
luisKey: 'string'
manifestUrl: 'string'
msaAppId: 'string'
msaAppMSIResourceId: 'string'
msaAppTenantId: 'string'
msaAppType: 'string'
openWithHint: 'string'
parameters: {
{customized property}: 'string'
}
publicNetworkAccess: 'string'
publishingCredentials: 'string'
schemaTransformationVersion: 'string'
storageResourceId: 'string'
tenantId: 'string'
}
sku: {
name: 'string'
}
tags: {
{customized property}: 'string'
}
}
Özellik Değerleri
Microsoft.BotService/botServices
| Name | Description | Value |
|---|---|---|
| etag | Varlık Etiketi. | string |
| kind | Required. Kaynağın Türünü alır veya ayarlar. | 'azurebot' 'bot' 'designer' 'function' 'sdk' |
| location | Kaynağın konumunu belirtir. | string |
| name | Kaynak adı | string Constraints: En az uzunluk = 2 Maksimum uzunluk = 64 Desen = ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ (gerekli) |
| properties | Bot kaynağına özgü özellikler kümesi | BotProperties |
| sku | Kaynağın SKU'sunu alır veya ayarlar. | Sku |
| tags | Kaynak etiketleri | Etiket adları ve değerleri sözlüğü. Bkz. şablonlardaki Etiketleri |
BotProperties
| Name | Description | Value |
|---|---|---|
| allSettings | Anahtar/değer çiftleri olarak tanımlanan tüm kaynakları içerir. | BotPropertiesAllSettings |
| appPasswordHint | Uygulama gizli dizisinin nasıl getirilmeye yönelik ipucu (örn. keyVault secret resourceId) | string |
| cmekKeyVaultUrl | CMK Url'si | string |
| description | Botun açıklaması | string |
| developerAppInsightKey | Application Insights anahtarı | string |
| developerAppInsightsApiKey | Application Insights Api Anahtarı | string |
| developerAppInsightsApplicationId | Application Insights Uygulama Kimliği | string |
| disableLocalAuth | Yerel kimlik doğrulamasını geri çevirme ve yalnızca MSI ve AAD'nin yalnızca kimlik doğrulaması için kullanılabildiğinden emin olun. | bool |
| displayName | Botun adı | dize (gerekli) |
| endpoint | Bot'un uç noktası | dize (gerekli) |
| iconUrl | Botun Simge Url'si | string |
| isCmekEnabled | Cmek'in etkinleştirilip etkinleştirilmediği | bool |
| isStreamingSupported | Bot akışının desteklenip desteklenmediği | bool |
| luisAppIds | LUIS Uygulama Kimlikleri Koleksiyonu | string[] |
| luisKey | LUIS Anahtarı | string |
| manifestUrl | Bot bildirim url'si | string |
| msaAppId | Bot için Microsoft Uygulama Kimliği | dize (gerekli) |
| msaAppMSIResourceId | Bot için Microsoft Uygulama Yönetilen Kimlik Kaynak Kimliği | string |
| msaAppTenantId | Bot için Microsoft Uygulama Kiracı Kimliği | string |
| msaAppType | Bot için Microsoft Uygulama Türü | 'MultiTenant' 'SingleTenant' 'UserAssignedMSI' |
| openWithHint | Botu yazma için açma hakkında tarayıcıya ipucu (örneğin protokol işleyicisi) | string |
| parameters | Anahtar/değer çiftleri olarak tanımlanan kaynak parametrelerini içerir. | BotPropertiesParameters |
| publicNetworkAccess | Botunun yalıtılmış bir ağda olup olmadığı | 'Disabled' 'Enabled' 'SecuredByPerimeter' |
| publishingCredentials | Kaynağın kimlik bilgilerini yayımlama | string |
| schemaTransformationVersion | Bot için kanal şeması dönüştürme sürümü | string |
| storageResourceId | Bot için storage resourceId | string |
| tenantId | Bot için Kiracı Kimliği | string |
BotPropertiesAllSettings
| Name | Description | Value |
|---|
BotPropertiesParameters
| Name | Description | Value |
|---|
Bot Etiketleri
| Name | Description | Value |
|---|
Sku
| Name | Description | Value |
|---|---|---|
| name | Sku adı | 'F0' 'S1' (gerekli) |
ARM şablonu kaynak tanımı
botServices kaynak türü, aşağıdakileri hedefleyen işlemlerle dağıtılabilir:
- Kaynak grupları - Kaynak grubu dağıtım komutlarına bakınız Her API sürümünde değişen özelliklerin listesi için değişiklik günlüğüne bakınız.
Kullanım Örnekleri
Kaynak biçimi
Microsoft.BotService/botServices kaynağı oluşturmak için şablonunuza aşağıdaki JSON dosyasını ekleyin.
{
"type": "Microsoft.BotService/botServices",
"apiVersion": "2023-09-15-preview",
"name": "string",
"etag": "string",
"kind": "string",
"location": "string",
"properties": {
"allSettings": {
"{customized property}": "string"
},
"appPasswordHint": "string",
"cmekKeyVaultUrl": "string",
"description": "string",
"developerAppInsightKey": "string",
"developerAppInsightsApiKey": "string",
"developerAppInsightsApplicationId": "string",
"disableLocalAuth": "bool",
"displayName": "string",
"endpoint": "string",
"iconUrl": "string",
"isCmekEnabled": "bool",
"isStreamingSupported": "bool",
"luisAppIds": [ "string" ],
"luisKey": "string",
"manifestUrl": "string",
"msaAppId": "string",
"msaAppMSIResourceId": "string",
"msaAppTenantId": "string",
"msaAppType": "string",
"openWithHint": "string",
"parameters": {
"{customized property}": "string"
},
"publicNetworkAccess": "string",
"publishingCredentials": "string",
"schemaTransformationVersion": "string",
"storageResourceId": "string",
"tenantId": "string"
},
"sku": {
"name": "string"
},
"tags": {
"{customized property}": "string"
}
}
Özellik Değerleri
Microsoft.BotService/botServices
| Name | Description | Value |
|---|---|---|
| apiVersion | API sürümü | '2023-09-15-preview' |
| etag | Varlık Etiketi. | string |
| kind | Required. Kaynağın Türünü alır veya ayarlar. | 'azurebot' 'bot' 'designer' 'function' 'sdk' |
| location | Kaynağın konumunu belirtir. | string |
| name | Kaynak adı | string Constraints: En az uzunluk = 2 Maksimum uzunluk = 64 Desen = ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ (gerekli) |
| properties | Bot kaynağına özgü özellikler kümesi | BotProperties |
| sku | Kaynağın SKU'sunu alır veya ayarlar. | Sku |
| tags | Kaynak etiketleri | Etiket adları ve değerleri sözlüğü. Bkz. şablonlardaki Etiketleri |
| type | Kaynak türü | 'Microsoft.BotService/botServices' |
BotProperties
| Name | Description | Value |
|---|---|---|
| allSettings | Anahtar/değer çiftleri olarak tanımlanan tüm kaynakları içerir. | BotPropertiesAllSettings |
| appPasswordHint | Uygulama gizli dizisinin nasıl getirilmeye yönelik ipucu (örn. keyVault secret resourceId) | string |
| cmekKeyVaultUrl | CMK Url'si | string |
| description | Botun açıklaması | string |
| developerAppInsightKey | Application Insights anahtarı | string |
| developerAppInsightsApiKey | Application Insights Api Anahtarı | string |
| developerAppInsightsApplicationId | Application Insights Uygulama Kimliği | string |
| disableLocalAuth | Yerel kimlik doğrulamasını geri çevirme ve yalnızca MSI ve AAD'nin yalnızca kimlik doğrulaması için kullanılabildiğinden emin olun. | bool |
| displayName | Botun adı | dize (gerekli) |
| endpoint | Bot'un uç noktası | dize (gerekli) |
| iconUrl | Botun Simge Url'si | string |
| isCmekEnabled | Cmek'in etkinleştirilip etkinleştirilmediği | bool |
| isStreamingSupported | Bot akışının desteklenip desteklenmediği | bool |
| luisAppIds | LUIS Uygulama Kimlikleri Koleksiyonu | string[] |
| luisKey | LUIS Anahtarı | string |
| manifestUrl | Bot bildirim url'si | string |
| msaAppId | Bot için Microsoft Uygulama Kimliği | dize (gerekli) |
| msaAppMSIResourceId | Bot için Microsoft Uygulama Yönetilen Kimlik Kaynak Kimliği | string |
| msaAppTenantId | Bot için Microsoft Uygulama Kiracı Kimliği | string |
| msaAppType | Bot için Microsoft Uygulama Türü | 'MultiTenant' 'SingleTenant' 'UserAssignedMSI' |
| openWithHint | Botu yazma için açma hakkında tarayıcıya ipucu (örneğin protokol işleyicisi) | string |
| parameters | Anahtar/değer çiftleri olarak tanımlanan kaynak parametrelerini içerir. | BotPropertiesParameters |
| publicNetworkAccess | Botunun yalıtılmış bir ağda olup olmadığı | 'Disabled' 'Enabled' 'SecuredByPerimeter' |
| publishingCredentials | Kaynağın kimlik bilgilerini yayımlama | string |
| schemaTransformationVersion | Bot için kanal şeması dönüştürme sürümü | string |
| storageResourceId | Bot için storage resourceId | string |
| tenantId | Bot için Kiracı Kimliği | string |
BotPropertiesAllSettings
| Name | Description | Value |
|---|
BotPropertiesParameters
| Name | Description | Value |
|---|
Bot Etiketleri
| Name | Description | Value |
|---|
Sku
| Name | Description | Value |
|---|---|---|
| name | Sku adı | 'F0' 'S1' (gerekli) |
Terraform (AzAPI sağlayıcısı) kaynak tanımı
botServices kaynak türü, aşağıdakileri hedefleyen işlemlerle dağıtılabilir:
- Kaynak grupları Her API sürümünde değişen özelliklerin listesi için bkz. Değişiklik günlüğü.
Kullanım Örnekleri
Terraform Örnekleri
Azure Bot Hizmeti'ni dağıtmanın temel bir örneği.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
azurerm = {
source = "hashicorp/azurerm"
}
}
}
provider "azurerm" {
features {
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
data "azurerm_client_config" "current" {
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "botService" {
type = "Microsoft.BotService/botServices@2021-05-01-preview"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = "global"
body = {
kind = "sdk"
properties = {
developerAppInsightKey = ""
developerAppInsightsApiKey = ""
developerAppInsightsApplicationId = ""
displayName = var.resource_name
endpoint = ""
luisAppIds = [
]
luisKey = ""
msaAppId = data.azurerm_client_config.current.client_id
}
sku = {
name = "F0"
}
tags = {
environment = "production"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
Azure Doğrulanmış Modülleri
Aşağıdaki Azure Doğrulanmış Modüller bu kaynak türünü dağıtmak için kullanılabilir.
| Module | Description |
|---|---|
| Bot Hizmeti | AVM Resource Module for Bot Hizmeti |
Kaynak biçimi
Microsoft.BotService/botServices kaynağı oluşturmak için şablonunuza aşağıdaki Terraform'u ekleyin.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.BotService/botServices@2023-09-15-preview"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
etag = "string"
kind = "string"
properties = {
allSettings = {
{customized property} = "string"
}
appPasswordHint = "string"
cmekKeyVaultUrl = "string"
description = "string"
developerAppInsightKey = "string"
developerAppInsightsApiKey = "string"
developerAppInsightsApplicationId = "string"
disableLocalAuth = bool
displayName = "string"
endpoint = "string"
iconUrl = "string"
isCmekEnabled = bool
isStreamingSupported = bool
luisAppIds = [
"string"
]
luisKey = "string"
manifestUrl = "string"
msaAppId = "string"
msaAppMSIResourceId = "string"
msaAppTenantId = "string"
msaAppType = "string"
openWithHint = "string"
parameters = {
{customized property} = "string"
}
publicNetworkAccess = "string"
publishingCredentials = "string"
schemaTransformationVersion = "string"
storageResourceId = "string"
tenantId = "string"
}
sku = {
name = "string"
}
}
}
Özellik Değerleri
Microsoft.BotService/botServices
| Name | Description | Value |
|---|---|---|
| etag | Varlık Etiketi. | string |
| kind | Required. Kaynağın Türünü alır veya ayarlar. | 'azurebot' 'bot' 'designer' 'function' 'sdk' |
| location | Kaynağın konumunu belirtir. | string |
| name | Kaynak adı | string Constraints: En az uzunluk = 2 Maksimum uzunluk = 64 Desen = ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ (gerekli) |
| properties | Bot kaynağına özgü özellikler kümesi | BotProperties |
| sku | Kaynağın SKU'sunu alır veya ayarlar. | Sku |
| tags | Kaynak etiketleri | Etiket adları ve değerleri sözlüğü. |
| type | Kaynak türü | "Microsoft.BotService/botServices@2023-09-15-preview" |
BotProperties
| Name | Description | Value |
|---|---|---|
| allSettings | Anahtar/değer çiftleri olarak tanımlanan tüm kaynakları içerir. | BotPropertiesAllSettings |
| appPasswordHint | Uygulama gizli dizisinin nasıl getirilmeye yönelik ipucu (örn. keyVault secret resourceId) | string |
| cmekKeyVaultUrl | CMK Url'si | string |
| description | Botun açıklaması | string |
| developerAppInsightKey | Application Insights anahtarı | string |
| developerAppInsightsApiKey | Application Insights Api Anahtarı | string |
| developerAppInsightsApplicationId | Application Insights Uygulama Kimliği | string |
| disableLocalAuth | Yerel kimlik doğrulamasını geri çevirme ve yalnızca MSI ve AAD'nin yalnızca kimlik doğrulaması için kullanılabildiğinden emin olun. | bool |
| displayName | Botun adı | dize (gerekli) |
| endpoint | Bot'un uç noktası | dize (gerekli) |
| iconUrl | Botun Simge Url'si | string |
| isCmekEnabled | Cmek'in etkinleştirilip etkinleştirilmediği | bool |
| isStreamingSupported | Bot akışının desteklenip desteklenmediği | bool |
| luisAppIds | LUIS Uygulama Kimlikleri Koleksiyonu | string[] |
| luisKey | LUIS Anahtarı | string |
| manifestUrl | Bot bildirim url'si | string |
| msaAppId | Bot için Microsoft Uygulama Kimliği | dize (gerekli) |
| msaAppMSIResourceId | Bot için Microsoft Uygulama Yönetilen Kimlik Kaynak Kimliği | string |
| msaAppTenantId | Bot için Microsoft Uygulama Kiracı Kimliği | string |
| msaAppType | Bot için Microsoft Uygulama Türü | 'MultiTenant' 'SingleTenant' 'UserAssignedMSI' |
| openWithHint | Botu yazma için açma hakkında tarayıcıya ipucu (örneğin protokol işleyicisi) | string |
| parameters | Anahtar/değer çiftleri olarak tanımlanan kaynak parametrelerini içerir. | BotPropertiesParameters |
| publicNetworkAccess | Botunun yalıtılmış bir ağda olup olmadığı | 'Disabled' 'Enabled' 'SecuredByPerimeter' |
| publishingCredentials | Kaynağın kimlik bilgilerini yayımlama | string |
| schemaTransformationVersion | Bot için kanal şeması dönüştürme sürümü | string |
| storageResourceId | Bot için storage resourceId | string |
| tenantId | Bot için Kiracı Kimliği | string |
BotPropertiesAllSettings
| Name | Description | Value |
|---|
BotPropertiesParameters
| Name | Description | Value |
|---|
Bot Etiketleri
| Name | Description | Value |
|---|
Sku
| Name | Description | Value |
|---|---|---|
| name | Sku adı | 'F0' 'S1' (gerekli) |