Skip to content

feat: add APIM costing & showback sample (#138)#143

Open
ncheruvu-MSFT wants to merge 2 commits intomainfrom
feature/costing-sample-138
Open

feat: add APIM costing & showback sample (#138)#143
ncheruvu-MSFT wants to merge 2 commits intomainfrom
feature/costing-sample-138

Conversation

@ncheruvu-MSFT
Copy link

Summary

Adds a new costing & showback sample that demonstrates how to track and allocate API costs using Azure API Management with Azure Monitor, Application Insights, Log Analytics, and Cost Management.

Changes

  • New sample: samples/costing/ with full notebook, Bicep templates, workbook, and clean-up
  • Cost Management export via managed identity (no storage key access needed)
  • Azure Monitor Workbook with cost allocation, usage analytics, and response code analysis
  • Screenshots for cost reports and dashboard views
  • README with configuration options, prerequisites, and screenshot gallery
  • Shared updates: Minor updates to azure_resources.py and template notebook

How to Test

  1. Deploy any infrastructure (e.g. simple-apim)
  2. Open samples/costing/create.ipynb and Run All
  3. Verify workbook deploys and displays cost data

- Add costing sample with cost allocation workbook, cost exports, and budget alerts

- Add screenshots for cost reports and dashboard views

- Remove manual fallback steps (managed identity handles export auth)

- Update README with screenshot gallery

- Update shared azure_resources and template notebook
@github-actions
Copy link

github-actions bot commented Feb 7, 2026

🐍 Python 3.14 Results

Metric Status Value
Pylint Score 10.00/10
Unit Tests success
Code Coverage 📊 100%

Full Workflow Logs

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

Python 3.14 Detailed Test Results

1 458 tests  ±0   1 458 ✅ ±0   11s ⏱️ -4s
    1 suites ±0       0 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit b4df83d. ± Comparison against base commit bb5f8b4.

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

🐍 Python 3.12 Results

Metric Status Value
Pylint Score 10.00/10
Unit Tests success
Code Coverage 📊 100%

Full Workflow Logs

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

🐍 Python 3.13 Results

Metric Status Value
Pylint Score 10.00/10
Unit Tests success
Code Coverage 📊 100%

Full Workflow Logs

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

Python 3.12 Detailed Test Results

1 458 tests  ±0   1 458 ✅ ±0   15s ⏱️ ±0s
    1 suites ±0       0 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit b4df83d. ± Comparison against base commit bb5f8b4.

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

Python 3.13 Detailed Test Results

1 458 tests  ±0   1 458 ✅ ±0   14s ⏱️ -1s
    1 suites ±0       0 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit b4df83d. ± Comparison against base commit bb5f8b4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant