diff --git a/Azure Services/Dev Box/Alerts/README b/Azure Services/Dev Box/Alerts/README new file mode 100644 index 00000000..e7cf202f --- /dev/null +++ b/Azure Services/Dev Box/Alerts/README @@ -0,0 +1 @@ +Put alerts in this folder \ No newline at end of file diff --git a/Azure Services/Dev Box/Queries/README b/Azure Services/Dev Box/Queries/README new file mode 100644 index 00000000..f121024f --- /dev/null +++ b/Azure Services/Dev Box/Queries/README @@ -0,0 +1 @@ +Put queries in this folder \ No newline at end of file diff --git a/Azure Services/Dev Box/Queries/consumed compute per user Display Name.kql b/Azure Services/Dev Box/Queries/consumed compute per user Display Name.kql new file mode 100644 index 00000000..cb0f3618 --- /dev/null +++ b/Azure Services/Dev Box/Queries/consumed compute per user Display Name.kql @@ -0,0 +1,14 @@ +// Author: Microsoft Azure +// Display name: Consumed compute per user Display Name +// Description: Display consumed compute per user in hours +// Categories: Azure Resources +// Resource types: Dev Box +// Topic: Dev Box Billing + +//required: Need to export SigninLogs of Entra ID to Log Analytics to have the Display Name (Name and Surname) +DevCenterBillingEventLogs +| where UsageType == "Compute" +| summarize HoursConsumed = sum(Quantity) by UserId +| join kind=leftouter (SigninLogs | where ConditionalAccessStatus =="success" | distinct UserId, Identity) on UserId +| project Identity, HoursConsumed +| render columnchart \ No newline at end of file diff --git a/Azure Services/Dev Box/Queries/consumed compute per user in timeline.kql b/Azure Services/Dev Box/Queries/consumed compute per user in timeline.kql new file mode 100644 index 00000000..464ee644 --- /dev/null +++ b/Azure Services/Dev Box/Queries/consumed compute per user in timeline.kql @@ -0,0 +1,14 @@ +// Author: Microsoft Azure +// Display name: Consumed compute per user Display Name +// Description: Display consumed compute per user in hours +// Categories: Azure Resources +// Resource types: Dev Box +// Topic: Dev Box Billing + +//required: Need to export SigninLogs of Entra ID to Log Analytics to have the Display Name (Name and Surname) +DevCenterBillingEventLogs +| where UsageType == "Compute" +| summarize HoursConsumed = sum(Quantity) by UserId, bin(TimeGenerated, 1h) +| join kind=leftouter (SigninLogs | where ConditionalAccessStatus =="success" | distinct UserId, Identity) on UserId +| project Identity, HoursConsumed, TimeGenerated +| render columnchart with (xcolumn=TimeGenerated, ycolumns=Identity, series=HoursConsumed) \ No newline at end of file diff --git a/Azure Services/Dev Box/Queries/consumed compute per user.kql b/Azure Services/Dev Box/Queries/consumed compute per user.kql new file mode 100644 index 00000000..4cf8f45a --- /dev/null +++ b/Azure Services/Dev Box/Queries/consumed compute per user.kql @@ -0,0 +1,11 @@ +// Author: Microsoft Azure +// Display name: Consumed compute per user +// Description: Display consumed compute per user in hours +// Categories: Azure Resources +// Resource types: Dev Box +// Topic: Dev Box Billing + +DevCenterBillingEventLogs +| where UsageType == "Compute" +| summarize Horas=sum(Quantity) by UserId +| render columnchart \ No newline at end of file diff --git a/Azure Services/Dev Box/Workbooks/README b/Azure Services/Dev Box/Workbooks/README new file mode 100644 index 00000000..7b19c105 --- /dev/null +++ b/Azure Services/Dev Box/Workbooks/README @@ -0,0 +1 @@ +Put workbooks in this folder \ No newline at end of file