{"id":14063902,"url":"https://github.com/MertSenel/azure-usage-and-cost-tracking","last_synced_at":"2025-07-29T17:30:53.252Z","repository":{"id":148980739,"uuid":"309534673","full_name":"MertSenel/azure-usage-and-cost-tracking","owner":"MertSenel","description":"Sample Azure Native Serverless Cloud Solution, Usage and Cost tracker using Azure Durable Functions(Powershell), Azure Storage, Sendgrid(Email)","archived":false,"fork":false,"pushed_at":"2020-12-13T01:44:52.000Z","size":1003,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-04T02:35:15.071Z","etag":null,"topics":["automation","azure","azure-application-insights","azure-durable-functions","azure-functions","azure-log-analytics","devops","powershell","serverless"],"latest_commit_sha":null,"homepage":"https://mertsenel.tech/","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MertSenel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-11-03T01:01:59.000Z","updated_at":"2023-10-21T03:14:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"7a6e1598-a5bc-43f9-9361-5dd47af99d0e","html_url":"https://github.com/MertSenel/azure-usage-and-cost-tracking","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MertSenel/azure-usage-and-cost-tracking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MertSenel%2Fazure-usage-and-cost-tracking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MertSenel%2Fazure-usage-and-cost-tracking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MertSenel%2Fazure-usage-and-cost-tracking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MertSenel%2Fazure-usage-and-cost-tracking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MertSenel","download_url":"https://codeload.github.com/MertSenel/azure-usage-and-cost-tracking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MertSenel%2Fazure-usage-and-cost-tracking/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267726728,"owners_count":24134896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","azure","azure-application-insights","azure-durable-functions","azure-functions","azure-log-analytics","devops","powershell","serverless"],"created_at":"2024-08-13T07:03:34.076Z","updated_at":"2025-07-29T17:30:52.869Z","avatar_url":"https://github.com/MertSenel.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# Azure Native Usage \u0026 Cost Tracking\n\u003cimg src=\"static/images/AzureUsageAndCostTracker.png\" alt=\"AzureUsageAndCostTracking\"/\u003e\n\n#### ScreenShots:\n\n##### Azure Portal Dashboard:\nA Dashboard that You can Extend \u0026 Customize\n\u003cimg src=\"static/images/Dashboard.png\" alt=\"Dashboard\"/\u003e\n\n##### Sample Daily Email Report:\nGet a glance of your last 7 days - Daily! not much later.\nDetect Cost Spikes Sooner\n\u003cimg src=\"static/images/Azure-Cost-Report-Sample.png\" alt=\"Azure-Cost-Report-Sample.png\"/\u003e\n\n##### Powered by Serverless Azure Durable Functions for PowerShell\nFully Powered by Azure Native Technologies\n\u003cimg src=\"static/images/AzureDurableFunctions.png\" alt=\"AzureDurableFunctions\"/\u003e\n\n##### Better Blob Exports (both JSON \u0026 CSV) formats\nBlobs are placed in logical YYYY/MM/ path structure with Day.ext format file names, easy to locate and run further ETLs. \n\u003cimg src=\"static/images/DailyBlobExports.png\" alt=\"DailyBlobExports\"/\u003e\n\n##### Azure Storage Table for Long Term Retention\nRecords will also be stored in a storage table for curating Daily Reports that covers last 7 days. In order to not hit limits of Azure Billing API, I only extract 1 or 2 days worth of data at a time and use table for retro lookups. \n\u003cimg src=\"static/images/AzureStorageTableLongTerm.png\" alt=\"AzureStorageTableLongTerm\"/\u003e\n\n##### Your Data Your Rules, Logs are also Pushed to a Log Analytics Workspace\nThis is the data backend for the Azure Portal Dashboard Charts. However, once your logs are here possibilities are endless.  \n\n\u003cimg src=\"static/images/AzureLogAnalyticsShortTermAnalytics.png\" alt=\"AzureLogAnalyticsShortTermAnalytics\"/\u003e\n\nYou can create Azure Workbooks, Azure Monitor Alerts or just run your custom queries to deep dive into your Azure usage data.  \n\n\u003cimg src=\"static/images/AzureLogAnalyticsShortTermAnalyticsCustomQueries.png\" alt=\"AzureLogAnalyticsShortTermAnalyticsCustomQueries\"/\u003e\n\n#### Project Naming Legend\n__Project Details__  \nProject Name: Mert Senel Tech Azure Usage Export  \nProject ShortCode: mstaue \n\n| Environments     |     Code       |\n| ------------- |:-------------:|\n| Development    | dev |\n| Test      | tst      |\n| Staging | stg      |\n| Production | prd |\n\n| Azure Resources     |     Code       |\n| ------------- |:-------------:|\n| Function App    | fnc  |\n| Storage Account     | str      |\n| Application Insights | ais      |\n| Log Analytics Workspace | oms |\n| Azure Portal Dashboard | dsh |\n| Azure Sendgrid | sgd |\n\n| Project Resources | Name          |\n| ------------- |:-------------:|\n| App Service Plan (Consumption/Serverless) | {projCode}{env}asp |\n| Function App  | {projCode}{env}fnc |\n| Function App Storage       | {projCode}{env}fncstr  |\n| Azure Usage Exports Storage | {projCode}{env}str   |\n| Application Insights  | {projCode}{env}ais |\n| Log Analytics Workspace | {projCode}{env}oms|\n| Azure Usage \u0026 Cost Monitoring Dashboard | {projCode}{env}dsh |\n| Azure Sendgrid | {projCode}{env}sgd |\n\nResources Generated Example: \n\u003cimg src=\"static/images/AzureResources - Zoom.png\" alt=\"AzureResources\"/\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMertSenel%2Fazure-usage-and-cost-tracking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMertSenel%2Fazure-usage-and-cost-tracking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMertSenel%2Fazure-usage-and-cost-tracking/lists"}