你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Bicep 资源定义
videoAnalyzers 资源类型可部署到:
有关每个 API 版本中更改的属性的列表,请参阅 更改日志。
创建Microsoft。Media/videoAnalyzers 资源,将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.Media/videoAnalyzers@2021-11-01-preview' = {
name: 'string'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
identity: {
type: 'string'
userAssignedIdentities: {}
}
properties: {
encryption: {
identity: {
userAssignedIdentity: 'string'
}
keyVaultProperties: {
keyIdentifier: 'string'
}
type: 'string'
}
iotHubs: [
{
id: 'string'
identity: {
userAssignedIdentity: 'string'
}
}
]
networkAccessControl: {
consumption: {
publicNetworkAccess: 'string'
}
ingestion: {
publicNetworkAccess: 'string'
}
integration: {
publicNetworkAccess: 'string'
}
}
publicNetworkAccess: 'string'
storageAccounts: [
{
id: 'string'
identity: {
userAssignedIdentity: 'string'
}
}
]
}
}
属性值
videoAnalyzers
VideoAnalyzerIdentity
名称 |
说明 |
Value |
type |
标识类型。 |
字符串 (必需) |
userAssignedIdentities |
用户分配的托管标识。 |
对象 |
VideoAnalyzerProperties
AccountEncryption
ResourceIdentity
名称 |
说明 |
值 |
userAssignedIdentity |
用户分配的托管标识的资源标识符在访问资源时使用。 |
字符串 (必需) |
KeyVaultProperties
名称 |
说明 |
值 |
keyIdentifier |
用于加密帐户的密钥保管库密钥的 URL。 密钥可以 (版本控制,例如 https://vault/keys/mykey/version1 ) 或引用没有版本 (的密钥,例如 https://vault/keys/mykey ) 。 |
字符串 (必需) |
IotHub
NetworkAccessControl
GroupLevelAccessControl
名称 |
说明 |
值 |
publicNetworkAccess |
视频分析器帐户下的指定资源是否允许公用网络访问。 |
'Disabled' 'Enabled' |
StorageAccount
名称 |
说明 |
Value |
id |
存储帐户资源的 ID。 视频分析器依赖于表、队列和 Blob。 主存储帐户必须是标准存储帐户, (Microsoft。ClassicStorage 或 Microsoft。存储) 。 |
字符串 (必需) |
identity |
视频分析器将用于访问存储帐户的托管标识。 |
ResourceIdentity |
ARM 模板资源定义
videoAnalyzers 资源类型可以部署到:
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
创建Microsoft。媒体/视频分析资源,将以下 JSON 添加到模板。
{
"type": "Microsoft.Media/videoAnalyzers",
"apiVersion": "2021-11-01-preview",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"identity": {
"type": "string",
"userAssignedIdentities": {}
},
"properties": {
"encryption": {
"identity": {
"userAssignedIdentity": "string"
},
"keyVaultProperties": {
"keyIdentifier": "string"
},
"type": "string"
},
"iotHubs": [
{
"id": "string",
"identity": {
"userAssignedIdentity": "string"
}
}
],
"networkAccessControl": {
"consumption": {
"publicNetworkAccess": "string"
},
"ingestion": {
"publicNetworkAccess": "string"
},
"integration": {
"publicNetworkAccess": "string"
}
},
"publicNetworkAccess": "string",
"storageAccounts": [
{
"id": "string",
"identity": {
"userAssignedIdentity": "string"
}
}
]
}
}
属性值
videoAnalyzers
名称 |
说明 |
Value |
type |
资源类型 |
'Microsoft.Media/videoAnalyzers' |
apiVersion |
资源 API 版本 |
'2021-11-01-preview' |
name |
资源名称 |
字符串 (必需) |
location |
资源所在的地理位置 |
字符串 (必需) |
标记 |
资源标记。 |
标记名称和值的字典。 请参阅 模板中的标记 |
identity |
与视频分析器资源关联的标识。 |
VideoAnalyzerIdentity |
properties |
资源属性。 |
VideoAnalyzerProperties |
VideoAnalyzerIdentity
名称 |
说明 |
Value |
type |
标识类型。 |
字符串 (必需) |
userAssignedIdentities |
用户分配的托管标识。 |
对象 |
VideoAnalyzerProperties
AccountEncryption
ResourceIdentity
名称 |
说明 |
值 |
userAssignedIdentity |
用户分配的托管标识的资源标识符在访问资源时使用。 |
字符串 (必需) |
KeyVaultProperties
名称 |
说明 |
值 |
keyIdentifier |
用于加密帐户的密钥保管库密钥的 URL。 密钥可以 (版本控制,例如 https://vault/keys/mykey/version1 ) 或引用没有版本 (的密钥,例如 https://vault/keys/mykey ) 。 |
字符串 (必需) |
IotHub
NetworkAccessControl
GroupLevelAccessControl
名称 |
说明 |
Value |
publicNetworkAccess |
是否允许视频分析器帐户下的指定资源访问公用网络。 |
“Disabled” “已启用” |
StorageAccount
名称 |
说明 |
Value |
id |
存储帐户资源的 ID。 视频分析器依赖于表、队列和 Blob。 主存储帐户必须是标准存储帐户, (Microsoft。ClassicStorage 或 Microsoft。存储) 。 |
字符串 (必需) |
identity |
视频分析器将用于访问存储帐户的托管标识。 |
ResourceIdentity |
videoAnalyzers 资源类型可部署到:
有关每个 API 版本中更改的属性的列表,请参阅 更改日志。
创建Microsoft。媒体/视频Analyzers 资源,将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Media/videoAnalyzers@2021-11-01-preview"
name = "string"
location = "string"
parent_id = "string"
tags = {
tagName1 = "tagValue1"
tagName2 = "tagValue2"
}
identity {
type = "string"
identity_ids = []
}
body = jsonencode({
properties = {
encryption = {
identity = {
userAssignedIdentity = "string"
}
keyVaultProperties = {
keyIdentifier = "string"
}
type = "string"
}
iotHubs = [
{
id = "string"
identity = {
userAssignedIdentity = "string"
}
}
]
networkAccessControl = {
consumption = {
publicNetworkAccess = "string"
}
ingestion = {
publicNetworkAccess = "string"
}
integration = {
publicNetworkAccess = "string"
}
}
publicNetworkAccess = "string"
storageAccounts = [
{
id = "string"
identity = {
userAssignedIdentity = "string"
}
}
]
}
})
}
属性值
videoAnalyzers
名称 |
说明 |
Value |
type |
资源类型 |
“Microsoft。Media/videoAnalyzers@2021-11-01-preview” |
name |
资源名称 |
字符串 (必需) |
location |
资源所在的地理位置 |
字符串 (必需) |
parent_id |
若要部署到资源组,请使用该资源组的 ID。 |
字符串 (必需) |
标记 |
资源标记。 |
标记名称和值的字典。 |
identity |
与视频分析器资源关联的标识。 |
VideoAnalyzerIdentity |
properties |
资源属性。 |
VideoAnalyzerProperties |
VideoAnalyzerIdentity
名称 |
说明 |
Value |
type |
标识类型。 |
字符串 (必需) |
identity_ids |
用户分配的托管标识。 |
用户标识 ID 数组。 |
VideoAnalyzerProperties
AccountEncryption
ResourceIdentity
名称 |
说明 |
值 |
userAssignedIdentity |
用户分配的托管标识的资源标识符在访问资源时使用。 |
字符串 (必需) |
KeyVaultProperties
名称 |
说明 |
Value |
keyIdentifier |
用于加密帐户的密钥保管库密钥的 URL。 密钥可以 (版本控制,例如 https://vault/keys/mykey/version1 ) 或引用没有版本 (的密钥,例如 https://vault/keys/mykey ) 。 |
字符串 (必需) |
IotHub
NetworkAccessControl
GroupLevelAccessControl
名称 |
说明 |
值 |
publicNetworkAccess |
是否允许视频分析器帐户下的指定资源访问公用网络。 |
“Disabled” “已启用” |
StorageAccount
名称 |
说明 |
Value |
id |
存储帐户资源的 ID。 视频分析器依赖于表、队列和 Blob。 主存储帐户必须是标准存储帐户, (Microsoft。ClassicStorage 或 Microsoft。存储) 。 |
字符串 (必需) |
identity |
视频分析器将用于访问存储帐户的托管标识。 |
ResourceIdentity |