Grafana

br/innofactor:avm/res/dashboard/grafana:0.2.0

README

Azure Grafana Dashboard [Microsoft.Dashboard/grafana]

This module deploys an Azure Grafana Dashboard

Resource Types

Resource TypeAPI Version
Microsoft.Authorization/locks2020-05-01
Microsoft.Authorization/roleAssignments2022-04-01
Microsoft.Dashboard/grafana2023-09-01
Microsoft.Insights/diagnosticSettings2021-05-01-preview
Microsoft.Network/privateEndpoints2023-04-01
Microsoft.Network/privateEndpoints/privateDnsZoneGroups2023-04-01

Usage examples

The following section provides usage examples for the module, which were used to validate and deploy the module successfully. For a full reference, please review the module’s test folder in its repository.

Note: Each example lists all the required parameters first, followed by the rest - each in alphabetical order.

Note: To reference the module, please use the following syntax br/innofactor:avm/res/dashboard/grafana:<version>.

Example 1: Using only defaults

This instance deploys the module with the minimum set of required parameters.

via Bicep module
module grafana 'br/innofactor:avm/res/dashboard/grafana:<version>' = {
  name: 'grafanaDeployment'
  params: {
    // Required parameters
    name: 'dbgmin001'
    // Non-required parameters
    location: '<location>'
    zoneRedundancy: 'Enabled'
  }
}

via JSON parameters file
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    // Required parameters
    "name": {
      "value": "dbgmin001"
    },
    // Non-required parameters
    "location": {
      "value": "<location>"
    },
    "zoneRedundancy": {
      "value": "Enabled"
    }
  }
}

via Bicep parameters file
using 'br/innofactor:avm/res/dashboard/grafana:<version>'

// Required parameters
param name = 'dbgmin001'
// Non-required parameters
param location = '<location>'
param zoneRedundancy = 'Enabled'

Example 2: Grafana Dashboard using WAF-aligned Configuration

This instance deploys the module in alignment with the best-practices of the Azure Well-Architected Framework.

via Bicep module
module grafana 'br/innofactor:avm/res/dashboard/grafana:<version>' = {
  name: 'grafanaDeployment'
  params: {
    // Required parameters
    name: 'dbgwaf001'
    // Non-required parameters
    diagnosticSettings: [
      {
        eventHubAuthorizationRuleResourceId: '<eventHubAuthorizationRuleResourceId>'
        eventHubName: '<eventHubName>'
        storageAccountResourceId: '<storageAccountResourceId>'
        workspaceResourceId: '<workspaceResourceId>'
      }
    ]
    location: '<location>'
    lock: {
      kind: 'CanNotDelete'
      name: 'myCustomLockName'
    }
    managedIdentities: {
      systemAssigned: false
      userAssignedResourceIds: [
        '<managedIdentityResourceId>'
      ]
    }
    privateEndpoints: [
      {
        privateDnsZoneResourceIds: [
          '<privateDNSZoneResourceId>'
        ]
        subnetResourceId: '<subnetResourceId>'
        tags: {
          Environment: 'Non-Prod'
          'hidden-title': 'Test Grafana Instance'
          Role: 'DeploymentValidation'
        }
      }
      {
        privateDnsZoneResourceIds: [
          '<privateDNSZoneResourceId>'
        ]
        subnetResourceId: '<subnetResourceId>'
      }
    ]
    roleAssignments: [
      {
        principalId: '<principalId>'
        principalType: 'ServicePrincipal'
        roleDefinitionIdOrName: 'Owner'
      }
      {
        principalId: '<principalId>'
        principalType: 'ServicePrincipal'
        roleDefinitionIdOrName: 'b24988ac-6180-42a0-ab88-20f7382dd24c'
      }
      {
        principalId: '<principalId>'
        principalType: 'ServicePrincipal'
        roleDefinitionIdOrName: '<roleDefinitionIdOrName>'
      }
    ]
    tags: {
      Environment: 'Non-Prod'
      'hidden-title': 'This is visible in the resource name'
      Role: 'DeploymentValidation'
    }
    zoneRedundancy: 'Enabled'
  }
}

via JSON parameters file
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    // Required parameters
    "name": {
      "value": "dbgwaf001"
    },
    // Non-required parameters
    "diagnosticSettings": {
      "value": [
        {
          "eventHubAuthorizationRuleResourceId": "<eventHubAuthorizationRuleResourceId>",
          "eventHubName": "<eventHubName>",
          "storageAccountResourceId": "<storageAccountResourceId>",
          "workspaceResourceId": "<workspaceResourceId>"
        }
      ]
    },
    "location": {
      "value": "<location>"
    },
    "lock": {
      "value": {
        "kind": "CanNotDelete",
        "name": "myCustomLockName"
      }
    },
    "managedIdentities": {
      "value": {
        "systemAssigned": false,
        "userAssignedResourceIds": [
          "<managedIdentityResourceId>"
        ]
      }
    },
    "privateEndpoints": {
      "value": [
        {
          "privateDnsZoneResourceIds": [
            "<privateDNSZoneResourceId>"
          ],
          "subnetResourceId": "<subnetResourceId>",
          "tags": {
            "Environment": "Non-Prod",
            "hidden-title": "Test Grafana Instance",
            "Role": "DeploymentValidation"
          }
        },
        {
          "privateDnsZoneResourceIds": [
            "<privateDNSZoneResourceId>"
          ],
          "subnetResourceId": "<subnetResourceId>"
        }
      ]
    },
    "roleAssignments": {
      "value": [
        {
          "principalId": "<principalId>",
          "principalType": "ServicePrincipal",
          "roleDefinitionIdOrName": "Owner"
        },
        {
          "principalId": "<principalId>",
          "principalType": "ServicePrincipal",
          "roleDefinitionIdOrName": "b24988ac-6180-42a0-ab88-20f7382dd24c"
        },
        {
          "principalId": "<principalId>",
          "principalType": "ServicePrincipal",
          "roleDefinitionIdOrName": "<roleDefinitionIdOrName>"
        }
      ]
    },
    "tags": {
      "value": {
        "Environment": "Non-Prod",
        "hidden-title": "This is visible in the resource name",
        "Role": "DeploymentValidation"
      }
    },
    "zoneRedundancy": {
      "value": "Enabled"
    }
  }
}

via Bicep parameters file
using 'br/innofactor:avm/res/dashboard/grafana:<version>'

// Required parameters
param name = 'dbgwaf001'
// Non-required parameters
param diagnosticSettings = [
  {
    eventHubAuthorizationRuleResourceId: '<eventHubAuthorizationRuleResourceId>'
    eventHubName: '<eventHubName>'
    storageAccountResourceId: '<storageAccountResourceId>'
    workspaceResourceId: '<workspaceResourceId>'
  }
]
param location = '<location>'
param lock = {
  kind: 'CanNotDelete'
  name: 'myCustomLockName'
}
param managedIdentities = {
  systemAssigned: false
  userAssignedResourceIds: [
    '<managedIdentityResourceId>'
  ]
}
param privateEndpoints = [
  {
    privateDnsZoneResourceIds: [
      '<privateDNSZoneResourceId>'
    ]
    subnetResourceId: '<subnetResourceId>'
    tags: {
      Environment: 'Non-Prod'
      'hidden-title': 'Test Grafana Instance'
      Role: 'DeploymentValidation'
    }
  }
  {
    privateDnsZoneResourceIds: [
      '<privateDNSZoneResourceId>'
    ]
    subnetResourceId: '<subnetResourceId>'
  }
]
param roleAssignments = [
  {
    principalId: '<principalId>'
    principalType: 'ServicePrincipal'
    roleDefinitionIdOrName: 'Owner'
  }
  {
    principalId: '<principalId>'
    principalType: 'ServicePrincipal'
    roleDefinitionIdOrName: 'b24988ac-6180-42a0-ab88-20f7382dd24c'
  }
  {
    principalId: '<principalId>'
    principalType: 'ServicePrincipal'
    roleDefinitionIdOrName: '<roleDefinitionIdOrName>'
  }
]
param tags = {
  Environment: 'Non-Prod'
  'hidden-title': 'This is visible in the resource name'
  Role: 'DeploymentValidation'
}
param zoneRedundancy = 'Enabled'

Parameters

Required parameters

ParameterTypeDescription
namestringName of your Azure Grafana Dashboard.

Optional parameters

ParameterTypeDescription
diagnosticSettingsarrayThe diagnostic settings of the service.
enableApiKeyboolThe api key setting of the Grafana instance.
enableDeterministicOutboundIPboolWhether a Grafana instance uses deterministic outbound IPs for this instancey.
enableTelemetryboolEnable/Disable usage telemetry for module.
grafanaMajorVersionstringThe major version of Grafana to deploy. Azure currently accepts 12 and 13 for the Standard SKU; older majors are rejected.
grafanaSkustringTier of your Azure Grafana Dashboard.
locationstringLocation for all Resources.
lockobjectThe lock settings of the service.
managedIdentitiesobjectThe managed identity definition for this resource.
privateEndpointsarrayConfiguration details for private endpoints. For security reasons, it is recommended to use private endpoints whenever possible. Note, requires the ‘acrSku’ to be ‘Premium’.
publicNetworkAccessstringWhether or not public network access is allowed for this resource. For security reasons it should be disabled. If not specified, it will be disabled by default if private endpoints are set and networkRuleSetIpRules are not set. Note, requires the ‘acrSku’ to be ‘Premium’.
roleAssignmentsarrayArray of role assignments to create.
tagsobjectTags of the resource.
zoneRedundancystringWhether or not zone redundancy is enabled for this Grafana dashboard.
Parameter: name

Name of your Azure Grafana Dashboard.

  • Required: Yes
  • Type: string
Parameter: diagnosticSettings

The diagnostic settings of the service.

  • Required: No
  • Type: array

Optional parameters

ParameterTypeDescription
eventHubAuthorizationRuleResourceIdstringResource ID of the diagnostic event hub authorization rule for the Event Hubs namespace in which the event hub should be created or streamed to.
eventHubNamestringName of the diagnostic event hub within the namespace to which logs are streamed. Without this, an event hub is created for each log category. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.
logAnalyticsDestinationTypestringA string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type.
logCategoriesAndGroupsarrayThe name of logs that will be streamed. “allLogs” includes all possible logs for the resource. Set to [] to disable log collection.
marketplacePartnerResourceIdstringThe full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
metricCategoriesarrayThe name of metrics that will be streamed. “allMetrics” includes all possible metrics for the resource. Set to [] to disable metric collection.
namestringThe name of diagnostic setting.
storageAccountResourceIdstringResource ID of the diagnostic storage account. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.
workspaceResourceIdstringResource ID of the diagnostic log analytics workspace. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.
Parameter: diagnosticSettings.eventHubAuthorizationRuleResourceId

Resource ID of the diagnostic event hub authorization rule for the Event Hubs namespace in which the event hub should be created or streamed to.

  • Required: No
  • Type: string
Parameter: diagnosticSettings.eventHubName

Name of the diagnostic event hub within the namespace to which logs are streamed. Without this, an event hub is created for each log category. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.

  • Required: No
  • Type: string
Parameter: diagnosticSettings.logAnalyticsDestinationType

A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type.

  • Required: No
  • Type: string
  • Allowed:
    [
      'AzureDiagnostics'
      'Dedicated'
    ]
Parameter: diagnosticSettings.logCategoriesAndGroups

The name of logs that will be streamed. “allLogs” includes all possible logs for the resource. Set to [] to disable log collection.

  • Required: No
  • Type: array

Optional parameters

ParameterTypeDescription
categorystringName of a Diagnostic Log category for a resource type this setting is applied to. Set the specific logs to collect here.
categoryGroupstringName of a Diagnostic Log category group for a resource type this setting is applied to. Set to allLogs to collect all logs.
enabledboolEnable or disable the category explicitly. Default is true.
Parameter: diagnosticSettings.logCategoriesAndGroups.category

Name of a Diagnostic Log category for a resource type this setting is applied to. Set the specific logs to collect here.

  • Required: No
  • Type: string
Parameter: diagnosticSettings.logCategoriesAndGroups.categoryGroup

Name of a Diagnostic Log category group for a resource type this setting is applied to. Set to allLogs to collect all logs.

  • Required: No
  • Type: string
Parameter: diagnosticSettings.logCategoriesAndGroups.enabled

Enable or disable the category explicitly. Default is true.

  • Required: No
  • Type: bool
Parameter: diagnosticSettings.marketplacePartnerResourceId

The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.

  • Required: No
  • Type: string
Parameter: diagnosticSettings.metricCategories

The name of metrics that will be streamed. “allMetrics” includes all possible metrics for the resource. Set to [] to disable metric collection.

  • Required: No
  • Type: array

Required parameters

ParameterTypeDescription
categorystringName of a Diagnostic Metric category for a resource type this setting is applied to. Set to AllMetrics to collect all metrics.

Optional parameters

ParameterTypeDescription
enabledboolEnable or disable the category explicitly. Default is true.
Parameter: diagnosticSettings.metricCategories.category

Name of a Diagnostic Metric category for a resource type this setting is applied to. Set to AllMetrics to collect all metrics.

  • Required: Yes
  • Type: string
Parameter: diagnosticSettings.metricCategories.enabled

Enable or disable the category explicitly. Default is true.

  • Required: No
  • Type: bool
Parameter: diagnosticSettings.name

The name of diagnostic setting.

  • Required: No
  • Type: string
Parameter: diagnosticSettings.storageAccountResourceId

Resource ID of the diagnostic storage account. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.

  • Required: No
  • Type: string
Parameter: diagnosticSettings.workspaceResourceId

Resource ID of the diagnostic log analytics workspace. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.

  • Required: No
  • Type: string
Parameter: enableApiKey

The api key setting of the Grafana instance.

  • Required: No
  • Type: bool
  • Default: False
Parameter: enableDeterministicOutboundIP

Whether a Grafana instance uses deterministic outbound IPs for this instancey.

  • Required: No
  • Type: bool
  • Default: False
Parameter: enableTelemetry

Enable/Disable usage telemetry for module.

  • Required: No
  • Type: bool
  • Default: True
Parameter: grafanaMajorVersion

The major version of Grafana to deploy. Azure currently accepts 12 and 13 for the Standard SKU; older majors are rejected.

  • Required: No
  • Type: string
  • Default: '12'
  • Allowed:
    [
      '12'
      '13'
    ]
Parameter: grafanaSku

Tier of your Azure Grafana Dashboard.

  • Required: No
  • Type: string
  • Default: 'Standard'
  • Allowed:
    [
      'Standard'
    ]
Parameter: location

Location for all Resources.

  • Required: No
  • Type: string
  • Default: [resourceGroup().location]
Parameter: lock

The lock settings of the service.

  • Required: No
  • Type: object

Optional parameters

ParameterTypeDescription
kindstringSpecify the type of lock.
namestringSpecify the name of lock.
Parameter: lock.kind

Specify the type of lock.

  • Required: No
  • Type: string
  • Allowed:
    [
      'CanNotDelete'
      'None'
      'ReadOnly'
    ]
Parameter: lock.name

Specify the name of lock.

  • Required: No
  • Type: string
Parameter: managedIdentities

The managed identity definition for this resource.

  • Required: No
  • Type: object

Optional parameters

ParameterTypeDescription
systemAssignedboolEnables system assigned managed identity on the resource.
userAssignedResourceIdsarrayThe resource ID(s) to assign to the resource.
Parameter: managedIdentities.systemAssigned

Enables system assigned managed identity on the resource.

  • Required: No
  • Type: bool
Parameter: managedIdentities.userAssignedResourceIds

The resource ID(s) to assign to the resource.

  • Required: No
  • Type: array
Parameter: privateEndpoints

Configuration details for private endpoints. For security reasons, it is recommended to use private endpoints whenever possible. Note, requires the ‘acrSku’ to be ‘Premium’.

  • Required: No
  • Type: array

Required parameters

ParameterTypeDescription
subnetResourceIdstringResource ID of the subnet where the endpoint needs to be created.

Optional parameters

ParameterTypeDescription
applicationSecurityGroupResourceIdsarrayApplication security groups in which the private endpoint IP configuration is included.
customDnsConfigsarrayCustom DNS configurations.
customNetworkInterfaceNamestringThe custom name of the network interface attached to the private endpoint.
enableTelemetryboolEnable/Disable usage telemetry for module.
ipConfigurationsarrayA list of IP configurations of the private endpoint. This will be used to map to the First Party Service endpoints.
isManualConnectionboolIf Manual Private Link Connection is required.
locationstringThe location to deploy the private endpoint to.
lockobjectSpecify the type of lock.
manualConnectionRequestMessagestringA message passed to the owner of the remote resource with the manual connection request.
namestringThe name of the private endpoint.
privateDnsZoneGroupNamestringThe name of the private DNS zone group to create if privateDnsZoneResourceIds were provided.
privateDnsZoneResourceIdsarrayThe private DNS zone groups to associate the private endpoint with. A DNS zone group can support up to 5 DNS zones.
roleAssignmentsarrayArray of role assignments to create.
servicestringThe subresource to deploy the private endpoint for. For example “vault”, “mysqlServer” or “dataFactory”.
tagsobjectTags to be applied on all resources/resource groups in this deployment.
Parameter: privateEndpoints.subnetResourceId

Resource ID of the subnet where the endpoint needs to be created.

  • Required: Yes
  • Type: string
Parameter: privateEndpoints.applicationSecurityGroupResourceIds

Application security groups in which the private endpoint IP configuration is included.

  • Required: No
  • Type: array
Parameter: privateEndpoints.customDnsConfigs

Custom DNS configurations.

  • Required: No
  • Type: array

Required parameters

ParameterTypeDescription
ipAddressesarrayA list of private IP addresses of the private endpoint.

Optional parameters

ParameterTypeDescription
fqdnstringFqdn that resolves to private endpoint IP address.
Parameter: privateEndpoints.customDnsConfigs.ipAddresses

A list of private IP addresses of the private endpoint.

  • Required: Yes
  • Type: array
Parameter: privateEndpoints.customDnsConfigs.fqdn

Fqdn that resolves to private endpoint IP address.

  • Required: No
  • Type: string
Parameter: privateEndpoints.customNetworkInterfaceName

The custom name of the network interface attached to the private endpoint.

  • Required: No
  • Type: string
Parameter: privateEndpoints.enableTelemetry

Enable/Disable usage telemetry for module.

  • Required: No
  • Type: bool
Parameter: privateEndpoints.ipConfigurations

A list of IP configurations of the private endpoint. This will be used to map to the First Party Service endpoints.

  • Required: No
  • Type: array

Required parameters

ParameterTypeDescription
namestringThe name of the resource that is unique within a resource group.
propertiesobjectProperties of private endpoint IP configurations.
Parameter: privateEndpoints.ipConfigurations.name

The name of the resource that is unique within a resource group.

  • Required: Yes
  • Type: string
Parameter: privateEndpoints.ipConfigurations.properties

Properties of private endpoint IP configurations.

  • Required: Yes
  • Type: object

Required parameters

ParameterTypeDescription
groupIdstringThe ID of a group obtained from the remote resource that this private endpoint should connect to.
memberNamestringThe member name of a group obtained from the remote resource that this private endpoint should connect to.
privateIPAddressstringA private IP address obtained from the private endpoint’s subnet.
Parameter: privateEndpoints.ipConfigurations.properties.groupId

The ID of a group obtained from the remote resource that this private endpoint should connect to.

  • Required: Yes
  • Type: string
Parameter: privateEndpoints.ipConfigurations.properties.memberName

The member name of a group obtained from the remote resource that this private endpoint should connect to.

  • Required: Yes
  • Type: string
Parameter: privateEndpoints.ipConfigurations.properties.privateIPAddress

A private IP address obtained from the private endpoint’s subnet.

  • Required: Yes
  • Type: string
Parameter: privateEndpoints.isManualConnection

If Manual Private Link Connection is required.

  • Required: No
  • Type: bool
Parameter: privateEndpoints.location

The location to deploy the private endpoint to.

  • Required: No
  • Type: string
Parameter: privateEndpoints.lock

Specify the type of lock.

  • Required: No
  • Type: object

Optional parameters

ParameterTypeDescription
kindstringSpecify the type of lock.
namestringSpecify the name of lock.
Parameter: privateEndpoints.lock.kind

Specify the type of lock.

  • Required: No
  • Type: string
  • Allowed:
    [
      'CanNotDelete'
      'None'
      'ReadOnly'
    ]
Parameter: privateEndpoints.lock.name

Specify the name of lock.

  • Required: No
  • Type: string
Parameter: privateEndpoints.manualConnectionRequestMessage

A message passed to the owner of the remote resource with the manual connection request.

  • Required: No
  • Type: string
Parameter: privateEndpoints.name

The name of the private endpoint.

  • Required: No
  • Type: string
Parameter: privateEndpoints.privateDnsZoneGroupName

The name of the private DNS zone group to create if privateDnsZoneResourceIds were provided.

  • Required: No
  • Type: string
Parameter: privateEndpoints.privateDnsZoneResourceIds

The private DNS zone groups to associate the private endpoint with. A DNS zone group can support up to 5 DNS zones.

  • Required: No
  • Type: array
Parameter: privateEndpoints.roleAssignments

Array of role assignments to create.

  • Required: No
  • Type: array
  • Roles configurable by name:
    • 'Contributor'
    • 'DNS Resolver Contributor'
    • 'DNS Zone Contributor'
    • 'Domain Services Contributor'
    • 'Domain Services Reader'
    • 'Network Contributor'
    • 'Owner'
    • 'Private DNS Zone Contributor'
    • 'Reader'
    • 'Role Based Access Control Administrator (Preview)'

Required parameters

ParameterTypeDescription
principalIdstringThe principal ID of the principal (user/group/identity) to assign the role to.
roleDefinitionIdOrNamestringThe role to assign. You can provide either the display name of the role definition, the role definition GUID, or its fully qualified ID in the following format: ‘/providers/Microsoft.Authorization/roleDefinitions/c2f4ef07-c644-48eb-af81-4b1b4947fb11’.

Optional parameters

ParameterTypeDescription
conditionstringThe conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase “foo_storage_container”.
conditionVersionstringVersion of the condition.
delegatedManagedIdentityResourceIdstringThe Resource Id of the delegated managed identity resource.
descriptionstringThe description of the role assignment.
principalTypestringThe principal type of the assigned principal ID.
Parameter: privateEndpoints.roleAssignments.principalId

The principal ID of the principal (user/group/identity) to assign the role to.

  • Required: Yes
  • Type: string
Parameter: privateEndpoints.roleAssignments.roleDefinitionIdOrName

The role to assign. You can provide either the display name of the role definition, the role definition GUID, or its fully qualified ID in the following format: ‘/providers/Microsoft.Authorization/roleDefinitions/c2f4ef07-c644-48eb-af81-4b1b4947fb11’.

  • Required: Yes
  • Type: string
Parameter: privateEndpoints.roleAssignments.condition

The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase “foo_storage_container”.

  • Required: No
  • Type: string
Parameter: privateEndpoints.roleAssignments.conditionVersion

Version of the condition.

  • Required: No
  • Type: string
  • Allowed:
    [
      '2.0'
    ]
Parameter: privateEndpoints.roleAssignments.delegatedManagedIdentityResourceId

The Resource Id of the delegated managed identity resource.

  • Required: No
  • Type: string
Parameter: privateEndpoints.roleAssignments.description

The description of the role assignment.

  • Required: No
  • Type: string
Parameter: privateEndpoints.roleAssignments.principalType

The principal type of the assigned principal ID.

  • Required: No
  • Type: string
  • Allowed:
    [
      'Device'
      'ForeignGroup'
      'Group'
      'ServicePrincipal'
      'User'
    ]
Parameter: privateEndpoints.service

The subresource to deploy the private endpoint for. For example “vault”, “mysqlServer” or “dataFactory”.

  • Required: No
  • Type: string
Parameter: privateEndpoints.tags

Tags to be applied on all resources/resource groups in this deployment.

  • Required: No
  • Type: object
Parameter: publicNetworkAccess

Whether or not public network access is allowed for this resource. For security reasons it should be disabled. If not specified, it will be disabled by default if private endpoints are set and networkRuleSetIpRules are not set. Note, requires the ‘acrSku’ to be ‘Premium’.

  • Required: No
  • Type: string
  • Allowed:
    [
      'Disabled'
      'Enabled'
    ]
Parameter: roleAssignments

Array of role assignments to create.

  • Required: No
  • Type: array
  • Roles configurable by name:
    • 'GrafanaAdmin'
    • 'GrafanaEditor'
    • 'GrafanaViewer'
    • 'Contributor'
    • 'Owner'
    • 'Reader'
    • 'Role Based Access Control Administrator (Preview)'
    • 'User Access Administrator'

Required parameters

ParameterTypeDescription
principalIdstringThe principal ID of the principal (user/group/identity) to assign the role to.
roleDefinitionIdOrNamestringThe role to assign. You can provide either the display name of the role definition, the role definition GUID, or its fully qualified ID in the following format: ‘/providers/Microsoft.Authorization/roleDefinitions/c2f4ef07-c644-48eb-af81-4b1b4947fb11’.

Optional parameters

ParameterTypeDescription
conditionstringThe conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase “foo_storage_container”.
conditionVersionstringVersion of the condition.
delegatedManagedIdentityResourceIdstringThe Resource Id of the delegated managed identity resource.
descriptionstringThe description of the role assignment.
principalTypestringThe principal type of the assigned principal ID.
Parameter: roleAssignments.principalId

The principal ID of the principal (user/group/identity) to assign the role to.

  • Required: Yes
  • Type: string
Parameter: roleAssignments.roleDefinitionIdOrName

The role to assign. You can provide either the display name of the role definition, the role definition GUID, or its fully qualified ID in the following format: ‘/providers/Microsoft.Authorization/roleDefinitions/c2f4ef07-c644-48eb-af81-4b1b4947fb11’.

  • Required: Yes
  • Type: string
Parameter: roleAssignments.condition

The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase “foo_storage_container”.

  • Required: No
  • Type: string
Parameter: roleAssignments.conditionVersion

Version of the condition.

  • Required: No
  • Type: string
  • Allowed:
    [
      '2.0'
    ]
Parameter: roleAssignments.delegatedManagedIdentityResourceId

The Resource Id of the delegated managed identity resource.

  • Required: No
  • Type: string
Parameter: roleAssignments.description

The description of the role assignment.

  • Required: No
  • Type: string
Parameter: roleAssignments.principalType

The principal type of the assigned principal ID.

  • Required: No
  • Type: string
  • Allowed:
    [
      'Device'
      'ForeignGroup'
      'Group'
      'ServicePrincipal'
      'User'
    ]
Parameter: tags

Tags of the resource.

  • Required: No
  • Type: object
Parameter: zoneRedundancy

Whether or not zone redundancy is enabled for this Grafana dashboard.

  • Required: No
  • Type: string
  • Default: 'Disabled'
  • Allowed:
    [
      'Disabled'
      'Enabled'
    ]

Outputs

OutputTypeDescription
locationstringThe location the resource was deployed into.
loginServerstringThe reference to the Azure Grafana Dashboard.
namestringThe Name of the Azure Grafana Dashboard.
resourceGroupNamestringThe name of the Azure Grafana Dashboard.
resourceIdstringThe resource ID of the Azure Grafana Dashboard.
systemAssignedMIPrincipalIdstringThe principal ID of the system assigned identity.

Cross-referenced modules

This section gives you an overview of all local-referenced module files (i.e., other modules that are referenced in this module) and all remote-referenced files (i.e., Bicep modules that are referenced from a Bicep Registry or Template Specs).

ReferenceType
br/public:avm/res/network/private-endpoint:0.4.1Remote reference

Data Collection

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft’s privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.

Changelog

Changelog

The latest version of the changelog can be found here.

0.2.0

Changes
  • Added the grafanaMajorVersion parameter. It accepts 12 and 13, the majors Azure accepts for the Standard SKU, and defaults to 12. Other values are rejected at validation time. See ADR 0006.
  • Private endpoints are created one at a time. Creating two in parallel made the Grafana resource provider return CreateOrUpdateConflict.
  • The defaults and waf-aligned tests enable zone redundancy, which satisfies the PSRule WAF Reliability rules.
  • Regenerated main.json and README.md with Bicep 0.49.2 so that they match main.bicep (#206).
  • Released by the hardened pipeline: published only when main.json changes, release tag created after a successful publish, GitHub Release per tag (ADR 0004, ADR 0003, ADR 0005).
Breaking Changes
  • The default Grafana major version changed from 10 (hardcoded) to 12. Azure no longer accepts 10 or 11, so the old default could not be deployed. A deployment that relied on the default now creates or upgrades to Grafana 12. Set grafanaMajorVersion explicitly to choose between 12 and 13.

0.1.3

Changes
  • Republished without a change to the module. At the time the pipeline published a new patch version on every successful run, see ADR 0004.
Breaking Changes
  • None

0.1.2

Changes
  • Republished without a change to the module. At the time the pipeline published a new patch version on every successful run, see ADR 0004.
Breaking Changes
  • None

0.1.1

Changes
  • Republished without a change to the module. At the time the pipeline published a new patch version on every successful run, see ADR 0004.
Breaking Changes
  • None

0.1.0

Changes
  • Fixing bugs in modules and ci (#38)
  • Fixing modules due to avm ci update to match upstream and fix bugs (#34)
  • AVM Update to resync the ci for bugs and features (#33)
  • Contributing guidance (#8)
  • Modules grafana dashboard module (#53)
  • Feat/dashboard grafana 001 (#45)
  • Preflight (#54)
  • Feat/grafana dashboard module (#52)
  • Feat/dashboard grafana 001 (#45) (#46)
  • Adding main scaffolding to module (#44)
  • Bug: ts publish Feat release (#39)
  • Update the desc on the grafana module (#38)
  • Bug and workflows (#37)
  • Bug: Feat publish test (#35)
  • Feature/ptn.lz.container registry (#31)
  • Feature/ptn.lz.container registry (#30)
  • Feature/ptn.lz.container registry (#29)
  • Update to grafana dashboard (#28)
  • Add locks to grafana (#27)
  • Update to grafana to test pipes (#22)
  • Avm res dashboard grafana (#9)
  • Feat avm res dashboard grafana (#8)
  • Feat avm res dashboard grafana (#3)
  • Avm res dashboard grafana (#1)
Breaking Changes
  • None

Version history

VersionPublished
0.2.02026-11-10
0.1.32025-02-01
0.1.22025-01-31
0.1.12025-01-29
0.1.02025-01-29