Share via


Grafana - Update

Update a workspace for Grafana resource.

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}?api-version=2025-08-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

minLength: 1
maxLength: 90

The name of the resource group. The name is case insensitive.

subscriptionId
path True

string

minLength: 1

The ID of the target subscription.

workspaceName
path True

string

pattern: ^[a-zA-Z][a-z0-9A-Z-]{0,28}[a-z0-9A-Z]$

The workspace name of Azure Managed Grafana.

api-version
query True

string

minLength: 1

The API version to use for this operation.

Request Body

Name Type Description
identity

ManagedServiceIdentity

The managed identity of the grafana resource.

properties

ManagedGrafanaPropertiesUpdateParameters

Properties specific to the managed grafana resource.

sku

ResourceSku

Represents the SKU of a resource.

tags

object

The new tags of the grafana resource.

Responses

Name Type Description
200 OK

ManagedGrafana

Azure operation completed successfully.

202 Accepted

ManagedGrafana

The request has been accepted for processing, but processing has not yet completed.

Headers

  • Azure-AsyncOperation: string
  • Retry-After: integer
Other Status Codes

ErrorResponse

An unexpected error response.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Grafana_Update

Sample request

PATCH https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Dashboard/grafana/myWorkspace?api-version=2025-08-01

{
  "properties": {
    "apiKey": "Enabled",
    "deterministicOutboundIP": "Enabled",
    "enterpriseConfigurations": {
      "marketplaceAutoRenew": "Enabled",
      "marketplacePlanId": "myPlanId"
    },
    "grafanaConfigurations": {
      "security": {
        "csrfAlwaysCheck": false
      },
      "smtp": {
        "enabled": true,
        "fromAddress": "test@sendemail.com",
        "fromName": "emailsender",
        "host": "smtp.sendemail.com:587",
        "password": "<password>",
        "skipVerify": true,
        "startTLSPolicy": "OpportunisticStartTLS",
        "user": "username"
      },
      "snapshots": {
        "externalEnabled": true
      },
      "unifiedAlertingScreenshots": {
        "captureEnabled": false
      },
      "users": {
        "editorsCanAdmin": true,
        "viewersCanEdit": true
      }
    },
    "grafanaIntegrations": {
      "azureMonitorWorkspaceIntegrations": [
        {
          "azureMonitorWorkspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"
        }
      ]
    },
    "grafanaMajorVersion": "9",
    "grafanaPlugins": {
      "sample-plugin-id": {}
    }
  },
  "sku": {
    "name": "Standard"
  },
  "tags": {
    "Environment": "Dev 2"
  }
}

Sample response

{
  "name": "myWorkspace",
  "type": "Microsoft.Dashboard/grafana",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace",
  "location": "West US",
  "properties": {
    "apiKey": "Enabled",
    "autoGeneratedDomainNameLabelScope": "TenantReuse",
    "deterministicOutboundIP": "Enabled",
    "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com",
    "enterpriseConfigurations": {
      "marketplaceAutoRenew": "Enabled",
      "marketplacePlanId": "myPlanId"
    },
    "grafanaConfigurations": {
      "security": {
        "csrfAlwaysCheck": false
      },
      "smtp": {
        "enabled": true,
        "fromAddress": "test@sendemail.com",
        "fromName": "emailsender",
        "host": "smtp.sendemail.com:587",
        "skipVerify": true,
        "startTLSPolicy": "OpportunisticStartTLS",
        "user": "username"
      },
      "snapshots": {
        "externalEnabled": true
      },
      "users": {
        "editorsCanAdmin": true,
        "viewersCanEdit": true
      }
    },
    "grafanaIntegrations": {
      "azureMonitorWorkspaceIntegrations": [
        {
          "azureMonitorWorkspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"
        }
      ]
    },
    "grafanaMajorVersion": "9",
    "grafanaPlugins": {
      "sample-plugin-id": {
        "pluginId": "sample-plugin-id"
      }
    },
    "grafanaVersion": "9.4.5",
    "outboundIPs": [
      "192.168.0.1",
      "192.168.0.2"
    ],
    "provisioningState": "Succeeded",
    "publicNetworkAccess": "Enabled",
    "zoneRedundancy": "Enabled"
  },
  "sku": {
    "name": "Standard"
  },
  "tags": {
    "Environment": "Dev 2"
  }
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Dashboard/locations/eastus2/operationStatuses/sample-op-status?api-version=2025-08-01
{
  "name": "myWorkspace",
  "type": "Microsoft.Dashboard/grafana",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace",
  "location": "West US",
  "properties": {
    "apiKey": "Enabled",
    "autoGeneratedDomainNameLabelScope": "TenantReuse",
    "deterministicOutboundIP": "Enabled",
    "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com",
    "enterpriseConfigurations": {
      "marketplaceAutoRenew": "Enabled",
      "marketplacePlanId": "myPlanId"
    },
    "grafanaConfigurations": {
      "security": {
        "csrfAlwaysCheck": false
      },
      "smtp": {
        "enabled": true,
        "fromAddress": "test@sendemail.com",
        "fromName": "emailsender",
        "host": "smtp.sendemail.com:587",
        "skipVerify": true,
        "startTLSPolicy": "OpportunisticStartTLS",
        "user": "username"
      },
      "snapshots": {
        "externalEnabled": true
      },
      "users": {
        "editorsCanAdmin": true,
        "viewersCanEdit": true
      }
    },
    "grafanaIntegrations": {
      "azureMonitorWorkspaceIntegrations": [
        {
          "azureMonitorWorkspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"
        }
      ]
    },
    "grafanaMajorVersion": "9",
    "grafanaPlugins": {
      "sample-plugin-id": {
        "pluginId": "sample-plugin-id"
      }
    },
    "grafanaVersion": "9.4.5",
    "provisioningState": "Accepted",
    "publicNetworkAccess": "Enabled",
    "zoneRedundancy": "Enabled"
  },
  "sku": {
    "name": "Standard"
  },
  "systemData": {
    "createdAt": "2020-02-03T01:01:01.1075056Z",
    "createdBy": "string",
    "createdByType": "User",
    "lastModifiedAt": "2020-02-04T02:03:01.1974346Z",
    "lastModifiedBy": "string",
    "lastModifiedByType": "User"
  },
  "tags": {
    "Environment": "Dev 2"
  }
}

Definitions

Name Description
ApiKey

The api key setting of the Grafana instance.

AutoGeneratedDomainNameLabelScope

Scope for dns deterministic name hash calculation

AzureMonitorWorkspaceIntegration

Integrations for Azure Monitor Workspace.

createdByType

The type of identity that created the resource.

CreatorCanAdmin

The creator will have admin access for the Grafana instance.

DeterministicOutboundIP

Whether a Grafana instance uses deterministic outbound IPs.

EnterpriseConfigurations

Enterprise settings of a Grafana instance

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

GrafanaConfigurations

Server configurations of a Grafana instance

GrafanaIntegrations

GrafanaIntegrations is a bundled observability experience (e.g. pre-configured data source, tailored Grafana dashboards, alerting defaults) for common monitoring scenarios.

GrafanaPlugin

Plugin of Grafana

ManagedGrafana

The grafana resource type.

ManagedGrafanaProperties

Properties specific to the grafana resource.

ManagedGrafanaPropertiesUpdateParameters

The properties parameters for a PATCH request to a grafana resource.

ManagedGrafanaUpdateParameters

The parameters for a PATCH request to a grafana resource.

ManagedServiceIdentity

Managed service identity (system assigned and/or user assigned identities)

ManagedServiceIdentityType

Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).

MarketplaceAutoRenew

The AutoRenew setting of the Enterprise subscription

PrivateEndpoint

The Private Endpoint resource.

PrivateEndpointConnection

The Private Endpoint Connection resource.

PrivateEndpointConnectionProvisioningState

The current provisioning state.

PrivateEndpointServiceConnectionStatus

The private endpoint connection status.

PrivateLinkServiceConnectionState

A collection of information about the state of the connection between service consumer and provider.

ProvisioningState
PublicNetworkAccess

Indicate the state for enable or disable traffic over the public interface.

ResourceSku

Represents the SKU of a resource.

Security

Grafana security settings

Size

Specifies the capacity tier of the Grafana instance.

Smtp

Email server settings. https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp

Snapshots

Grafana Snapshots settings

StartTLSPolicy

The StartTLSPolicy setting of the SMTP configuration https://pkg.go.dev/github.com/go-mail/mail#StartTLSPolicy

systemData

Metadata pertaining to creation and last modification of the resource.

UnifiedAlertingScreenshots

Grafana Unified Alerting Screenshots settings

UserAssignedIdentity

User assigned identity properties

Users

Grafana users settings

ZoneRedundancy

The zone redundancy setting of the Grafana instance.

ApiKey

The api key setting of the Grafana instance.

Value Description
Disabled
Enabled

AutoGeneratedDomainNameLabelScope

Scope for dns deterministic name hash calculation

Value Description
TenantReuse

AzureMonitorWorkspaceIntegration

Integrations for Azure Monitor Workspace.

Name Type Description
azureMonitorWorkspaceResourceId

string

The resource Id of the connected Azure Monitor Workspace.

createdByType

The type of identity that created the resource.

Value Description
User
Application
ManagedIdentity
Key

CreatorCanAdmin

The creator will have admin access for the Grafana instance.

Value Description
Disabled

Creator admin access is disabled

Enabled

Creator admin access is enabled

DeterministicOutboundIP

Whether a Grafana instance uses deterministic outbound IPs.

Value Description
Disabled
Enabled

EnterpriseConfigurations

Enterprise settings of a Grafana instance

Name Type Description
marketplaceAutoRenew

MarketplaceAutoRenew

The AutoRenew setting of the Enterprise subscription

marketplacePlanId

string

The Plan Id of the Azure Marketplace subscription for the Enterprise plugins

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

GrafanaConfigurations

Server configurations of a Grafana instance

Name Type Description
security

Security

Grafana security settings

smtp

Smtp

Email server settings. https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp

snapshots

Snapshots

Grafana Snapshots settings

unifiedAlertingScreenshots

UnifiedAlertingScreenshots

Grafana Unified Alerting Screenshots settings

users

Users

Grafana users settings

GrafanaIntegrations

GrafanaIntegrations is a bundled observability experience (e.g. pre-configured data source, tailored Grafana dashboards, alerting defaults) for common monitoring scenarios.

Name Type Description
azureMonitorWorkspaceIntegrations

AzureMonitorWorkspaceIntegration[]

Integrations for Azure Monitor Workspace.

GrafanaPlugin

Plugin of Grafana

Name Type Description
pluginId

string

Grafana plugin id

ManagedGrafana

The grafana resource type.

Name Type Description
id

string

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

identity

ManagedServiceIdentity

The managed service identities assigned to this resource.

location

string

The geo-location where the resource lives

name

string

The name of the resource

properties

ManagedGrafanaProperties

Properties specific to the grafana resource.

sku

ResourceSku

The Sku of the grafana resource.

systemData

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags

object

Resource tags.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

ManagedGrafanaProperties

Properties specific to the grafana resource.

Name Type Default value Description
apiKey

ApiKey

Disabled

The api key setting of the Grafana instance.

autoGeneratedDomainNameLabelScope

AutoGeneratedDomainNameLabelScope

Scope for dns deterministic name hash calculation.

creatorCanAdmin

CreatorCanAdmin

The creator will have admin access for the Grafana instance.

deterministicOutboundIP

DeterministicOutboundIP

Disabled

Whether a Grafana instance uses deterministic outbound IPs.

endpoint

string

The endpoint of the Grafana instance.

enterpriseConfigurations

EnterpriseConfigurations

Enterprise settings of a Grafana instance

grafanaConfigurations

GrafanaConfigurations

Server configurations of a Grafana instance

grafanaIntegrations

GrafanaIntegrations

GrafanaIntegrations is a bundled observability experience (e.g. pre-configured data source, tailored Grafana dashboards, alerting defaults) for common monitoring scenarios.

grafanaMajorVersion

string

The major Grafana software version to target.

grafanaPlugins

<string,  GrafanaPlugin>

Installed plugin list of the Grafana instance. Key is plugin id, value is plugin definition.

grafanaVersion

string

The Grafana software version.

outboundIPs

string[]

List of outbound IPs if deterministicOutboundIP is enabled.

privateEndpointConnections

PrivateEndpointConnection[]

The private endpoint connections of the Grafana instance.

provisioningState

ProvisioningState

Provisioning state of the resource.

publicNetworkAccess

PublicNetworkAccess

Enabled

Indicate the state for enable or disable traffic over the public interface.

zoneRedundancy

ZoneRedundancy

Disabled

The zone redundancy setting of the Grafana instance.

ManagedGrafanaPropertiesUpdateParameters

The properties parameters for a PATCH request to a grafana resource.

Name Type Default value Description
apiKey

ApiKey

Disabled

The api key setting of the Grafana instance.

creatorCanAdmin

CreatorCanAdmin

The creator will have admin access for the Grafana instance.

deterministicOutboundIP

DeterministicOutboundIP

Disabled

Whether a Grafana instance uses deterministic outbound IPs.

enterpriseConfigurations

EnterpriseConfigurations

Enterprise settings of a Grafana instance

grafanaConfigurations

GrafanaConfigurations

Server configurations of a Grafana instance

grafanaIntegrations

GrafanaIntegrations

GrafanaIntegrations is a bundled observability experience (e.g. pre-configured data source, tailored Grafana dashboards, alerting defaults) for common monitoring scenarios.

grafanaMajorVersion

string

The major Grafana software version to target.

grafanaPlugins

<string,  GrafanaPlugin>

Update of Grafana plugin. Key is plugin id, value is plugin definition. If plugin definition is null, plugin with given plugin id will be removed. Otherwise, given plugin will be installed.

publicNetworkAccess

PublicNetworkAccess

Enabled

Indicate the state for enable or disable traffic over the public interface.

zoneRedundancy

ZoneRedundancy

Disabled

The zone redundancy setting of the Grafana instance.

ManagedGrafanaUpdateParameters

The parameters for a PATCH request to a grafana resource.

Name Type Description
identity

ManagedServiceIdentity

The managed identity of the grafana resource.

properties

ManagedGrafanaPropertiesUpdateParameters

Properties specific to the managed grafana resource.

sku

ResourceSku

Represents the SKU of a resource.

tags

object

The new tags of the grafana resource.

ManagedServiceIdentity

Managed service identity (system assigned and/or user assigned identities)

Name Type Description
principalId

string (uuid)

The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.

tenantId

string (uuid)

The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.

type

ManagedServiceIdentityType

Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).

userAssignedIdentities

<string,  UserAssignedIdentity>

User-Assigned Identities
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.

ManagedServiceIdentityType

Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).

Value Description
None
SystemAssigned
UserAssigned
SystemAssigned,UserAssigned

MarketplaceAutoRenew

The AutoRenew setting of the Enterprise subscription

Value Description
Disabled
Enabled

PrivateEndpoint

The Private Endpoint resource.

Name Type Description
id

string

The ARM identifier for Private Endpoint

PrivateEndpointConnection

The Private Endpoint Connection resource.

Name Type Description
id

string

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

The name of the resource

properties.groupIds

string[]

The private endpoint connection group ids.

properties.privateEndpoint

PrivateEndpoint

The resource of private end point.

properties.privateLinkServiceConnectionState

PrivateLinkServiceConnectionState

A collection of information about the state of the connection between service consumer and provider.

properties.provisioningState

PrivateEndpointConnectionProvisioningState

The provisioning state of the private endpoint connection resource.

systemData

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

PrivateEndpointConnectionProvisioningState

The current provisioning state.

Value Description
Succeeded
Creating
Deleting
Failed

PrivateEndpointServiceConnectionStatus

The private endpoint connection status.

Value Description
Pending
Approved
Rejected

PrivateLinkServiceConnectionState

A collection of information about the state of the connection between service consumer and provider.

Name Type Description
actionsRequired

string

A message indicating if changes on the service provider require any updates on the consumer.

description

string

The reason for approval/rejection of the connection.

status

PrivateEndpointServiceConnectionStatus

Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.

ProvisioningState

Value Description
Accepted
Creating
Updating
Deleting
Succeeded
Failed
Canceled
Deleted
NotSpecified

PublicNetworkAccess

Indicate the state for enable or disable traffic over the public interface.

Value Description
Enabled
Disabled

ResourceSku

Represents the SKU of a resource.

Name Type Description
name

string

The name of the SKU.

size

Size

Specifies the capacity tier of the Grafana instance.

Security

Grafana security settings

Name Type Description
csrfAlwaysCheck

boolean

Set to true to execute the CSRF check even if the login cookie is not in a request (default false).

Size

Specifies the capacity tier of the Grafana instance.

Value Description
X1

X1 capacity tier

X2

X2 capacity tier

Smtp

Email server settings. https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp

Name Type Default value Description
enabled

boolean

False

Enable this to allow Grafana to send email. Default is false

fromAddress

string

Address used when sending out emails https://pkg.go.dev/net/mail#Address

fromName

string

Name to be used when sending out emails. Default is "Azure Managed Grafana Notification" https://pkg.go.dev/net/mail#Address

host

string

SMTP server hostname with port, e.g. test.email.net:587

password

string (password)

Password of SMTP auth. If the password contains # or ;, then you have to wrap it with triple quotes

skipVerify

boolean

Verify SSL for SMTP server. Default is false https://pkg.go.dev/crypto/tls#Config

startTLSPolicy

StartTLSPolicy

The StartTLSPolicy setting of the SMTP configuration https://pkg.go.dev/github.com/go-mail/mail#StartTLSPolicy

user

string

User of SMTP auth

Snapshots

Grafana Snapshots settings

Name Type Description
externalEnabled

boolean

Set to false to disable external snapshot publish endpoint

StartTLSPolicy

The StartTLSPolicy setting of the SMTP configuration https://pkg.go.dev/github.com/go-mail/mail#StartTLSPolicy

Value Description
OpportunisticStartTLS
MandatoryStartTLS
NoStartTLS

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string (date-time)

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string (date-time)

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.

UnifiedAlertingScreenshots

Grafana Unified Alerting Screenshots settings

Name Type Description
captureEnabled

boolean

Set to false to disable capture screenshot in Unified Alert due to performance issue.

UserAssignedIdentity

User assigned identity properties

Name Type Description
clientId

string (uuid)

The client ID of the assigned identity.

principalId

string (uuid)

The principal ID of the assigned identity.

Users

Grafana users settings

Name Type Description
editorsCanAdmin

boolean

Set to true so editors can administrate dashboards, folders and teams they create.

viewersCanEdit

boolean

Set to true so viewers can access and use explore and perform temporary edits on panels in dashboards they have access to. They cannot save their changes.

ZoneRedundancy

The zone redundancy setting of the Grafana instance.

Value Description
Disabled
Enabled