-
-
Notifications
You must be signed in to change notification settings - Fork 15
Installation
Kamil Mrzygłód edited this page Aug 29, 2024
·
7 revisions
ACE can be download as ZIP package containing a single executable file. Check releases to find the most recent version download URL. If you want to run it with your CICD pipeline, download the package and unzip it like so (below example presents ACE run in Azure DevOps YAML pipeline):
trigger:
- main
pool:
vmImage: ubuntu-latest
jobs:
- job: RunNoCache
steps:
- task: Bash@3
inputs:
targetType: 'inline'
script: |
wget https://github.com/TheCloudTheory/arm-estimator/releases/download/1.5/linux-x64.zip
unzip linux-x64.zip
chmod +x ./azure-cost-estimator
- task: AzureCLI@2
inputs:
azureSubscription: 'ACE'
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
./azure-cost-estimator templates/acr.bicep cf70b558-b930-45e4-9048-ebcefb926adf arm-estimator-tests-rg
ACE can be also download and used as containerized application. Check this wiki page for details. Basic usage (presented as Azure DevOps job):
job: Main
displayName: Run deployment test
pool:
vmImage: ubuntu-22.04
steps:
- checkout: self
fetchDepth: 0
- task: Bash@3
displayName: Cost forecasting
inputs:
targetType: inline
script: |
docker run -e AZURE_CLIENT_ID=$(Client_Id) -e AZURE_TENANT_ID=$(Tenant_Id) -e AZURE_CLIENT_SECRET=$(Client_Secret) -v $(pwd)/templates:/app/templates thecloudtheory/azure-cost-estimator templates/acr.bicep <subscription-id> <resource-group-name>