You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The NGINXaaS for Azure cost analysis tool provides a detailed hourly cost breakdown of your NGINXaaS deployment usage for each component (NCU, WAF, Ports, Data). It fetches real-time metrics directly from Azure Monitor using the Azure SDK and calculates costs based on actual usage.
154
+
155
+
<h3>Prerequisites</h3>
156
+
157
+
Before using the cost analysis script:
158
+
159
+
1.**Python 3.7+** installed on your system
160
+
2.**pip3** (Python package manager) installed
161
+
3.**Azure SDK for Python** installed:
162
+
163
+
```bash
164
+
pip3 install azure-identity azure-mgmt-monitor
165
+
```
166
+
167
+
4. **NGINXaaS for Azure deployment** with monitoring enabled
168
+
5. **Azure AD Tenant ID** (required for authentication)
169
+
6. **Monitoring Reader permissions** on your NGINXaaS resource
170
+
171
+
<h4>Setting up Azure Permissions</h4>
172
+
173
+
<strong>Get Tenant ID:</strong>
174
+
175
+
1. Go to Azure Portal → Microsoft Entra ID → Overview
176
+
2. Copy the <strong>Tenant ID</strong>
177
+
178
+
<strong>Grant Access:</strong>
179
+
180
+
1. Go to your NGINX resource → Access control (IAM) → Add role assignment
181
+
2. Role: <strong>Monitoring Reader</strong> → Assign to your user account
✅ Cost breakdown exported to nginxaas_cost_breakdown.csv
250
+
📊 Summary: 72 hours, Total cost: $32.40
251
+
✅ Cost analysis completed successfully!
252
+
```
253
+
254
+
{{< /details >}}
255
+
256
+
<h3>Understanding the Results</h3>
257
+
258
+
<h4>Cost Components</h4>
259
+
260
+
- **Fixed costs**: Fixed deployment cost (varies by region and WAF usage)
261
+
- **NCU costs**: Variable costs based on actual NCU consumption
262
+
- **WAF costs**: Additional costs when Web Application Firewall is enabled
263
+
- **Port costs**: Additional costs for listen ports beyond the first 5
264
+
- **Data processing**: Costs for data processed ($0.005/GB across all regions)
265
+
266
+
<h3>Additional Billing Resources</h3>
267
+
268
+
For comprehensive billing information and cost planning, refer to these additional resources:
269
+
270
+
- **[Usage and Cost Estimator]({{< relref "usage-and-cost-estimator.md" >}})**: Interactive tool for planning and estimating costs before deployment
271
+
- **[Billing Overview]({{< relref "overview.md" >}})**: Complete billing model explanation and pricing details
272
+
273
+
This cost analysis tool helps you understand your actual NGINX for Azure spending by analyzing real usage metrics, enabling you to optimize costs and plan future deployments effectively.
0 commit comments