Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/validate_and_fix_notebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:

- name: Commit changes
run: |
git fetch origin
git checkout -b ${{ github.event.pull_request.head.ref }} origin/${{ github.event.pull_request.head.ref }}
git add -A
git commit -m "Fix notebook format issues" || echo "No changes to commit"
git pull --rebase origin ${{ github.event.pull_request.head.ref }} || echo "No rebase needed"
git push origin HEAD:${{ github.event.pull_request.head.ref }}
111 changes: 111 additions & 0 deletions Cost-Management/BillingReport.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# Billing Report - Overview

Costa Rica

[![GitHub](https://badgen.net/badge/icon/github?icon=github&label)](https://github.com) [![Open Source? Yes!](https://badgen.net/badge/Open%20Source%20%3F/Yes%21/blue?icon=github)](https://github.com/Naereen/badges/)

[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/)
[brown9804](https://github.com/brown9804)

Last updated: 2025-05-02

----------

<details>
<summary><b>List of References</b> (Click to expand)</summary>

- [Cost Management documentation](https://learn.microsoft.com/en-us/azure/cost-management-billing/costs/)
- [Cost Management + Billing documentation](https://learn.microsoft.com/en-us/azure/cost-management-billing/)

</details>

<details>
<summary><b>Table of Content</b> (Click to expand)</summary>

- [Cost Analysis](#cost-analysis)
- [Billing Report](#billing-report)

</details>

## Cost Analysis

- Select `Cost Analysis` from the Cost Management menu.
- `Use filters and groupings` to drill down into cost details by resource, resource group, or tags.
- `Save and share custom views` to keep stakeholders informed.

<img width="611" alt="image" src="https://github.com/user-attachments/assets/9b7ad624-99c8-4bd6-bbd0-f3ac1e717b78">

## Billing Report

> Generate and download billing reports for specific resources.

> [!NOTE]
> The total cost of the reservation is spread over the term of the reservation. This means that instead of paying the full amount upfront, the cost is amortized over the reservation period, making it easier to manage and predict expenses. <br/>

> `For example`:
> By committing to the F64 reservation of Microsoft Fabric, you receive a significant discount compared to the pay-as-you-go rate. The pay-as-you-go rate might be $11.52 per hour, but with the reservation, you pay $6.853 per hour, saving ~41%

- **Navigate to Subscription**:
- `Sign in` to the Azure portal.
- `Select` the subscription where the factory is located from the `Subscriptions` menu.
- **Access Cost Analysis**:
- In the left-hand menu, click on `Cost Management + Billing`.
- Under `Cost Management`, click on `Cost analysis`.

<img width="550" alt="image" src="https://github.com/user-attachments/assets/601db977-1fc1-4cab-8e2d-f93f5857909f">

- **Select Time Range**:
- In the Cost Analysis window, `click on the date range selector` at the top of the page.
- `Choose the start and end dates` for the period during which the issue occurred.
- `Apply` the selected date range.

<img width="395" alt="image" src="https://github.com/user-attachments/assets/4b0a9485-5b87-4c73-9179-d22eed3bdb8e">

- **Group by** :
- In the Cost Analysis window, find the `Group by` dropdown menu.
- Select the desired option, e.g `Meter` from the dropdown options to group the costs by meter.

<img width="550" alt="image" src="https://github.com/user-attachments/assets/4f015458-d068-4375-90e5-1c78c9ec412e">

- **Add Filter**:
- Click on `Add filter` located above the cost breakdown chart.
- From the first dropdown menu, select `Resource`.
- From the second dropdown menu, `select the resource ID` of the factory in question.
- `Apply` the filter to narrow down the costs to the specific resource.

<img width="503" alt="image" src="https://github.com/user-attachments/assets/9f6461f2-e6f1-4ceb-a5ae-d730d57a11ed">

| **Filter** | **Description** |
|-------------------|---------------------------------------------------------------------------------|
| Billing period | Allows you to break down costs by the month they were invoiced. |
| Charge type | Differentiates between usage, purchase, refund, and unused reservation costs. |
| Department | Breaks down costs by EA department, if applicable. |
| Frequency | Indicates whether a charge is one-time, recurring, or usage-based. |
| Invoice ID | Breaks down costs by billed invoice. |
| Location | Breaks down costs by resource location or region. |
| Meter | Breaks down costs by usage meter. |
| Pricing model | Differentiates between on-demand, reservation, or spot usage. |
| Product | Breaks down costs by product name. |
| Provider | Breaks down costs by provider type (e.g., Azure, Microsoft 365, AWS). |
| Publisher type | Differentiates between Microsoft, Azure, AWS, and Marketplace costs. |
| Reservation | Breaks down costs by reservation. |
| Resource | Breaks down costs by resource. |
| Resource group | Breaks down costs by resource group. |
| Service name | Breaks down costs by Azure service. |
| Service tier | Breaks down costs by Azure usage meter subclassification. |
| Subscription | Breaks down costs by Azure subscription and AWS linked account. |
| Tag | Breaks down costs by tag values for a specific tag key. |
| UnitOfMeasure | The billing unit of measure for the service. |

- **Download Report**:
- At the top of the Cost Analysis window, click on the `Download` button.
- `Choose the format` (e.g., CSV, Excel) for the report.
- `Save the report` to your local machine.
- `Share the report` with the relevant stakeholders or team members.

<img width="550" alt="image" src="https://github.com/user-attachments/assets/f677d4b9-882e-4893-9624-a0cad7624d73">

<div align="center">
<h3 style="color: #4CAF50;">Total Visitors</h3>
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
</div>
69 changes: 69 additions & 0 deletions Cost-Management/BudgetAlerts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Budget \& Alerts - Overview

Costa Rica

[![GitHub](https://badgen.net/badge/icon/github?icon=github&label)](https://github.com) [![Open Source? Yes!](https://badgen.net/badge/Open%20Source%20%3F/Yes%21/blue?icon=github)](https://github.com/Naereen/badges/)

[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/)
[brown9804](https://github.com/brown9804)

Last updated: 2025-05-02

----------

<details>
<summary><b>List of References</b> (Click to expand)</summary>

- [Tutorial: Create and manage budgets](https://learn.microsoft.com/en-us/azure/cost-management-billing/costs/tutorial-acm-create-budgets?tabs=psbudget)
- [Use cost alerts to monitor usage and spending](https://learn.microsoft.com/en-us/azure/cost-management-billing/costs/cost-mgt-alerts-monitor-usage-spending)

</details>

<details>
<summary><b>Table of Content</b> (Click to expand)</summary>

- [Set up Budgets](#set-up-budgets)
- [Setting Up Alerts](#setting-up-alerts)
- [Optimizing Costs](#optimizing-costs)

</details>

> Accessing Cost Management:

- `Sign in` to the Azure portal.
- `Navigate` to `Cost Management + Billing` from the left-hand menu.

<img width="326" alt="image" src="https://github.com/user-attachments/assets/39f453f1-31a5-49fb-a2db-031e7a89ba98">

## Set up Budgets

- Go to `Cost Management` > `Budgets`.

<img width="324" alt="image" src="https://github.com/user-attachments/assets/b7f7eb28-e8a7-4029-ab34-16dbde88fb55">

- `Click on` `+ Add` to create a new budget.

<img width="434" alt="image" src="https://github.com/user-attachments/assets/61e7e1fa-4d2c-423a-84b7-ee82c66b9a19">

- `Define the scope` (e.g., subscription or resource group), set the budget amount, and configure the reset period (monthly, quarterly, or annually).
- `Set up alerts` for actual and forecasted costs, and specify email recipients for notifications.

<img width="434" alt="image" src="https://github.com/user-attachments/assets/14fb5d90-36fd-498a-8e4d-e5d8bc4f8a9c">

## Setting Up Alerts

- Go to `Cost Management` > `Alerts`.
- Click on `+ Add` to create a new alert.
- `Choose the alert type` (e.g., anomaly detection) and configure the thresholds and notification settings.

<img width="550" alt="image" src="https://github.com/user-attachments/assets/763e70ab-38fa-43b3-bd15-037ce17d427c">

## Optimizing Costs

- Review cost-saving recommendations provided by Azure.
- Implement suggested optimizations to reduce unnecessary spending.

<div align="center">
<h3 style="color: #4CAF50;">Total Visitors</h3>
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
</div>
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Last updated: 2025-05-02
- [Microsoft Purview for Fabric](#microsoft-purview-for-fabric)
- [Networking](#networking)
- [Monitoring and Observability](#monitoring-and-observability)
- [Cost Management](#cost-management)

</details>

Expand Down Expand Up @@ -168,6 +169,25 @@ Click to read more about [Microsoft Purview for Fabric - Overview](./Purview-Fab
- **Event Hub Integration**: Use Event Hub to capture and analyze events for real-time monitoring. For example, leverage it for [Automating pipeline execution with Activator](./Monitoring-Observability/FabricActivatorRulePipeline/)
- **Alerting**: Configure alerts for critical events and thresholds to ensure timely responses to issues. For example, [Steps to Configure Capacity Alerts](./Monitoring-Observability/StepsCapacityAlert.md)

## Cost Management

> You can leverage `Azure Cost Management`, a suite of tools designed to help organizations monitor, allocate, and optimize their cloud spending. It provides comprehensive insights into your Azure usage and costs, enabling you to manage your budget effectively and ensure that your spending aligns with your financial goals.

> [!TIP]
>
> - **Use Tags**: Ensure your resources are properly tagged to make filtering and grouping easier.
> - **Save Views**: You can save custom views in Cost Analysis for quick access in the future.
> - **Set Up Alerts**: Consider setting up cost alerts to monitor spending and avoid unexpected charges.

| Feature | Details |
|------------------|-----------------------------------------------------------------------------------------------|
| **Cost Analysis**| - **Visualization**: View and analyze your costs through various charts and graphs.<br/>- **Filtering and Grouping**: Break down costs by resource, resource group, subscription, or tags to understand spending patterns. |
| **Budgeting** | - **Create Budgets**: Set budgets for different scopes like subscriptions or resource groups.<br/>- **Alerts**: Configure alerts to notify you when spending exceeds predefined thresholds. |
| **Cost Allocation**| - **Tag Inheritance**: Enable tag inheritance to ensure costs are allocated correctly.<br/>- **Shared Costs**: Split shared costs across multiple departments or projects. |
| **Optimization** | - **Recommendations**: Receive recommendations for cost-saving opportunities.<br/>- **Anomaly Detection**: Identify and address spending anomalies proactively. |
| **Reporting** | - **Custom Reports**: Generate custom reports to share with stakeholders.<br/>- **Power BI Integration**: Use Power BI for advanced reporting and dashboard creation. |
| **Automation** | - **Data Export**: Automate the export of cost data to storage accounts for further analysis.<br/>- **Integration**: Integrate cost data with external tools and processes. |

<div align="center">
<h3 style="color: #4CAF50;">Total Visitors</h3>
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
Expand Down