Microsoft.Monitor accounts

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.

Resource format

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

resource symbolicname 'Microsoft.Monitor/accounts@2025-10-03' = {
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  location: 'string'
  name: 'string'
  properties: {
    metrics: {
      enableAccessUsingResourcePermissions: bool
    }
    publicNetworkAccess: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

Property Values

Microsoft.Monitor/accounts

Name Description Value
identity The managed service identities assigned to this resource. ManagedServiceIdentity
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Pattern = ^(?!-)[a-zA-Z0-9-]+[^-]$ (required)
properties Resource properties AzureMonitorWorkspace
tags Resource tags Dictionary of tag names and values. See Tags in templates

AzureMonitorWorkspace

Name Description Value
metrics Properties related to the metrics container in the Azure Monitor Workspace AzureMonitorWorkspaceMetrics
publicNetworkAccess Gets or sets allow or disallow public network access to Azure Monitor Workspace 'Disabled'
'Enabled'

AzureMonitorWorkspaceMetrics

Name Description Value
enableAccessUsingResourcePermissions Flag that indicates whether to enable access using resource permissions. bool

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. ManagedServiceIdentityUserAssignedIdentities

ManagedServiceIdentityUserAssignedIdentities

Name Description Value

TrackedResourceTags

Name Description Value

UserAssignedIdentity

Name Description Value

Usage Examples

Bicep Samples

A basic example of deploying Azure Monitor Workspace.

param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource account 'Microsoft.Monitor/accounts@2023-04-03' = {
  name: resourceName
  location: location
  properties: {
    publicNetworkAccess: 'Enabled'
  }
}

ARM template 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.

Resource format

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

{
  "type": "Microsoft.Monitor/accounts",
  "apiVersion": "2025-10-03",
  "name": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "location": "string",
  "properties": {
    "metrics": {
      "enableAccessUsingResourcePermissions": "bool"
    },
    "publicNetworkAccess": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property Values

Microsoft.Monitor/accounts

Name Description Value
apiVersion The api version '2025-10-03'
identity The managed service identities assigned to this resource. ManagedServiceIdentity
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Pattern = ^(?!-)[a-zA-Z0-9-]+[^-]$ (required)
properties Resource properties AzureMonitorWorkspace
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.Monitor/accounts'

AzureMonitorWorkspace

Name Description Value
metrics Properties related to the metrics container in the Azure Monitor Workspace AzureMonitorWorkspaceMetrics
publicNetworkAccess Gets or sets allow or disallow public network access to Azure Monitor Workspace 'Disabled'
'Enabled'

AzureMonitorWorkspaceMetrics

Name Description Value
enableAccessUsingResourcePermissions Flag that indicates whether to enable access using resource permissions. bool

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. ManagedServiceIdentityUserAssignedIdentities

ManagedServiceIdentityUserAssignedIdentities

Name Description Value

TrackedResourceTags

Name Description Value

UserAssignedIdentity

Name Description Value

Usage Examples

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.

Resource format

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Monitor/accounts@2025-10-03"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      metrics = {
        enableAccessUsingResourcePermissions = bool
      }
      publicNetworkAccess = "string"
    }
  }
}

Property Values

Microsoft.Monitor/accounts

Name Description Value
identity The managed service identities assigned to this resource. ManagedServiceIdentity
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Pattern = ^(?!-)[a-zA-Z0-9-]+[^-]$ (required)
properties Resource properties AzureMonitorWorkspace
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.Monitor/accounts@2025-10-03"

AzureMonitorWorkspace

Name Description Value
metrics Properties related to the metrics container in the Azure Monitor Workspace AzureMonitorWorkspaceMetrics
publicNetworkAccess Gets or sets allow or disallow public network access to Azure Monitor Workspace 'Disabled'
'Enabled'

AzureMonitorWorkspaceMetrics

Name Description Value
enableAccessUsingResourcePermissions Flag that indicates whether to enable access using resource permissions. bool

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. ManagedServiceIdentityUserAssignedIdentities

ManagedServiceIdentityUserAssignedIdentities

Name Description Value

TrackedResourceTags

Name Description Value

UserAssignedIdentity

Name Description Value

Usage Examples

Terraform Samples

A basic example of deploying Azure Monitor Workspace.

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

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

resource "azapi_resource" "account" {
  type      = "Microsoft.Monitor/accounts@2023-04-03"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      publicNetworkAccess = "Enabled"
    }

  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}