Bicepリソースの定義
raiPolicy リソースの種類は、以下を対象とする操作でデプロイできます。
- サブスクリプションの - サブスクリプションのデプロイ コマンド 参照
各 API バージョンで変更されたプロパティの一覧については、変更ログの
リソースの形式
Microsoftを作るために。CognitiveServices/raiPolicy リソースで、テンプレートに以下のBicepを追加してください。
resource symbolicname 'Microsoft.CognitiveServices/raiPolicy@2025-12-01' = {
name: 'string'
properties: {
basePolicyName: 'string'
contentFilters: [
{
action: 'string'
blocking: bool
enabled: bool
name: 'string'
severityThreshold: 'string'
source: 'string'
}
]
customBlocklists: [
{
blocking: bool
blocklistName: 'string'
source: 'string'
}
]
mode: 'string'
safetyProviders: [
{
blocking: bool
safetyProviderName: 'string'
source: 'string'
}
]
}
tags: {
{customized property}: 'string'
}
}
プロパティ値
Microsoft。認知サービス/raiPolicy
| 名前 | 説明 | 価値 |
|---|---|---|
| 名前 | リソース名 | string 制約: パターン = ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ (必須) |
| プロパティ | Cognitive Services RaiPolicy のプロパティ。 | RaiPolicyプロパティ |
| タグ | リソース タグ | タグ名と値のディクショナリ。 テンプレートTags> |
CustomBlocklistConfig の
| 名前 | 説明 | 価値 |
|---|---|---|
| ブロッキング | ブロックが発生した場合。 | ブール (bool) |
| ブロックリスト名 | ContentFilter の名前。 | 文字列 |
| ソース | コンテンツ フィルターを適用するコンテンツ ソース。 | 「コンプリート」 「ポストラン」 「PostToolCall」 「プレラン」 'PreToolCall' 「プロンプト」 |
RaiPolicyContentFilter
| 名前 | 説明 | 価値 |
|---|---|---|
| アクション | コンテンツ フィルターに適用するアクション タイプ | 「注釈」 「ブロッキング」 「ヒトル」 「なし」 「再試行」 |
| ブロッキング | ブロックが発生した場合。 | ブール (bool) |
| enabled | ContentFilter が有効になっている場合。 | ブール (bool) |
| 名前 | ContentFilter の名前。 | 文字列 |
| 重大度しきい値 | コンテンツがフィルター処理されるレベル。 | 「高い」 「低い」 'Medium' |
| ソース | コンテンツ フィルターを適用するコンテンツ ソース。 | 「コンプリート」 「ポストラン」 「PostToolCall」 「プレラン」 'PreToolCall' 「プロンプト」 |
RaiPolicyプロパティ
| 名前 | 説明 | 価値 |
|---|---|---|
| ベースポリシー名 | Rai ポリシーの名前。 | 文字列 |
| コンテンツフィルター | コンテンツ フィルターの一覧。 | RaiPolicyContentFilter[] |
| カスタムブロックリスト | カスタム ブロックリストの一覧。 | CustomBlocklistConfig[] |
| mode | Rai ポリシー モード。 列挙値のマッピングは次のとおりです。既定値は 0、Deferred=1、Blocking=2、Asynchronous_filter =3 です。 2025-06-01以降は「Asynchronous_filter」をご利用ください。 これは、以前のバージョンの 'Deferred' と同じです。 | 「Asynchronous_filter」 'Blocking' デフォルト 「延期」 |
| 安全プロバイダー | 安全プロバイダーのリスト。 | SafetyProviderConfig[] |
RaiPolicyタグ
| 名前 | 説明 | 価値 |
|---|
SafetyProviderConfig
| 名前 | 説明 | 価値 |
|---|---|---|
| ブロッキング | ブロックが発生した場合。 | ブール (bool) |
| 安全プロバイダー名 | RAI 安全プロバイダーの名前。 | 文字列 |
| ソース | コンテンツ フィルターを適用するコンテンツ ソース。 | 「コンプリート」 「ポストラン」 「PostToolCall」 「プレラン」 'PreToolCall' 「プロンプト」 |
ARM テンプレート リソース定義
raiPolicy リソースの種類は、以下を対象とする操作でデプロイできます。
- サブスクリプション - サブスクリプション展開コマンドを参照してください。 各APIバージョンの変更プロパティ一覧については、 変更ログをご覧ください。
使用例
リソースの形式
Microsoftを作るために。CognitiveServices/raiPolicy リソースで、テンプレートに以下のJSONを追加してください。
{
"type": "Microsoft.CognitiveServices/raiPolicy",
"apiVersion": "2025-12-01",
"name": "string",
"properties": {
"basePolicyName": "string",
"contentFilters": [
{
"action": "string",
"blocking": "bool",
"enabled": "bool",
"name": "string",
"severityThreshold": "string",
"source": "string"
}
],
"customBlocklists": [
{
"blocking": "bool",
"blocklistName": "string",
"source": "string"
}
],
"mode": "string",
"safetyProviders": [
{
"blocking": "bool",
"safetyProviderName": "string",
"source": "string"
}
]
},
"tags": {
"{customized property}": "string"
}
}
プロパティ値
Microsoft。認知サービス/raiPolicy
| 名前 | 説明 | 価値 |
|---|---|---|
| apiVersion | API のバージョン | '2025-12-01' |
| 名前 | リソース名 | string 制約: パターン = ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ (必須) |
| プロパティ | Cognitive Services RaiPolicy のプロパティ。 | RaiPolicyプロパティ |
| タグ | リソース タグ | タグ名と値のディクショナリ。 テンプレートTags> |
| 型 | リソースの種類 | 「Microsoft。認知サービス/raiPolicy」 |
CustomBlocklistConfig の
| 名前 | 説明 | 価値 |
|---|---|---|
| ブロッキング | ブロックが発生した場合。 | ブール (bool) |
| ブロックリスト名 | ContentFilter の名前。 | 文字列 |
| ソース | コンテンツ フィルターを適用するコンテンツ ソース。 | 「コンプリート」 「ポストラン」 「PostToolCall」 「プレラン」 'PreToolCall' 「プロンプト」 |
RaiPolicyContentFilter
| 名前 | 説明 | 価値 |
|---|---|---|
| アクション | コンテンツ フィルターに適用するアクション タイプ | 「注釈」 「ブロッキング」 「ヒトル」 「なし」 「再試行」 |
| ブロッキング | ブロックが発生した場合。 | ブール (bool) |
| enabled | ContentFilter が有効になっている場合。 | ブール (bool) |
| 名前 | ContentFilter の名前。 | 文字列 |
| 重大度しきい値 | コンテンツがフィルター処理されるレベル。 | 「高い」 「低い」 'Medium' |
| ソース | コンテンツ フィルターを適用するコンテンツ ソース。 | 「コンプリート」 「ポストラン」 「PostToolCall」 「プレラン」 'PreToolCall' 「プロンプト」 |
RaiPolicyプロパティ
| 名前 | 説明 | 価値 |
|---|---|---|
| ベースポリシー名 | Rai ポリシーの名前。 | 文字列 |
| コンテンツフィルター | コンテンツ フィルターの一覧。 | RaiPolicyContentFilter[] |
| カスタムブロックリスト | カスタム ブロックリストの一覧。 | CustomBlocklistConfig[] |
| mode | Rai ポリシー モード。 列挙値のマッピングは次のとおりです。既定値は 0、Deferred=1、Blocking=2、Asynchronous_filter =3 です。 2025-06-01以降は「Asynchronous_filter」をご利用ください。 これは、以前のバージョンの 'Deferred' と同じです。 | 「Asynchronous_filter」 'Blocking' デフォルト 「延期」 |
| 安全プロバイダー | 安全プロバイダーのリスト。 | SafetyProviderConfig[] |
RaiPolicyタグ
| 名前 | 説明 | 価値 |
|---|
SafetyProviderConfig
| 名前 | 説明 | 価値 |
|---|---|---|
| ブロッキング | ブロックが発生した場合。 | ブール (bool) |
| 安全プロバイダー名 | RAI 安全プロバイダーの名前。 | 文字列 |
| ソース | コンテンツ フィルターを適用するコンテンツ ソース。 | 「コンプリート」 「ポストラン」 「PostToolCall」 「プレラン」 'PreToolCall' 「プロンプト」 |
Terraform (AzAPI プロバイダー) リソース定義
raiPolicy リソースの種類は、以下を対象とする操作でデプロイできます。
- 購読 各APIバージョンの変更プロパティ一覧については、 変更ログをご覧ください。
リソースの形式
Microsoftを作るために。CognitiveServices/raiPolicy リソースで、テンプレートに以下のTerraformを追加してください。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.CognitiveServices/raiPolicy@2025-12-01"
name = "string"
parent_id = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
basePolicyName = "string"
contentFilters = [
{
action = "string"
blocking = bool
enabled = bool
name = "string"
severityThreshold = "string"
source = "string"
}
]
customBlocklists = [
{
blocking = bool
blocklistName = "string"
source = "string"
}
]
mode = "string"
safetyProviders = [
{
blocking = bool
safetyProviderName = "string"
source = "string"
}
]
}
}
}
プロパティ値
Microsoft。認知サービス/raiPolicy
| 名前 | 説明 | 価値 |
|---|---|---|
| 名前 | リソース名 | string 制約: パターン = ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ (必須) |
| プロパティ | Cognitive Services RaiPolicy のプロパティ。 | RaiPolicyプロパティ |
| タグ | リソース タグ | タグ名と値のディクショナリ。 |
| 型 | リソースの種類 | 「Microsoft。認知サービス/raiPolicy@2025-12-01" |
CustomBlocklistConfig の
| 名前 | 説明 | 価値 |
|---|---|---|
| ブロッキング | ブロックが発生した場合。 | ブール (bool) |
| ブロックリスト名 | ContentFilter の名前。 | 文字列 |
| ソース | コンテンツ フィルターを適用するコンテンツ ソース。 | 「コンプリート」 「ポストラン」 「PostToolCall」 「プレラン」 'PreToolCall' 「プロンプト」 |
RaiPolicyContentFilter
| 名前 | 説明 | 価値 |
|---|---|---|
| アクション | コンテンツ フィルターに適用するアクション タイプ | 「注釈」 「ブロッキング」 「ヒトル」 「なし」 「再試行」 |
| ブロッキング | ブロックが発生した場合。 | ブール (bool) |
| enabled | ContentFilter が有効になっている場合。 | ブール (bool) |
| 名前 | ContentFilter の名前。 | 文字列 |
| 重大度しきい値 | コンテンツがフィルター処理されるレベル。 | 「高い」 「低い」 'Medium' |
| ソース | コンテンツ フィルターを適用するコンテンツ ソース。 | 「コンプリート」 「ポストラン」 「PostToolCall」 「プレラン」 'PreToolCall' 「プロンプト」 |
RaiPolicyプロパティ
| 名前 | 説明 | 価値 |
|---|---|---|
| ベースポリシー名 | Rai ポリシーの名前。 | 文字列 |
| コンテンツフィルター | コンテンツ フィルターの一覧。 | RaiPolicyContentFilter[] |
| カスタムブロックリスト | カスタム ブロックリストの一覧。 | CustomBlocklistConfig[] |
| mode | Rai ポリシー モード。 列挙値のマッピングは次のとおりです。既定値は 0、Deferred=1、Blocking=2、Asynchronous_filter =3 です。 2025-06-01以降は「Asynchronous_filter」をご利用ください。 これは、以前のバージョンの 'Deferred' と同じです。 | 「Asynchronous_filter」 'Blocking' デフォルト 「延期」 |
| 安全プロバイダー | 安全プロバイダーのリスト。 | SafetyProviderConfig[] |
RaiPolicyタグ
| 名前 | 説明 | 価値 |
|---|
SafetyProviderConfig
| 名前 | 説明 | 価値 |
|---|---|---|
| ブロッキング | ブロックが発生した場合。 | ブール (bool) |
| 安全プロバイダー名 | RAI 安全プロバイダーの名前。 | 文字列 |
| ソース | コンテンツ フィルターを適用するコンテンツ ソース。 | 「コンプリート」 「ポストラン」 「PostToolCall」 「プレラン」 'PreToolCall' 「プロンプト」 |