This directory contains the PowerShell module for the Dashboard service.
- Modifiable: yes
- Generated: all
- Committed: yes
- Packaged: yes
This module was primarily generated via AutoRest using the PowerShell extension.
- Az.Accounts module, version 2.7.5 or greater
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
For information on how to develop for Az.Dashboard
, see how-to.md.
commit: 02ed6d4aac29881364f8698b4fdac9c76cd0f538
require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- $(repo)/specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2022-08-01/grafana.json
title: Dashboard
module-version: 0.1.0
subject-prefix: Grafana
identity-correction-for-post: true
resourcegroup-append: true
nested-object-to-string: true
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
"@autorest/powershell": "3.x"
directive:
- from: swagger-document
where: $.definitions.ResourceSku.properties
transform: >-
return {
"name": {
"description": "The Sku of the grafana resource.",
"type": "string"
}
}
- from: swagger-document
where: $.definitions.GrafanaIntegrations.properties.azureMonitorWorkspaceIntegrations
transform: >-
return {
"type": "array",
"x-ms-identifiers": [],
"description": "The MonitorWorkspaceIntegration of Azure Managed Grafana.",
"items": {
"$ref": "#/definitions/AzureMonitorWorkspaceIntegration"
}
}
- where:
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
remove: true
- where:
parameter-name: WorkspaceName
set:
parameter-name: Name
alias: GrafanaName
- where:
subject: PrivateEndpointConnection
remove: true
- where:
subject: PrivateLinkResource
remove: true
- where:
verb: New
subject: Grafana
hide: true
- where:
parameter-name: GrafanaIntegrationAzureMonitorWorkspaceIntegration
set:
parameter-name: MonitorWorkspaceIntegration
# The cmdlet's name to long, Re-name it
# - model-cmdlet:
# - AzureMonitorWorkspaceIntegration