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.
Fixed ISF URL and added support for AOE release
- Loading branch information
Helder Pinto
committed
May 10, 2024
1 parent
b8262e3
commit 8fb4a17
Showing
66 changed files
with
22,987 additions
and
64 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
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
80 changes: 80 additions & 0 deletions
80
docs/deploy/optimization-engine/azuredeploy-0.2.1-rc.2.bicep
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,80 @@ | ||
targetScope = 'subscription' | ||
param rgName string | ||
param readerRoleAssignmentGuid string = guid(subscription().subscriptionId, rgName) | ||
param contributorRoleAssignmentGuid string = guid(rgName) | ||
param projectLocation string | ||
|
||
@description('The base URI where artifacts required by this template are located') | ||
param templateLocation string | ||
|
||
param storageAccountName string | ||
param automationAccountName string | ||
param sqlServerName string | ||
param sqlDatabaseName string = 'azureoptimization' | ||
param logAnalyticsReuse bool | ||
param logAnalyticsWorkspaceName string | ||
param logAnalyticsWorkspaceRG string | ||
param logAnalyticsRetentionDays int = 120 | ||
param sqlBackupRetentionDays int = 7 | ||
param sqlAdminLogin string | ||
|
||
@secure() | ||
param sqlAdminPassword string | ||
param cloudEnvironment string = 'AzureCloud' | ||
param authenticationOption string = 'ManagedIdentity' | ||
|
||
@description('Base time for all automation runbook schedules.') | ||
param baseTime string = utcNow('u') | ||
param resourceTags object | ||
|
||
param roleReader string = '/subscriptions/${subscription().subscriptionId}/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7' | ||
|
||
@description('Optional. Enable telemetry to track anonymous module usage trends, monitor for bugs, and improve future releases.') | ||
param enableDefaultTelemetry bool = true | ||
|
||
resource rg 'Microsoft.Resources/resourceGroups@2021-04-01' = { | ||
name: rgName | ||
location: projectLocation | ||
tags: resourceTags | ||
dependsOn: [] | ||
} | ||
|
||
module resourcesDeployment './azuredeploy-nested.bicep' = { | ||
name: 'resourcesDeployment' | ||
scope: resourceGroup(rgName) | ||
params: { | ||
projectLocation: projectLocation | ||
templateLocation: templateLocation | ||
storageAccountName: storageAccountName | ||
automationAccountName: automationAccountName | ||
sqlServerName: sqlServerName | ||
sqlDatabaseName: sqlDatabaseName | ||
logAnalyticsReuse: logAnalyticsReuse | ||
logAnalyticsWorkspaceName: logAnalyticsWorkspaceName | ||
logAnalyticsWorkspaceRG: logAnalyticsWorkspaceRG | ||
logAnalyticsRetentionDays: logAnalyticsRetentionDays | ||
sqlBackupRetentionDays: sqlBackupRetentionDays | ||
sqlAdminLogin: sqlAdminLogin | ||
sqlAdminPassword: sqlAdminPassword | ||
cloudEnvironment: cloudEnvironment | ||
authenticationOption: authenticationOption | ||
baseTime: baseTime | ||
contributorRoleAssignmentGuid: contributorRoleAssignmentGuid | ||
resourceTags: resourceTags | ||
enableDefaultTelemetry: enableDefaultTelemetry | ||
} | ||
dependsOn: [ | ||
rg | ||
] | ||
} | ||
|
||
resource readerRoleAssignmentGuid_resource 'Microsoft.Authorization/roleAssignments@2018-09-01-preview' = { | ||
name: readerRoleAssignmentGuid | ||
properties: { | ||
roleDefinitionId: roleReader | ||
principalId: resourcesDeployment.outputs.automationPrincipalId | ||
principalType: 'ServicePrincipal' | ||
} | ||
} | ||
|
||
output automationPrincipalId string = resourcesDeployment.outputs.automationPrincipalId |
Oops, something went wrong.