Terraform SetupAvailable in v1.18.8+
Overview
ScaleOps provides a Terraform module to integrate with Azure Cost Management.
Prerequisites
- Terraform 1.10.0 or higher
- Azure CLI
- Azure subscription with appropriate permissions
Usage
Using ScaleOps Managed Application
module "scaleops_azure_cost_integration" {
source = "https://scriptshelf.scaleops.com/azure/cost/integrate.tf.tar.gz"
subscription_id = "<SUBSCRIPTION_ID>"
application_id = "<APPLICATION_ID>"
}Creating New Application
module "scaleops_azure_cost_integration" {
source = "https://scriptshelf.scaleops.com/azure/cost/integrate.tf.tar.gz"
subscription_id = "<SUBSCRIPTION_ID>"
create_application = true
}Outputs
The module provides several outputs for integration with ScaleOps:
application_id: Azure AD Application IDapplication_secret: Application secret (sensitive, only when creating new application)storage_account_name: Storage account namecost_export_name: Cost export namehelm_values_yaml: Ready-to-use Helm values
Apply Helm Values
After running the script, apply the provided Helm values to your ScaleOps installation. The configuration will look like this:
cloudBillingIntegration:
azure:
enabled: true
# applicationId: <APPLICATION_ID> # Optional, Only required if not creating a new application
# applicationSecret: <APPLICATION_SECRET> # Optional, Only required if not creating a new applicationFor full Helm values reference, see the Advanced Setup.