你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

New-AzGrafana

Create or update a workspace for Grafana resource. This API is idempotent, so user can either create a new grafana or update an existing grafana.

Syntax

New-AzGrafana
   -Name <String>
   -ResourceGroupName <String>
   -ApiKey <ApiKey>
   -AutoGeneratedDomainNameLabelScope <AutoGeneratedDomainNameLabelScope>
   -DeterministicOutboundIP <DeterministicOutboundIP>
   -IdentityType <ManagedServiceIdentityType>
   -Location <String>
   -PublicNetworkAccess <PublicNetworkAccess>
   -SkuName <String>
   -ZoneRedundancy <ZoneRedundancy>
   [-SubscriptionId <String>]
   [-IdentityUserAssignedIdentity <Hashtable>]
   [-MonitorWorkspaceIntegration <IAzureMonitorWorkspaceIntegration[]>]
   [-Tag <Hashtable>]
   [-DefaultProfile <PSObject>]
   [-AsJob]
   [-NoWait]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

Create or update a workspace for Grafana resource. This API is idempotent, so user can either create a new grafana or update an existing grafana.

Examples

Example 1: Create or update a workspace for Grafana resource.

New-AzGrafana -Name azpstest-grafana -ResourceGroupName azpstest-gp -ApiKey Enabled -AutoGeneratedDomainNameLabelScope 'TenantReuse' -DeterministicOutboundIP 'Enabled' -IdentityType 'SystemAssigned' -Location eastus -PublicNetworkAccess 'Enabled' -SkuName Standard -ZoneRedundancy 'Enabled' -Tag @{"Environment"="Dev"}

Location Name             ResourceGroupName
-------- ----             -----------------
eastus   azpstest-grafana azpstest-gp

Create or update a workspace for Grafana resource. This API is idempotent, so user can either create a new grafana or update an existing grafana.

Parameters

-ApiKey

The api key setting of the Grafana instance.

Type:ApiKey
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-AsJob

Run the command as a job

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-AutoGeneratedDomainNameLabelScope

Scope for dns deterministic name hash calculation.

Type:AutoGeneratedDomainNameLabelScope
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-DeterministicOutboundIP

Whether a Grafana instance uses deterministic outbound IPs.

Type:DeterministicOutboundIP
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-IdentityType

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

Type:ManagedServiceIdentityType
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-IdentityUserAssignedIdentity

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.

Type:Hashtable
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Location

The geo-location where the grafana resource lives

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-MonitorWorkspaceIntegration

The MonitorWorkspaceIntegration of Azure Managed Grafana. To construct, see NOTES section for MONITORWORKSPACEINTEGRATION properties and create a hash table.

Type:IAzureMonitorWorkspaceIntegration[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Name

The workspace name of Azure Managed Grafana.

Type:String
Aliases:GrafanaName
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-NoWait

Run the command asynchronously

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-PublicNetworkAccess

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

Type:PublicNetworkAccess
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

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

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-SkuName

The Sku of the grafana resource.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

The ID of the target subscription.

Type:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Accept pipeline input:False
Accept wildcard characters:False

-Tag

The tags for grafana resource.

Type:Hashtable
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ZoneRedundancy

The zone redundancy setting of the Grafana instance.

Type:ZoneRedundancy
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

IManagedGrafana

Notes

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

MONITORWORKSPACEINTEGRATION <IAzureMonitorWorkspaceIntegration[]>: The MonitorWorkspaceIntegration of Azure Managed Grafana.

  • [AzureMonitorWorkspaceResourceId <String>]: The resource Id of the connected Azure Monitor Workspace.