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 |
|---|---|---|---|---|
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
|
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
|
workspace
|
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 |
The managed identity of the grafana resource. |
|
| properties |
Properties specific to the managed grafana resource. |
|
| sku |
Represents the SKU of a resource. |
|
| tags |
object |
The new tags of the grafana resource. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Azure operation completed successfully. |
|
| 202 Accepted |
The request has been accepted for processing, but processing has not yet completed. Headers
|
|
| Other Status Codes |
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 |
|---|---|
|
Api |
The api key setting of the Grafana instance. |
|
Auto |
Scope for dns deterministic name hash calculation |
|
Azure |
Integrations for Azure Monitor Workspace. |
|
created |
The type of identity that created the resource. |
|
Creator |
The creator will have admin access for the Grafana instance. |
|
Deterministic |
Whether a Grafana instance uses deterministic outbound IPs. |
|
Enterprise |
Enterprise settings of a Grafana instance |
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Error response |
|
Grafana |
Server configurations of a Grafana instance |
|
Grafana |
GrafanaIntegrations is a bundled observability experience (e.g. pre-configured data source, tailored Grafana dashboards, alerting defaults) for common monitoring scenarios. |
|
Grafana |
Plugin of Grafana |
|
Managed |
The grafana resource type. |
|
Managed |
Properties specific to the grafana resource. |
|
Managed |
The properties parameters for a PATCH request to a grafana resource. |
|
Managed |
The parameters for a PATCH request to a grafana resource. |
|
Managed |
Managed service identity (system assigned and/or user assigned identities) |
|
Managed |
Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). |
|
Marketplace |
The AutoRenew setting of the Enterprise subscription |
|
Private |
The Private Endpoint resource. |
|
Private |
The Private Endpoint Connection resource. |
|
Private |
The current provisioning state. |
|
Private |
The private endpoint connection status. |
|
Private |
A collection of information about the state of the connection between service consumer and provider. |
|
Provisioning |
|
|
Public |
Indicate the state for enable or disable traffic over the public interface. |
|
Resource |
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 |
|
Start |
The StartTLSPolicy setting of the SMTP configuration https://pkg.go.dev/github.com/go-mail/mail#StartTLSPolicy |
|
system |
Metadata pertaining to creation and last modification of the resource. |
|
Unified |
Grafana Unified Alerting Screenshots settings |
|
User |
User assigned identity properties |
| Users |
Grafana users settings |
|
Zone |
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 |
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 |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorResponse
Error response
| Name | Type | Description |
|---|---|---|
| error |
The error object. |
GrafanaConfigurations
Server configurations of a Grafana instance
| Name | Type | Description |
|---|---|---|
| security |
Grafana security settings |
|
| smtp |
Email server settings. https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp |
|
| snapshots |
Grafana Snapshots settings |
|
| unifiedAlertingScreenshots |
Grafana Unified Alerting Screenshots settings |
|
| 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 |
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 |
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 |
Properties specific to the grafana resource. |
|
| sku |
The Sku of the grafana resource. |
|
| 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 | Disabled |
The api key setting of the Grafana instance. |
|
| autoGeneratedDomainNameLabelScope |
Scope for dns deterministic name hash calculation. |
||
| creatorCanAdmin |
The creator will have admin access for the Grafana instance. |
||
| deterministicOutboundIP | Disabled |
Whether a Grafana instance uses deterministic outbound IPs. |
|
| endpoint |
string |
The endpoint of the Grafana instance. |
|
| enterpriseConfigurations |
Enterprise settings of a Grafana instance |
||
| 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. |
||
| grafanaMajorVersion |
string |
The major Grafana software version to target. |
|
| grafanaPlugins |
<string,
Grafana |
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 |
The private endpoint connections of the Grafana instance. |
||
| provisioningState |
Provisioning state of the resource. |
||
| publicNetworkAccess | Enabled |
Indicate the state for enable or disable traffic over the public interface. |
|
| 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 | Disabled |
The api key setting of the Grafana instance. |
|
| creatorCanAdmin |
The creator will have admin access for the Grafana instance. |
||
| deterministicOutboundIP | Disabled |
Whether a Grafana instance uses deterministic outbound IPs. |
|
| enterpriseConfigurations |
Enterprise settings of a Grafana instance |
||
| 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. |
||
| grafanaMajorVersion |
string |
The major Grafana software version to target. |
|
| grafanaPlugins |
<string,
Grafana |
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 | Enabled |
Indicate the state for enable or disable traffic over the public interface. |
|
| 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 |
The managed identity of the grafana resource. |
|
| properties |
Properties specific to the managed grafana resource. |
|
| sku |
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 |
Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). |
|
| userAssignedIdentities |
<string,
User |
User-Assigned Identities |
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 |
The resource of private end point. |
|
| properties.privateLinkServiceConnectionState |
A collection of information about the state of the connection between service consumer and provider. |
|
| properties.provisioningState |
The provisioning state of the private endpoint connection resource. |
|
| 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 |
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 |
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 |
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 |
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 |
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 |