Grafana
br/innofactor:avm/res/dashboard/grafana:0.2.0
README
Azure Grafana Dashboard [Microsoft.Dashboard/grafana]
This module deploys an Azure Grafana Dashboard
Navigation
Resource Types
| Resource Type | API Version |
|---|---|
Microsoft.Authorization/locks | 2020-05-01 |
Microsoft.Authorization/roleAssignments | 2022-04-01 |
Microsoft.Dashboard/grafana | 2023-09-01 |
Microsoft.Insights/diagnosticSettings | 2021-05-01-preview |
Microsoft.Network/privateEndpoints | 2023-04-01 |
Microsoft.Network/privateEndpoints/privateDnsZoneGroups | 2023-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
| Parameter | Type | Description |
|---|---|---|
name | string | Name of your Azure Grafana Dashboard. |
Optional parameters
| Parameter | Type | Description |
|---|---|---|
diagnosticSettings | array | The diagnostic settings of the service. |
enableApiKey | bool | The api key setting of the Grafana instance. |
enableDeterministicOutboundIP | bool | Whether a Grafana instance uses deterministic outbound IPs for this instancey. |
enableTelemetry | bool | Enable/Disable usage telemetry for module. |
grafanaMajorVersion | string | The major version of Grafana to deploy. Azure currently accepts 12 and 13 for the Standard SKU; older majors are rejected. |
grafanaSku | string | Tier of your Azure Grafana Dashboard. |
location | string | Location for all Resources. |
lock | object | The lock settings of the service. |
managedIdentities | object | The managed identity definition for this resource. |
privateEndpoints | array | Configuration details for private endpoints. For security reasons, it is recommended to use private endpoints whenever possible. Note, requires the ‘acrSku’ to be ‘Premium’. |
publicNetworkAccess | string | 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’. |
roleAssignments | array | Array of role assignments to create. |
tags | object | Tags of the resource. |
zoneRedundancy | string | Whether 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
| Parameter | Type | Description |
|---|---|---|
eventHubAuthorizationRuleResourceId | string | 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. |
eventHubName | string | 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. |
logAnalyticsDestinationType | string | A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type. |
logCategoriesAndGroups | array | The name of logs that will be streamed. “allLogs” includes all possible logs for the resource. Set to [] to disable log collection. |
marketplacePartnerResourceId | string | The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs. |
metricCategories | array | The name of metrics that will be streamed. “allMetrics” includes all possible metrics for the resource. Set to [] to disable metric collection. |
name | string | The name of diagnostic setting. |
storageAccountResourceId | string | 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. |
workspaceResourceId | string | 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. |
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
| Parameter | Type | Description |
|---|---|---|
category | string | Name of a Diagnostic Log category for a resource type this setting is applied to. Set the specific logs to collect here. |
categoryGroup | string | Name of a Diagnostic Log category group for a resource type this setting is applied to. Set to allLogs to collect all logs. |
enabled | bool | Enable 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
| Parameter | Type | Description |
|---|---|---|
category | string | Name of a Diagnostic Metric category for a resource type this setting is applied to. Set to AllMetrics to collect all metrics. |
Optional parameters
| Parameter | Type | Description |
|---|---|---|
enabled | bool | Enable 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
| Parameter | Type | Description |
|---|---|---|
kind | string | Specify the type of lock. |
name | string | Specify 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
| Parameter | Type | Description |
|---|---|---|
systemAssigned | bool | Enables system assigned managed identity on the resource. |
userAssignedResourceIds | array | The 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
| Parameter | Type | Description |
|---|---|---|
subnetResourceId | string | Resource ID of the subnet where the endpoint needs to be created. |
Optional parameters
| Parameter | Type | Description |
|---|---|---|
applicationSecurityGroupResourceIds | array | Application security groups in which the private endpoint IP configuration is included. |
customDnsConfigs | array | Custom DNS configurations. |
customNetworkInterfaceName | string | The custom name of the network interface attached to the private endpoint. |
enableTelemetry | bool | Enable/Disable usage telemetry for module. |
ipConfigurations | array | A list of IP configurations of the private endpoint. This will be used to map to the First Party Service endpoints. |
isManualConnection | bool | If Manual Private Link Connection is required. |
location | string | The location to deploy the private endpoint to. |
lock | object | Specify the type of lock. |
manualConnectionRequestMessage | string | A message passed to the owner of the remote resource with the manual connection request. |
name | string | The name of the private endpoint. |
privateDnsZoneGroupName | string | The name of the private DNS zone group to create if privateDnsZoneResourceIds were provided. |
privateDnsZoneResourceIds | array | The private DNS zone groups to associate the private endpoint with. A DNS zone group can support up to 5 DNS zones. |
roleAssignments | array | Array of role assignments to create. |
service | string | The subresource to deploy the private endpoint for. For example “vault”, “mysqlServer” or “dataFactory”. |
tags | object | Tags 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
| Parameter | Type | Description |
|---|---|---|
ipAddresses | array | A list of private IP addresses of the private endpoint. |
Optional parameters
| Parameter | Type | Description |
|---|---|---|
fqdn | string | Fqdn 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
| Parameter | Type | Description |
|---|---|---|
name | string | The name of the resource that is unique within a resource group. |
properties | object | Properties 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
| Parameter | Type | Description |
|---|---|---|
groupId | string | The ID of a group obtained from the remote resource that this private endpoint should connect to. |
memberName | string | The member name of a group obtained from the remote resource that this private endpoint should connect to. |
privateIPAddress | string | A 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
| Parameter | Type | Description |
|---|---|---|
kind | string | Specify the type of lock. |
name | string | Specify 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
| Parameter | Type | Description |
|---|---|---|
principalId | string | The principal ID of the principal (user/group/identity) to assign the role to. |
roleDefinitionIdOrName | string | 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’. |
Optional parameters
| Parameter | Type | Description |
|---|---|---|
condition | string | 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”. |
conditionVersion | string | Version of the condition. |
delegatedManagedIdentityResourceId | string | The Resource Id of the delegated managed identity resource. |
description | string | The description of the role assignment. |
principalType | string | The 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
| Parameter | Type | Description |
|---|---|---|
principalId | string | The principal ID of the principal (user/group/identity) to assign the role to. |
roleDefinitionIdOrName | string | 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’. |
Optional parameters
| Parameter | Type | Description |
|---|---|---|
condition | string | 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”. |
conditionVersion | string | Version of the condition. |
delegatedManagedIdentityResourceId | string | The Resource Id of the delegated managed identity resource. |
description | string | The description of the role assignment. |
principalType | string | The 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
| Output | Type | Description |
|---|---|---|
location | string | The location the resource was deployed into. |
loginServer | string | The reference to the Azure Grafana Dashboard. |
name | string | The Name of the Azure Grafana Dashboard. |
resourceGroupName | string | The name of the Azure Grafana Dashboard. |
resourceId | string | The resource ID of the Azure Grafana Dashboard. |
systemAssignedMIPrincipalId | string | The 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).
| Reference | Type |
|---|---|
br/public:avm/res/network/private-endpoint:0.4.1 | Remote 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
grafanaMajorVersionparameter. It accepts12and13, the majors Azure accepts for the Standard SKU, and defaults to12. 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.jsonandREADME.mdwith Bicep 0.49.2 so that they matchmain.bicep(#206). - Released by the hardened pipeline: published only when
main.jsonchanges, 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) to12. 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. SetgrafanaMajorVersionexplicitly 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
| Version | Published |
|---|---|
0.2.0 | 2026-11-10 |
0.1.3 | 2025-02-01 |
0.1.2 | 2025-01-31 |
0.1.1 | 2025-01-29 |
0.1.0 | 2025-01-29 |