Hi @Sangeetha Vadukut Try the following bicep
resource dashboardTile 'Microsoft.Portal/dashboards/tiles@2021-08-01-preview' = {
name: 'dashboardTileName'
location: 'westus'
properties: {
lenses: {
'0': {
order: 0
parts: {
'0': {
position: {
x: 0
y: 0
rowSpan: 2
colSpan: 3
}
metadata: {
inputs: [
{
name: 'queryInputs'
value: {
timespan: {
duration: 'PT1H'
start: null
end: null
}
id: '/subscriptions/6531c8c8-df32-4254-d717-b6e983273e5d/resourceGroups/contoso/providers/Microsoft.Web/serverfarms/appServicePlanName'
chartType: 0
metrics: [
{
name: 'Requests'
displayName: 'Server Requests'
aggregation: 'Total'
chartType: 'line'
color: '#00bfff'
}
{
name: 'ResponseTime'
displayName: 'Server Response Time'
aggregation: 'Average'
chartType: 'line'
color: '#ff8c00'
}
{
name: 'CpuTime'
displayName: 'CPU Performance'
aggregation: 'Average'
chartType: 'line'
color: '#ff0000'
}
{
name: 'MemoryWorkingSet'
displayName: 'Memory'
aggregation: 'Average'
chartType: 'line'
color: '#008000'
}
]
}
}
]
type: 'Extension/HubsExtension/PartType/MonitorChartPart'
}
}
}
}
}
}
}
Make sure you update the resource with the ID you want the tile to display for.