forked from microsoft/finops-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Hélder Pinto <hepint@microsoft.com> Co-authored-by: Helder Pinto <helder.pinto@microsoft.com>
- Loading branch information
1 parent
12efb0e
commit 861676f
Showing
239 changed files
with
81,548 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: AOE Continuous Deployment (DEV) | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- dev | ||
permissions: | ||
id-token: write | ||
contents: read | ||
jobs: | ||
AOE-CD: | ||
environment: aoe-dev | ||
runs-on: ubuntu-latest | ||
env: | ||
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
AOE_SQL_ADMIN: ${{ secrets.AOE_SQL_ADMIN }} | ||
AOE_SQL_PASSWD: ${{ secrets.AOE_SQL_PASSWD }} | ||
AOE_LOCATION: ${{ secrets.AOE_LOCATION }} | ||
AOE_NAMEPREFIX: ${{ secrets.AOE_NAMEPREFIX }} | ||
AOE_WORKSPACENAME: ${{ secrets.AOE_WORKSPACENAME }} | ||
AOE_WORKSPACERG: ${{ secrets.AOE_WORKSPACERG }} | ||
steps: | ||
- run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub for the ${{ github.ref_name }} branch of the ${{ github.repository }} repository!" | ||
- name: Installing modules | ||
shell: pwsh | ||
run: | | ||
Set-PSRepository PSGallery -InstallationPolicy Trusted | ||
Install-Module -Name Az.Accounts -RequiredVersion 2.19.0 -Force | ||
Install-Module -Name Az.Resources -RequiredVersion 6.16.2 -Force | ||
Install-Module -Name Az.Storage -RequiredVersion 6.2.0 -Force | ||
Install-Module -Name Az.OperationalInsights -RequiredVersion 3.2.0 -Force | ||
Install-Module -Name Az.Sql -RequiredVersion 4.14.1 -Force | ||
Install-Module -Name Az.Automation -RequiredVersion 1.10.0 -Force | ||
Install-Module -Name Microsoft.Graph.Authentication,Microsoft.Graph.Identity.DirectoryManagement -Force | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Login via Az module | ||
uses: azure/login@hf_447_release | ||
with: | ||
client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
enable-AzPSSession: true | ||
- name: Create Deployment Settings JSON file | ||
run: | | ||
echo '{ | ||
"SubscriptionId": "'"$AZURE_SUBSCRIPTION_ID"'", | ||
"NamePrefix": "'"$AOE_NAMEPREFIX"'", | ||
"WorkspaceReuse": "n", | ||
"DeployWorkbooks": "y", | ||
"SqlAdmin": "'"$AOE_SQL_ADMIN"'", | ||
"SqlPass": "'"$AOE_SQL_PASSWD"'", | ||
"TargetLocation": "'"$AOE_LOCATION"'", | ||
"DeployBenefitsUsageDependencies": "n" | ||
}' > ./src/optimization-engine/deploymentSettings.json | ||
- name: Testing PowerShell script call | ||
shell: pwsh | ||
run: | | ||
Set-Location ./src/optimization-engine | ||
./Deploy-AzureOptimizationEngine.ps1 -SilentDeploymentSettingsPath ./deploymentSettings.json -TemplateUri "https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref_name }}/src/optimization-engine/azuredeploy.bicep" | ||
- run: echo "🍏 This job's status is ${{ job.status }}." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: AOE Continuous Deployment (PROD) | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
permissions: | ||
id-token: write | ||
contents: read | ||
jobs: | ||
AOE-CD: | ||
environment: aoe-prod | ||
runs-on: ubuntu-latest | ||
env: | ||
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
AOE_SQL_ADMIN: ${{ secrets.AOE_SQL_ADMIN }} | ||
AOE_SQL_PASSWD: ${{ secrets.AOE_SQL_PASSWD }} | ||
AOE_LOCATION: ${{ secrets.AOE_LOCATION }} | ||
AOE_NAMEPREFIX: ${{ secrets.AOE_NAMEPREFIX }} | ||
steps: | ||
- run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub for the ${{ github.ref_name }} branch of the ${{ github.repository }} repository!" | ||
- name: Installing modules | ||
shell: pwsh | ||
run: | | ||
Set-PSRepository PSGallery -InstallationPolicy Trusted | ||
Install-Module -Name Az.Accounts -RequiredVersion 2.19.0 -Force | ||
Install-Module -Name Az.Resources -RequiredVersion 6.16.2 -Force | ||
Install-Module -Name Az.Storage -RequiredVersion 6.2.0 -Force | ||
Install-Module -Name Az.OperationalInsights -RequiredVersion 3.2.0 -Force | ||
Install-Module -Name Az.Sql -RequiredVersion 4.14.1 -Force | ||
Install-Module -Name Az.Automation -RequiredVersion 1.10.0 -Force | ||
Install-Module -Name Microsoft.Graph.Authentication,Microsoft.Graph.Identity.DirectoryManagement -Force | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Login via Az module | ||
uses: azure/login@hf_447_release | ||
with: | ||
client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
enable-AzPSSession: true | ||
- name: Create Deployment Settings JSON file | ||
run: | | ||
echo '{ | ||
"SubscriptionId": "'"$AZURE_SUBSCRIPTION_ID"'", | ||
"NamePrefix": "'"$AOE_NAMEPREFIX"'", | ||
"WorkspaceReuse": "n", | ||
"DeployWorkbooks": "y", | ||
"SqlAdmin": "'"$AOE_SQL_ADMIN"'", | ||
"SqlPass": "'"$AOE_SQL_PASSWD"'", | ||
"TargetLocation": "'"$AOE_LOCATION"'", | ||
"DeployBenefitsUsageDependencies": "n" | ||
}' > ./src/optimization-engine/deploymentSettings.json | ||
- name: Testing PowerShell script call | ||
shell: pwsh | ||
run: | | ||
Set-Location ./src/optimization-engine | ||
./Deploy-AzureOptimizationEngine.ps1 -SilentDeploymentSettingsPath ./deploymentSettings.json -TemplateUri "https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref_name }}/src/optimization-engine/azuredeploy.bicep" | ||
- run: echo "🍏 This job's status is ${{ job.status }}." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: AOE Continuous Deployment (TEST) | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- features/aoe | ||
permissions: | ||
id-token: write | ||
contents: read | ||
jobs: | ||
AOE-CD: | ||
environment: aoe-test | ||
runs-on: ubuntu-latest | ||
env: | ||
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
AOE_SQL_ADMIN: ${{ secrets.AOE_SQL_ADMIN }} | ||
AOE_SQL_PASSWD: ${{ secrets.AOE_SQL_PASSWD }} | ||
AOE_LOCATION: ${{ secrets.AOE_LOCATION }} | ||
AOE_NAMEPREFIX: ${{ secrets.AOE_NAMEPREFIX }} | ||
steps: | ||
- run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub for the ${{ github.ref_name }} branch of the ${{ github.repository }} repository!" | ||
- name: Installing modules | ||
shell: pwsh | ||
run: | | ||
Set-PSRepository PSGallery -InstallationPolicy Trusted | ||
Install-Module -Name Az.Accounts -RequiredVersion 2.19.0 -Force | ||
Install-Module -Name Az.Resources -RequiredVersion 6.16.2 -Force | ||
Install-Module -Name Az.Storage -RequiredVersion 6.2.0 -Force | ||
Install-Module -Name Az.OperationalInsights -RequiredVersion 3.2.0 -Force | ||
Install-Module -Name Az.Sql -RequiredVersion 4.14.1 -Force | ||
Install-Module -Name Az.Automation -RequiredVersion 1.10.0 -Force | ||
Install-Module -Name Microsoft.Graph.Authentication,Microsoft.Graph.Identity.DirectoryManagement -Force | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Login via Az module | ||
uses: azure/login@hf_447_release | ||
with: | ||
client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
enable-AzPSSession: true | ||
- name: Create Deployment Settings JSON file | ||
run: | | ||
echo '{ | ||
"SubscriptionId": "'"$AZURE_SUBSCRIPTION_ID"'", | ||
"NamePrefix": "'"$AOE_NAMEPREFIX"'", | ||
"WorkspaceReuse": "n", | ||
"DeployWorkbooks": "y", | ||
"SqlAdmin": "'"$AOE_SQL_ADMIN"'", | ||
"SqlPass": "'"$AOE_SQL_PASSWD"'", | ||
"TargetLocation": "'"$AOE_LOCATION"'", | ||
"DeployBenefitsUsageDependencies": "n" | ||
}' > ./src/optimization-engine/deploymentSettings.json | ||
- name: Testing PowerShell script call | ||
shell: pwsh | ||
run: | | ||
Set-Location ./src/optimization-engine | ||
./Deploy-AzureOptimizationEngine.ps1 -SilentDeploymentSettingsPath ./deploymentSettings.json -TemplateUri "https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref_name }}/src/optimization-engine/azuredeploy.bicep" | ||
- run: echo "🍏 This job's status is ${{ job.status }}." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.