Documentation ¶
Index ¶
- type Azurerm_portal_dashboardArgs
- type Azurerm_portal_dashboardOutputArgs
- type Azurerm_portal_dashboardResult
- type Azurerm_portal_dashboardResultOutput
- func (o Azurerm_portal_dashboardResultOutput) DashboardProperties() pulumi.StringOutput
- func (o Azurerm_portal_dashboardResultOutput) DisplayName() pulumi.StringPtrOutput
- func (Azurerm_portal_dashboardResultOutput) ElementType() reflect.Type
- func (o Azurerm_portal_dashboardResultOutput) Id() pulumi.StringOutput
- func (o Azurerm_portal_dashboardResultOutput) Location() pulumi.StringOutput
- func (o Azurerm_portal_dashboardResultOutput) Name() pulumi.StringPtrOutput
- func (o Azurerm_portal_dashboardResultOutput) ResourceGroupName() pulumi.StringOutput
- func (o Azurerm_portal_dashboardResultOutput) Tags() pulumi.StringMapOutput
- func (o Azurerm_portal_dashboardResultOutput) ToAzurerm_portal_dashboardResultOutput() Azurerm_portal_dashboardResultOutput
- func (o Azurerm_portal_dashboardResultOutput) ToAzurerm_portal_dashboardResultOutputWithContext(ctx context.Context) Azurerm_portal_dashboardResultOutput
- type Dashboarddeprecated
- type DashboardArgs
- type DashboardArray
- type DashboardArrayInput
- type DashboardArrayOutput
- func (DashboardArrayOutput) ElementType() reflect.Type
- func (o DashboardArrayOutput) Index(i pulumi.IntInput) DashboardOutput
- func (o DashboardArrayOutput) ToDashboardArrayOutput() DashboardArrayOutput
- func (o DashboardArrayOutput) ToDashboardArrayOutputWithContext(ctx context.Context) DashboardArrayOutput
- type DashboardInput
- type DashboardMap
- type DashboardMapInput
- type DashboardMapOutput
- type DashboardOutput
- func (o DashboardOutput) DashboardProperties() pulumi.StringOutput
- func (DashboardOutput) ElementType() reflect.Type
- func (o DashboardOutput) Location() pulumi.StringOutput
- func (o DashboardOutput) Name() pulumi.StringOutput
- func (o DashboardOutput) ResourceGroupName() pulumi.StringOutput
- func (o DashboardOutput) Tags() pulumi.StringMapOutput
- func (o DashboardOutput) ToDashboardOutput() DashboardOutput
- func (o DashboardOutput) ToDashboardOutputWithContext(ctx context.Context) DashboardOutput
- type DashboardState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Azurerm_portal_dashboardArgs ¶
type Azurerm_portal_dashboardArgs struct { // JSON data representing dashboard body. DashboardProperties *string `pulumi:"dashboardProperties"` // Specifies the display name of the shared Azure Portal Dashboard. DisplayName *string `pulumi:"displayName"` // Specifies the name of the shared Azure Portal Dashboard. Name *string `pulumi:"name"` // Specifies the name of the resource group the shared Azure Portal Dashboard is located in. ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of arguments for invoking azurerm_portal_dashboard.
type Azurerm_portal_dashboardOutputArgs ¶
type Azurerm_portal_dashboardOutputArgs struct { // JSON data representing dashboard body. DashboardProperties pulumi.StringPtrInput `pulumi:"dashboardProperties"` // Specifies the display name of the shared Azure Portal Dashboard. DisplayName pulumi.StringPtrInput `pulumi:"displayName"` // Specifies the name of the shared Azure Portal Dashboard. Name pulumi.StringPtrInput `pulumi:"name"` // Specifies the name of the resource group the shared Azure Portal Dashboard is located in. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` }
A collection of arguments for invoking azurerm_portal_dashboard.
func (Azurerm_portal_dashboardOutputArgs) ElementType ¶
func (Azurerm_portal_dashboardOutputArgs) ElementType() reflect.Type
type Azurerm_portal_dashboardResult ¶
type Azurerm_portal_dashboardResult struct { // JSON data representing dashboard body. DashboardProperties string `pulumi:"dashboardProperties"` DisplayName *string `pulumi:"displayName"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Azure Region where the shared Azure Portal dashboard exists. Location string `pulumi:"location"` Name *string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags assigned to the shared Azure Portal dashboard. Tags map[string]string `pulumi:"tags"` }
A collection of values returned by azurerm_portal_dashboard.
func Azurerm_portal_dashboard
deprecated
func Azurerm_portal_dashboard(ctx *pulumi.Context, args *Azurerm_portal_dashboardArgs, opts ...pulumi.InvokeOption) (*Azurerm_portal_dashboardResult, error)
Use this data source to access information about an existing shared dashboard in the Azure Portal. This is the data source of the `portal.Dashboard` resource.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/portal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := portal.LookupDashboard(ctx, &portal.LookupDashboardArgs{ Name: pulumi.StringRef("existing-dashboard"), ResourceGroupName: "dashboard-rg", }, nil) if err != nil { return err } ctx.Export("id", data.Azurerm_dashboard.Example.Id) return nil }) }
```
Deprecated: azure.dashboard.azurerm_portal_dashboard has been deprecated in favor of azure.portal.getDashboard
type Azurerm_portal_dashboardResultOutput ¶
type Azurerm_portal_dashboardResultOutput struct{ *pulumi.OutputState }
A collection of values returned by azurerm_portal_dashboard.
func Azurerm_portal_dashboardOutput ¶
func Azurerm_portal_dashboardOutput(ctx *pulumi.Context, args Azurerm_portal_dashboardOutputArgs, opts ...pulumi.InvokeOption) Azurerm_portal_dashboardResultOutput
func (Azurerm_portal_dashboardResultOutput) DashboardProperties ¶
func (o Azurerm_portal_dashboardResultOutput) DashboardProperties() pulumi.StringOutput
JSON data representing dashboard body.
func (Azurerm_portal_dashboardResultOutput) DisplayName ¶ added in v5.8.0
func (o Azurerm_portal_dashboardResultOutput) DisplayName() pulumi.StringPtrOutput
func (Azurerm_portal_dashboardResultOutput) ElementType ¶
func (Azurerm_portal_dashboardResultOutput) ElementType() reflect.Type
func (Azurerm_portal_dashboardResultOutput) Id ¶
func (o Azurerm_portal_dashboardResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (Azurerm_portal_dashboardResultOutput) Location ¶
func (o Azurerm_portal_dashboardResultOutput) Location() pulumi.StringOutput
The Azure Region where the shared Azure Portal dashboard exists.
func (Azurerm_portal_dashboardResultOutput) Name ¶
func (o Azurerm_portal_dashboardResultOutput) Name() pulumi.StringPtrOutput
func (Azurerm_portal_dashboardResultOutput) ResourceGroupName ¶
func (o Azurerm_portal_dashboardResultOutput) ResourceGroupName() pulumi.StringOutput
func (Azurerm_portal_dashboardResultOutput) Tags ¶
func (o Azurerm_portal_dashboardResultOutput) Tags() pulumi.StringMapOutput
A mapping of tags assigned to the shared Azure Portal dashboard.
func (Azurerm_portal_dashboardResultOutput) ToAzurerm_portal_dashboardResultOutput ¶
func (o Azurerm_portal_dashboardResultOutput) ToAzurerm_portal_dashboardResultOutput() Azurerm_portal_dashboardResultOutput
func (Azurerm_portal_dashboardResultOutput) ToAzurerm_portal_dashboardResultOutputWithContext ¶
func (o Azurerm_portal_dashboardResultOutput) ToAzurerm_portal_dashboardResultOutputWithContext(ctx context.Context) Azurerm_portal_dashboardResultOutput
type Dashboard
deprecated
type Dashboard struct { pulumi.CustomResourceState // JSON data representing dashboard body. See above for details on how to obtain this from the Portal. DashboardProperties pulumi.StringOutput `pulumi:"dashboardProperties"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of the Shared Dashboard. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the resource group in which to create the dashboard. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` }
## Example Usage
```go package main
import (
"fmt" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/portal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") mdContent := "# Hello all :)" if param := cfg.Get("mdContent"); param != "" { mdContent = param } videoLink := "https://www.youtube.com/watch?v=......" if param := cfg.Get("videoLink"); param != "" { videoLink = param } current, err := core.LookupSubscription(ctx, nil, nil) if err != nil { return err } example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } _, err = portal.NewDashboard(ctx, "my-board", &portal.DashboardArgs{ ResourceGroupName: example.Name, Location: example.Location, Tags: pulumi.StringMap{ "source": pulumi.String("managed"), }, DashboardProperties: pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v", "{\n", " \"lenses\": {\n", " \"0\": {\n", " \"order\": 0,\n", " \"parts\": {\n", " \"0\": {\n", " \"position\": {\n", " \"x\": 0,\n", " \"y\": 0,\n", " \"rowSpan\": 2,\n", " \"colSpan\": 3\n", " },\n", " \"metadata\": {\n", " \"inputs\": [],\n", " \"type\": \"Extension/HubsExtension/PartType/MarkdownPart\",\n", " \"settings\": {\n", " \"content\": {\n", " \"settings\": {\n", " \"content\": \"", mdContent, "\",\n", " \"subtitle\": \"\",\n", " \"title\": \"\"\n", " }\n", " }\n", " }\n", " }\n", " }, \n", " \"1\": {\n", " \"position\": {\n", " \"x\": 5,\n", " \"y\": 0,\n", " \"rowSpan\": 4,\n", " \"colSpan\": 6\n", " },\n", " \"metadata\": {\n", " \"inputs\": [],\n", " \"type\": \"Extension/HubsExtension/PartType/VideoPart\",\n", " \"settings\": {\n", " \"content\": {\n", " \"settings\": {\n", " \"title\": \"Important Information\",\n", " \"subtitle\": \"\",\n", " \"src\": \"", videoLink, "\",\n", " \"autoplay\": true\n", " }\n", " }\n", " }\n", " }\n", " },\n", " \"2\": {\n", " \"position\": {\n", " \"x\": 0,\n", " \"y\": 4,\n", " \"rowSpan\": 4,\n", " \"colSpan\": 6\n", " },\n", " \"metadata\": {\n", " \"inputs\": [\n", " {\n", " \"name\": \"ComponentId\",\n", " \"value\": \"/subscriptions/", current.SubscriptionId, "/resourceGroups/myRG/providers/microsoft.insights/components/myWebApp\"\n", " }\n", " ],\n", " \"type\": \"Extension/AppInsightsExtension/PartType/AppMapGalPt\",\n", " \"settings\": {},\n", " \"asset\": {\n", " \"idInputName\": \"ComponentId\",\n", " \"type\": \"ApplicationInsights\"\n", " }\n", " }\n", " } \n", " }\n", " }\n", " },\n", " \"metadata\": {\n", " \"model\": {\n", " \"timeRange\": {\n", " \"value\": {\n", " \"relative\": {\n", " \"duration\": 24,\n", " \"timeUnit\": 1\n", " }\n", " },\n", " \"type\": \"MsPortalFx.Composition.Configuration.ValueTypes.TimeRange\"\n", " },\n", " \"filterLocale\": {\n", " \"value\": \"en-us\"\n", " },\n", " \"filters\": {\n", " \"value\": {\n", " \"MsPortalFx_TimeRange\": {\n", " \"model\": {\n", " \"format\": \"utc\",\n", " \"granularity\": \"auto\",\n", " \"relative\": \"24h\"\n", " },\n", " \"displayCache\": {\n", " \"name\": \"UTC Time\",\n", " \"value\": \"Past 24 hours\"\n", " },\n", " \"filteredPartIds\": [\n", " \"StartboardPart-UnboundPart-ae44fef5-76b8-46b0-86f0-2b3f47bad1c7\"\n", " ]\n", " }\n", " }\n", " }\n", " }\n", " }\n", "}\n")), }) if err != nil { return err } return nil }) }
```
It is recommended to follow the steps outlined [here](https://docs.microsoft.com/azure/azure-portal/azure-portal-dashboards-create-programmatically#fetch-the-json-representation-of-the-dashboard) to create a Dashboard in the Portal and extract the relevant JSON to use in this resource. From the extracted JSON, the contents of the `properties: {}` object can used. Variables can be injected as needed - see above example.
## Import
Dashboards can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:dashboard/dashboard:Dashboard my-board /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Portal/dashboards/00000000-0000-0000-0000-000000000000
```
Note the URI in the above sample can be found using the Resource Explorer tool in the Azure Portal.
Deprecated: azure.dashboard.Dashboard has been deprecated in favor of azure.portal.Dashboard
func GetDashboard ¶
func GetDashboard(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DashboardState, opts ...pulumi.ResourceOption) (*Dashboard, error)
GetDashboard gets an existing Dashboard resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewDashboard ¶
func NewDashboard(ctx *pulumi.Context, name string, args *DashboardArgs, opts ...pulumi.ResourceOption) (*Dashboard, error)
NewDashboard registers a new resource with the given unique name, arguments, and options.
func (*Dashboard) ElementType ¶
func (*Dashboard) ToDashboardOutput ¶
func (i *Dashboard) ToDashboardOutput() DashboardOutput
func (*Dashboard) ToDashboardOutputWithContext ¶
func (i *Dashboard) ToDashboardOutputWithContext(ctx context.Context) DashboardOutput
type DashboardArgs ¶
type DashboardArgs struct { // JSON data representing dashboard body. See above for details on how to obtain this from the Portal. DashboardProperties pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Shared Dashboard. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the dashboard. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a Dashboard resource.
func (DashboardArgs) ElementType ¶
func (DashboardArgs) ElementType() reflect.Type
type DashboardArray ¶
type DashboardArray []DashboardInput
func (DashboardArray) ElementType ¶
func (DashboardArray) ElementType() reflect.Type
func (DashboardArray) ToDashboardArrayOutput ¶
func (i DashboardArray) ToDashboardArrayOutput() DashboardArrayOutput
func (DashboardArray) ToDashboardArrayOutputWithContext ¶
func (i DashboardArray) ToDashboardArrayOutputWithContext(ctx context.Context) DashboardArrayOutput
type DashboardArrayInput ¶
type DashboardArrayInput interface { pulumi.Input ToDashboardArrayOutput() DashboardArrayOutput ToDashboardArrayOutputWithContext(context.Context) DashboardArrayOutput }
DashboardArrayInput is an input type that accepts DashboardArray and DashboardArrayOutput values. You can construct a concrete instance of `DashboardArrayInput` via:
DashboardArray{ DashboardArgs{...} }
type DashboardArrayOutput ¶
type DashboardArrayOutput struct{ *pulumi.OutputState }
func (DashboardArrayOutput) ElementType ¶
func (DashboardArrayOutput) ElementType() reflect.Type
func (DashboardArrayOutput) Index ¶
func (o DashboardArrayOutput) Index(i pulumi.IntInput) DashboardOutput
func (DashboardArrayOutput) ToDashboardArrayOutput ¶
func (o DashboardArrayOutput) ToDashboardArrayOutput() DashboardArrayOutput
func (DashboardArrayOutput) ToDashboardArrayOutputWithContext ¶
func (o DashboardArrayOutput) ToDashboardArrayOutputWithContext(ctx context.Context) DashboardArrayOutput
type DashboardInput ¶
type DashboardInput interface { pulumi.Input ToDashboardOutput() DashboardOutput ToDashboardOutputWithContext(ctx context.Context) DashboardOutput }
type DashboardMap ¶
type DashboardMap map[string]DashboardInput
func (DashboardMap) ElementType ¶
func (DashboardMap) ElementType() reflect.Type
func (DashboardMap) ToDashboardMapOutput ¶
func (i DashboardMap) ToDashboardMapOutput() DashboardMapOutput
func (DashboardMap) ToDashboardMapOutputWithContext ¶
func (i DashboardMap) ToDashboardMapOutputWithContext(ctx context.Context) DashboardMapOutput
type DashboardMapInput ¶
type DashboardMapInput interface { pulumi.Input ToDashboardMapOutput() DashboardMapOutput ToDashboardMapOutputWithContext(context.Context) DashboardMapOutput }
DashboardMapInput is an input type that accepts DashboardMap and DashboardMapOutput values. You can construct a concrete instance of `DashboardMapInput` via:
DashboardMap{ "key": DashboardArgs{...} }
type DashboardMapOutput ¶
type DashboardMapOutput struct{ *pulumi.OutputState }
func (DashboardMapOutput) ElementType ¶
func (DashboardMapOutput) ElementType() reflect.Type
func (DashboardMapOutput) MapIndex ¶
func (o DashboardMapOutput) MapIndex(k pulumi.StringInput) DashboardOutput
func (DashboardMapOutput) ToDashboardMapOutput ¶
func (o DashboardMapOutput) ToDashboardMapOutput() DashboardMapOutput
func (DashboardMapOutput) ToDashboardMapOutputWithContext ¶
func (o DashboardMapOutput) ToDashboardMapOutputWithContext(ctx context.Context) DashboardMapOutput
type DashboardOutput ¶
type DashboardOutput struct{ *pulumi.OutputState }
func (DashboardOutput) DashboardProperties ¶ added in v5.5.0
func (o DashboardOutput) DashboardProperties() pulumi.StringOutput
JSON data representing dashboard body. See above for details on how to obtain this from the Portal.
func (DashboardOutput) ElementType ¶
func (DashboardOutput) ElementType() reflect.Type
func (DashboardOutput) Location ¶ added in v5.5.0
func (o DashboardOutput) Location() pulumi.StringOutput
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
func (DashboardOutput) Name ¶ added in v5.5.0
func (o DashboardOutput) Name() pulumi.StringOutput
Specifies the name of the Shared Dashboard. Changing this forces a new resource to be created.
func (DashboardOutput) ResourceGroupName ¶ added in v5.5.0
func (o DashboardOutput) ResourceGroupName() pulumi.StringOutput
The name of the resource group in which to create the dashboard. Changing this forces a new resource to be created.
func (DashboardOutput) Tags ¶ added in v5.5.0
func (o DashboardOutput) Tags() pulumi.StringMapOutput
A mapping of tags to assign to the resource.
func (DashboardOutput) ToDashboardOutput ¶
func (o DashboardOutput) ToDashboardOutput() DashboardOutput
func (DashboardOutput) ToDashboardOutputWithContext ¶
func (o DashboardOutput) ToDashboardOutputWithContext(ctx context.Context) DashboardOutput
type DashboardState ¶
type DashboardState struct { // JSON data representing dashboard body. See above for details on how to obtain this from the Portal. DashboardProperties pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Shared Dashboard. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the dashboard. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
func (DashboardState) ElementType ¶
func (DashboardState) ElementType() reflect.Type