Microsoft.Portal/dashboards: The property "type" expected a value of type "'Extension/HubsExtension/PartType/MarkdownPart'" but the provided value is of type "'Extension/HubsExtension/PartType/MonitorChartPart'"
- Dominant language
- TypeScript
- Stars
- 108
- Forks
- 44
- Avg merge
- 18h 53m
- Merged PRs (30d)
- 29
Description
### Resource Type
Microsoft.Portal/dashboards
### Api Version
2020-09-01-preview
### Issue Type
Inaccurate property type(s)
### Other Notes
The property "type" expected a value of type "'Extension/HubsExtension/PartType/MarkdownPart'" but the provided value is of type "'Extension/HubsExtension/PartType/MonitorChartPart'"
### Bicep Repro
@description('The location of the monitor.')
param location string
@description('The name of the monitor dashboard.')
param dashboardName string
@description('The id of the application insights.')
param applicationInsightsId string
@description('The id of the api management.')
param apimId string
@description('The id of the application gateway.')
param applicationGatewayId string
@description('The tags.')
param tags object
resource dashboard 'Microsoft.Portal/dashboards@2020-09-01-preview' = {
name: dashboardName
location: location
tags: tags
properties: {
lenses: [
{
order: 0
parts: [
{
position: {
x: 0
y: 0
rowSpan: 3
colSpan: 4
}
metadata: {
inputs: [
{
name: 'options'
value: {
chart: {
metrics: [
{
resourceMetadata: {
id: applicationInsightsId
}
name: 'exceptions/count'
aggregationType: 1
namespace: 'microsoft.insights/components/kusto'
}
]
title: 'Exceptions'
}
}
}
]
type: 'Extension/HubsExtension/PartType/MonitorChartPart'
}
}
{
position: {
x: 4
y: 0
rowSpan: 3
colSpan: 4
}
metadata: {
inputs: [
{
name: 'options'
value: {
chart: {
metrics: [
{
resourceMetadata: {
id: applicationInsightsId
}
name: 'requests/failed'
aggregationType: 1
namespace: 'microsoft.insights/components/kusto'
}
]
title: 'Failed requests'
}
}
}
]
type: 'Extension/HubsExtension/PartType/MonitorChartPart'
}
}
{
position: {
x: 8
y: 0
rowSpan: 3
colSpan: 4
}
metadata: {
inputs: [
{
name: 'options'
value: {
chart: {
metrics: [
{
resourceMetadata: {
id: applicationInsightsId
}
name: 'exceptions/server'
aggregationType: 1
namespace: 'microsoft.insights/components/kusto'
}
]
title: 'Server exceptions'
}
}
}
]
type: 'Extension/HubsExtension/PartType/MonitorChartPart'
}
}
{
position: {
x: 12
y: 0
rowSpan: 3
colSpan: 4
}
metadata: {
inputs: [
{
name: 'options'
value: {
chart: {
metrics: [
{
resourceMetadata: {
id: applicationInsightsId
}
name: 'requests/duration'
aggregationType: 1
namespace: 'microsoft.insights/components/kusto'
}
]
title: 'Server response time'
}
}
}
]
type: 'Extension/HubsExtension/PartType/MonitorChartPart'
}
}
{
position: {
x: 0
y: 3
rowSpan: 3
colSpan: 6
}
metadata: {
inputs: [
{
name: 'options'
value: {
chart: {
metrics: [
{
resourceMetadata: {
id: apimId
}
name: 'Capacity'
aggregationType: 4
namespace: 'microsoft.apimanagement/service'
}
]
title: 'Capacity'
}
}
}
]
type: 'Extension/HubsExtension/PartType/MonitorChartPart'
}
}
{
position: {
x: 6
y: 3
rowSpan: 3
colSpan: 5
}
metadata: {
inputs: [
{
name: 'options'
value: {
chart: {
metrics: [
{
resourceMetadata: {
id: apimId
}
name: 'BackendDuration'
aggregationType: 4
namespace: 'microsoft.apimanagement/service'
}
]
title: 'Duration of Backend Requests'
}
}
}
]
type: 'Extension/HubsExtension/PartType/MonitorChartPart'
}
}
{
position: {
x: 11
y: 3
rowSpan: 3
colSpan: 5
}
metadata: {
inputs: [
{
name: 'options'
value: {
chart: {
metrics: [
{
resourceMetadata: {
id: apimId
}
name: 'Requests'
aggregationType: 4
namespace: 'microsoft.apimanagement/service'
}
]
title: 'Requests'
}
}
}
]
type: 'Extension/HubsExtension/PartType/MonitorChartPart'
}
}
{
position: {
x: 0
y: 6
rowSpan: 3
colSpan: 6
}
metadata: {
inputs: [
{
name: 'options'
value: {
chart: {
metrics: [
{
resourceMetadata: {
id: applicationGatewayId
}
name: 'CurrentConnections'
aggregationType: 1
namespace: 'microsoft.network/applicationgateways'
}
]
title: 'Current Connections'
}
}
}
]
type: 'Extension/HubsExtension/PartType/MonitorChartPart'
}
}
{
position: {
x: 6
y: 6
rowSpan: 3
colSpan: 5
}
metadata: {
inputs: [
{
name: 'options'
value: {
chart: {
metrics: [
{
resourceMetadata: {
id: applicationGatewayId
}
name: 'UnhealthyHostCount'
aggregationType: 4
namespace: 'microsoft.network/applicationgateways'
}
]
title: 'Unhealthy Host Count'
}
}
}
]
type: 'Extension/HubsExtension/PartType/MonitorChartPart'
}
}
{
position: {
x: 11
y: 6
rowSpan: 3
colSpan: 5
}
metadata: {
inputs: [
{
name: 'options'
value: {
chart: {
metrics: [
{
resourceMetadata: {
id: applicationGatewayId
}
name: 'Throughput'
aggregationType: 4
namespace: 'microsoft.network/applicationgateways'
}
]
title: 'Throughput'
}
}
}
]
type: 'Extension/HubsExtension/PartType/MonitorChartPart'
}
}
]
}
]
metadata: {
model: {
timeRange: {
value: {
relative: {
duration: 24
timeUnit: 1
}
}
type: 'MsPortalFx.Composition.Configuration.ValueTypes.TimeRange'
}
}
}
}
}
### Confirm
- [X] I have read the troubleshooting guide and looked for duplicates.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the type definition for Microsoft.Portal/dashboards at API version 2020-09-01-preview and compare its metadata.type expectation with the Bicep repro. Done means MonitorChartPart is accepted for dashboard parts without being reported as the MarkdownPart type.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, typescript
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100