Microsoft.DatabaseWatcher 監看員
Bicep 資源定義
監看員資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.DatabaseWatcher/watchers 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.DatabaseWatcher/watchers@2025-01-02' = {
identity: {
type: 'string'
userAssignedIdentities: {
{customized property}: {}
}
}
location: 'string'
name: 'string'
properties: {
datastore: {
adxClusterResourceId: 'string'
kustoClusterDisplayName: 'string'
kustoClusterUri: 'string'
kustoDatabaseName: 'string'
kustoDataIngestionUri: 'string'
kustoManagementUrl: 'string'
kustoOfferingType: 'string'
}
defaultAlertRuleIdentityResourceId: 'string'
}
tags: {
{customized property}: 'string'
}
}
屬性值
數據存放區
名字 | 描述 | 價值 |
---|---|---|
adxClusterResourceId | Azure 數據總管叢集的 Azure 資源識別符。 | 字串 |
kustoClusterDisplayName | Kusto 叢集顯示名稱。 | 字串 |
kustoClusterUri | Kusto 叢集 URI。 | 字串 (必要) |
kustoDatabaseName | Kusto 資料庫的名稱。 | 字串 (必要) |
kustoDataIngestionUri | Kusto 資料擷取 URI。 | 字串 (必要) |
kustoManagementUrl | Kusto 管理 URL。 | 字串 (必要) |
kustoOfferingType | Kusto 供應專案的型別。 | 'adx' 'fabric' 'free' (必要) |
ManagedServiceIdentity
名字 | 描述 | 價值 |
---|---|---|
類型 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | 'None' 'SystemAssigned' 'SystemAssigned, UserAssigned' 'UserAssigned' (必要) |
userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 | UserAssignedIdentities |
Microsoft.DatabaseWatcher/watchers
名字 | 描述 | 價值 |
---|---|---|
身份 | 指派給此資源的受控服務識別。 | ManagedServiceIdentity |
位置 | 資源所在的地理位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 約束: 模式 = ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{3,60}$ (必要) |
性能 | 此資源的資源特定屬性。 | WatcherProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
TrackedResourceTags
名字 | 描述 | 價值 |
---|
UserAssignedIdentities
名字 | 描述 | 價值 |
---|
UserAssignedIdentity
名字 | 描述 | 價值 |
---|
WatcherProperties
名字 | 描述 | 價值 |
---|---|---|
數據存放區 | 所收集監視數據的數據存放區。 | 數據存放區 |
defaultAlertRuleIdentityResourceId | 將指派給新警示規則之使用者指派受控識別的資源識別碼。 | 字串 |
快速入門範例
下列快速入門範例會部署此資源類型。
Bicep 檔案 | 描述 |
---|---|
建立資料庫監看員 | 此範例會建立 Azure SQL 的資料庫監看員,並設定其數據存放區、SQL 目標和受控私人端點 |
ARM 樣本資源定義
監看員資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.DatabaseWatcher/watchers 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.DatabaseWatcher/watchers",
"apiVersion": "2025-01-02",
"name": "string",
"identity": {
"type": "string",
"userAssignedIdentities": {
"{customized property}": {
}
}
},
"location": "string",
"properties": {
"datastore": {
"adxClusterResourceId": "string",
"kustoClusterDisplayName": "string",
"kustoClusterUri": "string",
"kustoDatabaseName": "string",
"kustoDataIngestionUri": "string",
"kustoManagementUrl": "string",
"kustoOfferingType": "string"
},
"defaultAlertRuleIdentityResourceId": "string"
},
"tags": {
"{customized property}": "string"
}
}
屬性值
數據存放區
名字 | 描述 | 價值 |
---|---|---|
adxClusterResourceId | Azure 數據總管叢集的 Azure 資源識別符。 | 字串 |
kustoClusterDisplayName | Kusto 叢集顯示名稱。 | 字串 |
kustoClusterUri | Kusto 叢集 URI。 | 字串 (必要) |
kustoDatabaseName | Kusto 資料庫的名稱。 | 字串 (必要) |
kustoDataIngestionUri | Kusto 資料擷取 URI。 | 字串 (必要) |
kustoManagementUrl | Kusto 管理 URL。 | 字串 (必要) |
kustoOfferingType | Kusto 供應專案的型別。 | 'adx' 'fabric' 'free' (必要) |
ManagedServiceIdentity
名字 | 描述 | 價值 |
---|---|---|
類型 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | 'None' 'SystemAssigned' 'SystemAssigned, UserAssigned' 'UserAssigned' (必要) |
userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 | UserAssignedIdentities |
Microsoft.DatabaseWatcher/watchers
名字 | 描述 | 價值 |
---|---|---|
apiVersion | API 版本 | '2025-01-02' |
身份 | 指派給此資源的受控服務識別。 | ManagedServiceIdentity |
位置 | 資源所在的地理位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 約束: 模式 = ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{3,60}$ (必要) |
性能 | 此資源的資源特定屬性。 | WatcherProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
類型 | 資源類型 | 'Microsoft.DatabaseWatcher/watchers' |
TrackedResourceTags
名字 | 描述 | 價值 |
---|
UserAssignedIdentities
名字 | 描述 | 價值 |
---|
UserAssignedIdentity
名字 | 描述 | 價值 |
---|
WatcherProperties
名字 | 描述 | 價值 |
---|---|---|
數據存放區 | 所收集監視數據的數據存放區。 | 數據存放區 |
defaultAlertRuleIdentityResourceId | 將指派給新警示規則之使用者指派受控識別的資源識別碼。 | 字串 |
快速入門範本
下列快速入門範本會部署此資源類型。
範本 | 描述 |
---|---|
建立資料庫監看員 |
此範例會建立 Azure SQL 的資料庫監看員,並設定其數據存放區、SQL 目標和受控私人端點 |
Terraform (AzAPI 提供者) 資源定義
監看員資源類型可以使用目標作業來部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.DatabaseWatcher/watchers 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.DatabaseWatcher/watchers@2025-01-02"
name = "string"
identity = {
type = "string"
userAssignedIdentities = {
{customized property} = {
}
}
}
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
datastore = {
adxClusterResourceId = "string"
kustoClusterDisplayName = "string"
kustoClusterUri = "string"
kustoDatabaseName = "string"
kustoDataIngestionUri = "string"
kustoManagementUrl = "string"
kustoOfferingType = "string"
}
defaultAlertRuleIdentityResourceId = "string"
}
})
}
屬性值
數據存放區
名字 | 描述 | 價值 |
---|---|---|
adxClusterResourceId | Azure 數據總管叢集的 Azure 資源識別符。 | 字串 |
kustoClusterDisplayName | Kusto 叢集顯示名稱。 | 字串 |
kustoClusterUri | Kusto 叢集 URI。 | 字串 (必要) |
kustoDatabaseName | Kusto 資料庫的名稱。 | 字串 (必要) |
kustoDataIngestionUri | Kusto 資料擷取 URI。 | 字串 (必要) |
kustoManagementUrl | Kusto 管理 URL。 | 字串 (必要) |
kustoOfferingType | Kusto 供應專案的型別。 | 'adx' 'fabric' 'free' (必要) |
ManagedServiceIdentity
名字 | 描述 | 價值 |
---|---|---|
類型 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | 'None' 'SystemAssigned' 'SystemAssigned, UserAssigned' 'UserAssigned' (必要) |
userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 | UserAssignedIdentities |
Microsoft.DatabaseWatcher/watchers
名字 | 描述 | 價值 |
---|---|---|
身份 | 指派給此資源的受控服務識別。 | ManagedServiceIdentity |
位置 | 資源所在的地理位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 約束: 模式 = ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{3,60}$ (必要) |
性能 | 此資源的資源特定屬性。 | WatcherProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 |
類型 | 資源類型 | “Microsoft.DatabaseWatcher/watchers@2025-01-02” |
TrackedResourceTags
名字 | 描述 | 價值 |
---|
UserAssignedIdentities
名字 | 描述 | 價值 |
---|
UserAssignedIdentity
名字 | 描述 | 價值 |
---|
WatcherProperties
名字 | 描述 | 價值 |
---|---|---|
數據存放區 | 所收集監視數據的數據存放區。 | 數據存放區 |
defaultAlertRuleIdentityResourceId | 將指派給新警示規則之使用者指派受控識別的資源識別碼。 | 字串 |