Microsoft.VideoIndexer accounts 2024-01-01

Bicep resource definition

The accounts resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Usage Examples

Bicep Samples

A basic example of deploying Video Indexer Account.

param resourceName string = 'acctest0001'
param location string = 'westus'

resource account 'Microsoft.VideoIndexer/accounts@2025-04-01' = {
  name: '${resourceName}-vi'
  location: location
  properties: {
    storageServices: {
      resourceId: storageAccount.id
      userAssignedIdentity: ''
    }
  }
}

resource storageAccount 'Microsoft.Storage/storageAccounts@2023-05-01' = {
  name: '${replace(resourceName, '-', '')}sa'
  location: location
  sku: {
    name: 'Standard_LRS'
  }
  kind: 'StorageV2'
  properties: {
    accessTier: 'Hot'
    allowBlobPublicAccess: true
    allowCrossTenantReplication: false
    allowSharedKeyAccess: true
    defaultToOAuthAuthentication: false
    dnsEndpointType: 'Standard'
    encryption: {
      keySource: 'Microsoft.Storage'
      services: {
        queue: {
          keyType: 'Service'
        }
        table: {
          keyType: 'Service'
        }
      }
    }
    isHnsEnabled: false
    isLocalUserEnabled: true
    isNfsV3Enabled: false
    isSftpEnabled: false
    minimumTlsVersion: 'TLS1_2'
    networkAcls: {
      bypass: 'AzureServices'
      defaultAction: 'Allow'
      ipRules: []
      resourceAccessRules: []
      virtualNetworkRules: []
    }
    publicNetworkAccess: 'Enabled'
    supportsHttpsTrafficOnly: true
  }
}

resource userAssignedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = {
  name: '${resourceName}-identity'
  location: location
}

Resource format

To create a Microsoft.VideoIndexer/accounts resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.VideoIndexer/accounts@2024-01-01' = {
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  location: 'string'
  name: 'string'
  properties: {
    accountId: 'string'
    storageServices: {
      resourceId: 'string'
      userAssignedIdentity: 'string'
    }
  }
  tags: {
    {customized property}: 'string'
  }
}

Property Values

Microsoft.VideoIndexer/accounts

Name Description Value
identity Managed service identity (system assigned and/or user assigned identities) ManagedServiceIdentity
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Min length = 3
Max length = 50
Pattern = ^[A-Za-z0-9-]+$ (required)
properties List of account properties AccountPropertiesForPutRequest
tags Resource tags Dictionary of tag names and values. See Tags in templates

AccountPropertiesForPutRequest

Name Description Value
accountId The account's data-plane ID. This can be set only when connecting an existing classic account string
storageServices The storage services details StorageServicesForPutRequest

ManagedServiceIdentity

Name Description Value
type Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned' (required)
userAssignedIdentities The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. UserAssignedIdentities

StorageServicesForPutRequest

Name Description Value
resourceId The storage services resource id string
userAssignedIdentity The user assigned identity to be used to grant permissions string

TrackedResourceTags

Name Description Value

UserAssignedIdentities

Name Description Value

UserAssignedIdentity

Name Description Value

ARM template resource definition

The accounts resource type can be deployed with operations that target:

Usage Examples

Resource format

To create a Microsoft.VideoIndexer/accounts resource, add the following JSON to your template.

{
  "type": "Microsoft.VideoIndexer/accounts",
  "apiVersion": "2024-01-01",
  "name": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "location": "string",
  "properties": {
    "accountId": "string",
    "storageServices": {
      "resourceId": "string",
      "userAssignedIdentity": "string"
    }
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property Values

Microsoft.VideoIndexer/accounts

Name Description Value
apiVersion The api version '2024-01-01'
identity Managed service identity (system assigned and/or user assigned identities) ManagedServiceIdentity
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Min length = 3
Max length = 50
Pattern = ^[A-Za-z0-9-]+$ (required)
properties List of account properties AccountPropertiesForPutRequest
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.VideoIndexer/accounts'

AccountPropertiesForPutRequest

Name Description Value
accountId The account's data-plane ID. This can be set only when connecting an existing classic account string
storageServices The storage services details StorageServicesForPutRequest

ManagedServiceIdentity

Name Description Value
type Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned' (required)
userAssignedIdentities The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. UserAssignedIdentities

StorageServicesForPutRequest

Name Description Value
resourceId The storage services resource id string
userAssignedIdentity The user assigned identity to be used to grant permissions string

TrackedResourceTags

Name Description Value

UserAssignedIdentities

Name Description Value

UserAssignedIdentity

Name Description Value

Terraform (AzAPI provider) resource definition

The accounts resource type can be deployed with operations that target:

  • Resource groups For a list of changed properties in each API version, see change log.

Usage Examples

Terraform Samples

A basic example of deploying Video Indexer Account.

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 = "westus"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

resource "azapi_resource" "storageAccount" {
  type      = "Microsoft.Storage/storageAccounts@2023-05-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = "${replace(var.resource_name, "-", "")}sa"
  location  = var.location
  body = {
    kind = "StorageV2"
    properties = {
      accessTier                   = "Hot"
      allowBlobPublicAccess        = true
      allowCrossTenantReplication  = false
      allowSharedKeyAccess         = true
      defaultToOAuthAuthentication = false
      dnsEndpointType              = "Standard"
      encryption = {
        keySource = "Microsoft.Storage"
        services = {
          queue = {
            keyType = "Service"
          }
          table = {
            keyType = "Service"
          }
        }
      }
      isHnsEnabled       = false
      isLocalUserEnabled = true
      isNfsV3Enabled     = false
      isSftpEnabled      = false
      minimumTlsVersion  = "TLS1_2"
      networkAcls = {
        bypass              = "AzureServices"
        defaultAction       = "Allow"
        ipRules             = []
        resourceAccessRules = []
        virtualNetworkRules = []
      }
      publicNetworkAccess      = "Enabled"
      supportsHttpsTrafficOnly = true
    }
    sku = {
      name = "Standard_LRS"
    }
  }
}

resource "azapi_resource" "userAssignedIdentity" {
  type      = "Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31"
  parent_id = azapi_resource.resourceGroup.id
  name      = "${var.resource_name}-identity"
  location  = var.location
}

resource "azapi_resource" "account" {
  type      = "Microsoft.VideoIndexer/accounts@2025-04-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = "${var.resource_name}-vi"
  location  = var.location
  identity {
    type         = "SystemAssigned"
    identity_ids = []
  }
  body = {
    properties = {
      storageServices = {
        resourceId           = azapi_resource.storageAccount.id
        userAssignedIdentity = ""
      }
    }
  }
}

Resource format

To create a Microsoft.VideoIndexer/accounts resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.VideoIndexer/accounts@2024-01-01"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      accountId = "string"
      storageServices = {
        resourceId = "string"
        userAssignedIdentity = "string"
      }
    }
  }
}

Property Values

Microsoft.VideoIndexer/accounts

Name Description Value
identity Managed service identity (system assigned and/or user assigned identities) ManagedServiceIdentity
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Min length = 3
Max length = 50
Pattern = ^[A-Za-z0-9-]+$ (required)
properties List of account properties AccountPropertiesForPutRequest
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.VideoIndexer/accounts@2024-01-01"

AccountPropertiesForPutRequest

Name Description Value
accountId The account's data-plane ID. This can be set only when connecting an existing classic account string
storageServices The storage services details StorageServicesForPutRequest

ManagedServiceIdentity

Name Description Value
type Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned' (required)
userAssignedIdentities The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. UserAssignedIdentities

StorageServicesForPutRequest

Name Description Value
resourceId The storage services resource id string
userAssignedIdentity The user assigned identity to be used to grant permissions string

TrackedResourceTags

Name Description Value

UserAssignedIdentities

Name Description Value

UserAssignedIdentity

Name Description Value