Merged PR 53: Version-control & CI/CD your Power BI reports: Using DevOps Git...
b7cc9160
Hector Lopez
committed
56 changed files
main.bicep
/devops/infrascode/coreinfra/main.bicep+89
/devops/infrascode/coreinfra/main.bicep
Add comment 1 Plus  //******************************************************************
Add comment 2 Plus  //INPUT PARAMETERS
Add comment 3 Plus  //******************************************************************
Add comment 4 Plus  param azTenantId string = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
Add comment 5 Plus  param azResourceGroupName string = 'name_of_company-d-rg '
Add comment 6 Plus  param azResourceGroupLocation string = 'westeurope'
Add comment 7 Plus  
Add comment 8 Plus  param azSqlServerName string = 'name_of_company-sharedinfra-d-sql-01'
Add comment 9 Plus  param azSqlServerAdminLogin string = 'SQLServerAdmin'
Add comment 10 Plus  @secure()
Add comment 11 Plus  param azSqlServerAdminLoginPassword string
Add comment 12 Plus  param azureADOnlyAuthentication bool = false
Add comment 13 Plus  param azSqlServerADAdminLogin string = 'SQLServerAdministrators'
Add comment 14 Plus  param azSqlServerADAdminType string = 'Group'
Add comment 15 Plus  param azSqlServerADAdminSID string = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
Add comment 16 Plus  param azSqlDbName string = 'myazuredatabase'
Add comment 17 Plus  param azSqlDbSkuName string = 'Basic'
Add comment 18 Plus  param azSqlDbSkuTier string = 'Basic'
Add comment 19 Plus  param azSqlDbSkuCapacity int = 5
Add comment 20 Plus  param azKeyVaultName string = 'name_of_company-sharedinfra-d-kv'
Add comment 21 Plus  param pbiSqlUserKVSecretName string = 'scrt-powebireport-sqluser-password'
Add comment 22 Plus  @secure()
Add comment 23 Plus  param pbiSqlUserPassword string
Add comment 24 Plus  
Add comment 25 Plus  //******************************************************************
Add comment 26 Plus  //VARIABLES
Add comment 27 Plus  //******************************************************************
Add comment 28 Plus  var azSqlServerAdministrators = {
Add comment 29 Plus   administratorType: 'ActiveDirectory'
Add comment 30 Plus   azureADOnlyAuthentication: azureADOnlyAuthentication
Add comment 31 Plus   login: azSqlServerADAdminLogin
Add comment 32 Plus   principalType: azSqlServerADAdminType
Add comment 33 Plus   sid: azSqlServerADAdminSID
Add comment 34 Plus   tenantId: azTenantId
Add comment 35 Plus  }
Add comment 36 Plus  
Add comment 37 Plus  //******************************************************************
Add comment 38 Plus  //RESOURCES & MODULES
Add comment 39 Plus  //******************************************************************
Add comment 40 Plus  targetScope = 'subscription'
Add comment 41 Plus  
Add comment 42 Plus  resource resourceGroup 'Microsoft.Resources/resourceGroups@2022-09-01' = {
Add comment 43 Plus   name: azResourceGroupName
Add comment 44 Plus   location: azResourceGroupLocation
Add comment 45 Plus  }
Add comment 46 Plus  
Add comment 47 Plus  module keyVault '../../../templates/bicep/kv.bicep' = {
Add comment 48 Plus   name: azKeyVaultName
Add comment 49 Plus   scope: resourceGroup
Add comment 50 Plus   params: {
Add comment 51 Plus   keyVaultName: azKeyVaultName
Add comment 52 Plus   tenantId: azTenantId
Add comment 53 Plus   }
Add comment 54 Plus  }
Add comment 55 Plus  
Add comment 56 Plus  module pbiSqlUserKVSecret '../../../templates/bicep/kv.secret.bicep' = {
Add comment 57 Plus   name: pbiSqlUserKVSecretName
Add comment 58 Plus   scope: resourceGroup
Add comment 59 Plus   params: {
Add comment 60 Plus   kvName: keyVault.name
Add comment 61 Plus   kvAssetName: pbiSqlUserKVSecretName
Add comment 62 Plus   kvAssetValue: pbiSqlUserPassword
Add comment 63 Plus   }
Add comment 64 Plus  }
Add comment 65 Plus  
Add comment 66 Plus  module sqlServer '../../../templates/bicep/sql.bicep' = {
Add comment 67 Plus   name: 'sqlServer'
Add comment 68 Plus   scope: resourceGroup
Add comment 69 Plus   params: {
Add comment 70 Plus   serverName: azSqlServerName
Add comment 71 Plus   administratorLogin: azSqlServerAdminLogin
Add comment 72 Plus   administratorLoginPassword: azSqlServerAdminLoginPassword
Add comment 73 Plus   administrators: azSqlServerAdministrators
Add comment 74 Plus   }
Add comment 75 Plus  }
Add comment 76 Plus  
Add comment 77 Plus  //******************************************************************
Add comment 78 Plus  module sqlDB '../../../templates/bicep/sqldb.bicep' = {
Add comment 79 Plus   name: azSqlDbName
Add comment 80 Plus   scope: resourceGroup
Add comment 81 Plus   params: {
Add comment 82 Plus   sqlServerName: azSqlServerName
Add comment 83 Plus   dbName: azSqlDbName
Add comment 84 Plus   dbSkuName: azSqlDbSkuName
Add comment 85 Plus   dbSkuTier: azSqlDbSkuTier
Add comment 86 Plus   dbSkuCapacity: azSqlDbSkuCapacity
Add comment 87 Plus   }
Add comment 88 Plus  }
Add comment 89 Plus  
variables-d.yml
/devops/pipelines/coreinfra/variables/variables-d.yml
/devops/pipelines/coreinfra/variables/variables-d.yml
variables-p.yml
/devops/pipelines/coreinfra/variables/variables-p.yml+25
/devops/pipelines/coreinfra/variables/variables-p.yml
Add comment 1 Plus  variables:
Add comment 2 Plus   #Azure DevOps (azdo) variables
Add comment 3 Plus   azdoServiceConnection: azdo-serviceconnection-arm-p
Add comment 4 Plus   azdoEnvironment: bicep_infrastructure-p
Add comment 5 Plus  
Add comment 6 Plus   #Azure Account (az) variables
Add comment 7 Plus   azSubscriptionId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Add comment 8 Plus   azTenantId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Add comment 9 Plus   azResourceGroupName: name_of_company-p-rg
Add comment 10 Plus   azResourceGroupLocation: westeurope
Add comment 11 Plus   azSqlServerName: name_of_company-sharedinfra-p-sql-01
Add comment 12 Plus   azSqlServerAdminLogin: SQLServerAdmin
Add comment 13 Plus   azSqlServerADAdminLogin: SQLServerAdministrators
Add comment 14 Plus   azSqlServerADAdminType: Group
Add comment 15 Plus   azSqlServerADAdminSID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Add comment 16 Plus   azSqlDbName: myazuredatabase
Add comment 17 Plus   azSqlDbSkuName: Basic
Add comment 18 Plus   azSqlDbSkuTier: Basic
Add comment 19 Plus   azSqlDbSkuCapacity: 5
Add comment 20 Plus   azKeyVaultName: name_of_company-sharedinfra-p-kv
Add comment 21 Plus  
Add comment 22 Plus   #DacDeployOptions
Add comment 23 Plus   dacpacBlockOnPossibleDataLoss: true
Add comment 24 Plus   pbiSqlUserName: 'powerbi.sqluser'
Add comment 25 Plus   pbiSqlUserKVSecretName: 'scrt-powebireport-sqluser-password'
variables.yml
/devops/pipelines/coreinfra/variables/variables.yml
/devops/pipelines/coreinfra/variables/variables.yml
coreinfra-cd-infrascode.yml
/devops/pipelines/coreinfra/coreinfra-cd-infrascode.yml+89
/devops/pipelines/coreinfra/coreinfra-cd-infrascode.yml
Add comment 1 Plus  //******************************************************************
Add comment 2 Plus  //INPUT PARAMETERS
Add comment 3 Plus  //******************************************************************
Add comment 4 Plus  param azTenantId string = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
Add comment 5 Plus  param azResourceGroupName string = 'name_of_company-d-rg '
Add comment 6 Plus  param azResourceGroupLocation string = 'westeurope'
Add comment 7 Plus  
Add comment 8 Plus  param azSqlServerName string = 'name_of_company-sharedinfra-d-sql-01'
Add comment 9 Plus  param azSqlServerAdminLogin string = 'SQLServerAdmin'
Add comment 10 Plus  @secure()
Add comment 11 Plus  param azSqlServerAdminLoginPassword string
Add comment 12 Plus  param azureADOnlyAuthentication bool = false
Add comment 13 Plus  param azSqlServerADAdminLogin string = 'SQLServerAdministrators'
Add comment 14 Plus  param azSqlServerADAdminType string = 'Group'
Add comment 15 Plus  param azSqlServerADAdminSID string = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
Add comment 16 Plus  param azSqlDbName string = 'myazuredatabase'
Add comment 17 Plus  param azSqlDbSkuName string = 'Basic'
Add comment 18 Plus  param azSqlDbSkuTier string = 'Basic'
Add comment 19 Plus  param azSqlDbSkuCapacity int = 5
Add comment 20 Plus  param azKeyVaultName string = 'name_of_company-sharedinfra-d-kv'
Add comment 21 Plus  param pbiSqlUserKVSecretName string = 'scrt-powebireport-sqluser-password'
Add comment 22 Plus  @secure()
Add comment 23 Plus  param pbiSqlUserPassword string
Add comment 24 Plus  
Add comment 25 Plus  //******************************************************************
Add comment 26 Plus  //VARIABLES
Add comment 27 Plus  //******************************************************************
Add comment 28 Plus  var azSqlServerAdministrators = {
Add comment 29 Plus   administratorType: 'ActiveDirectory'
Add comment 30 Plus   azureADOnlyAuthentication: azureADOnlyAuthentication
Add comment 31 Plus   login: azSqlServerADAdminLogin
Add comment 32 Plus   principalType: azSqlServerADAdminType
Add comment 33 Plus   sid: azSqlServerADAdminSID
Add comment 34 Plus   tenantId: azTenantId
Add comment 35 Plus  }
Add comment 36 Plus  
Add comment 37 Plus  //******************************************************************
Add comment 38 Plus  //RESOURCES & MODULES
Add comment 39 Plus  //******************************************************************
Add comment 40 Plus  targetScope = 'subscription'
Add comment 41 Plus  
Add comment 42 Plus  resource resourceGroup 'Microsoft.Resources/resourceGroups@2022-09-01' = {
Add comment 43 Plus   name: azResourceGroupName
Add comment 44 Plus   location: azResourceGroupLocation
Add comment 45 Plus  }
Add comment 46 Plus  
Add comment 47 Plus  module keyVault '../../../templates/bicep/kv.bicep' = {
Add comment 48 Plus   name: azKeyVaultName
Add comment 49 Plus   scope: resourceGroup
Add comment 50 Plus   params: {
Add comment 51 Plus   keyVaultName: azKeyVaultName
Add comment 52 Plus   tenantId: azTenantId
Add comment 53 Plus   }
Add comment 54 Plus  }
Add comment 55 Plus  
Add comment 56 Plus  module pbiSqlUserKVSecret '../../../templates/bicep/kv.secret.bicep' = {
Add comment 57 Plus   name: pbiSqlUserKVSecretName
Add comment 58 Plus   scope: resourceGroup
Add comment 59 Plus   params: {
Add comment 60 Plus   kvName: keyVault.name
Add comment 61 Plus   kvAssetName: pbiSqlUserKVSecretName
Add comment 62 Plus   kvAssetValue: pbiSqlUserPassword
Add comment 63 Plus   }
Add comment 64 Plus  }
Add comment 65 Plus  
Add comment 66 Plus  module sqlServer '../../../templates/bicep/sql.bicep' = {
Add comment 67 Plus   name: 'sqlServer'
Add comment 68 Plus   scope: resourceGroup
Add comment 69 Plus   params: {
Add comment 70 Plus   serverName: azSqlServerName
Add comment 71 Plus   administratorLogin: azSqlServerAdminLogin
Add comment 72 Plus   administratorLoginPassword: azSqlServerAdminLoginPassword
Add comment 73 Plus   administrators: azSqlServerAdministrators
Add comment 74 Plus   }
Add comment 75 Plus  }
Add comment 76 Plus  
Add comment 77 Plus  //******************************************************************
Add comment 78 Plus  module sqlDB '../../../templates/bicep/sqldb.bicep' = {
Add comment 79 Plus   name: azSqlDbName
Add comment 80 Plus   scope: resourceGroup
Add comment 81 Plus   params: {
Add comment 82 Plus   sqlServerName: azSqlServerName
Add comment 83 Plus   dbName: azSqlDbName
Add comment 84 Plus   dbSkuName: azSqlDbSkuName
Add comment 85 Plus   dbSkuTier: azSqlDbSkuTier
Add comment 86 Plus   dbSkuCapacity: azSqlDbSkuCapacity
Add comment 87 Plus   }
Add comment 88 Plus  }
Add comment 89 Plus  
variables-d.yml
/devops/pipelines/powerbi/variables/variables-d.yml+25
/devops/pipelines/powerbi/variables/variables-d.yml
Add comment 1 Plus  variables:
Add comment 2 Plus   #Azure DevOps (azdo) variables
Add comment 3 Plus   azdoServiceConnection: azdo-serviceconnection-arm-p
Add comment 4 Plus   azdoEnvironment: bicep_infrastructure-p
Add comment 5 Plus  
Add comment 6 Plus   #Azure Account (az) variables
Add comment 7 Plus   azSubscriptionId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Add comment 8 Plus   azTenantId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Add comment 9 Plus   azResourceGroupName: name_of_company-p-rg
Add comment 10 Plus   azResourceGroupLocation: westeurope
Add comment 11 Plus   azSqlServerName: name_of_company-sharedinfra-p-sql-01
Add comment 12 Plus   azSqlServerAdminLogin: SQLServerAdmin
Add comment 13 Plus   azSqlServerADAdminLogin: SQLServerAdministrators
Add comment 14 Plus   azSqlServerADAdminType: Group
Add comment 15 Plus   azSqlServerADAdminSID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Add comment 16 Plus   azSqlDbName: myazuredatabase
Add comment 17 Plus   azSqlDbSkuName: Basic
Add comment 18 Plus   azSqlDbSkuTier: Basic
Add comment 19 Plus   azSqlDbSkuCapacity: 5
Add comment 20 Plus   azKeyVaultName: name_of_company-sharedinfra-p-kv
Add comment 21 Plus  
Add comment 22 Plus   #DacDeployOptions
Add comment 23 Plus   dacpacBlockOnPossibleDataLoss: true
Add comment 24 Plus   pbiSqlUserName: 'powerbi.sqluser'
Add comment 25 Plus   pbiSqlUserKVSecretName: 'scrt-powebireport-sqluser-password'
variables-p.yml
/devops/pipelines/powerbi/variables/variables-p.yml
/devops/pipelines/powerbi/variables/variables-p.yml
variables.yml
/devops/pipelines/powerbi/variables/variables.yml
/devops/pipelines/powerbi/variables/variables.yml
powerbi-cd-pbixreport.yml
/devops/pipelines/powerbi/powerbi-cd-pbixreport.yml
/devops/pipelines/powerbi/powerbi-cd-pbixreport.yml
WealthDashboard.pbix
/powerbi/WealthDashboard.pbix
/powerbi/WealthDashboard.pbix
kv.bicep
/templates/bicep/kv.bicep
/templates/bicep/kv.bicep
kv.secret.bicep
/templates/bicep/kv.secret.bicep
/templates/bicep/kv.secret.bicep
sql.bicep
/templates/bicep/sql.bicep
/templates/bicep/sql.bicep
sqldb.bicep
/templates/bicep/sqldb.bicep
/templates/bicep/sqldb.bicep
additionaldatabase.sqlproj
/visualstudio/additionaldatabase/additionaldatabase.sqlproj
/visualstudio/additionaldatabase/additionaldatabase.sqlproj
Dates.sql
/visualstudio/myazuredatabase/dim/Tables/Dates.sql
/visualstudio/myazuredatabase/dim/Tables/Dates.sql
EarningsCat.sql
/visualstudio/myazuredatabase/dim/Tables/EarningsCat.sql
/visualstudio/myazuredatabase/dim/Tables/EarningsCat.sql
EarningsSubcat.sql
/visualstudio/myazuredatabase/dim/Tables/EarningsSubcat.sql
/visualstudio/myazuredatabase/dim/Tables/EarningsSubcat.sql
ExpensesCat.sql
/visualstudio/myazuredatabase/dim/Tables/ExpensesCat.sql
/visualstudio/myazuredatabase/dim/Tables/ExpensesCat.sql
ExpensesSubcat.sql
/visualstudio/myazuredatabase/dim/Tables/ExpensesSubcat.sql
/visualstudio/myazuredatabase/dim/Tables/ExpensesSubcat.sql
TransactionType.sql
/visualstudio/myazuredatabase/dim/Tables/TransactionType.sql
/visualstudio/myazuredatabase/dim/Tables/TransactionType.sql
Budget.sql
/visualstudio/myazuredatabase/fact/Tables/Budget.sql
/visualstudio/myazuredatabase/fact/Tables/Budget.sql
Deposits.sql
/visualstudio/myazuredatabase/fact/Tables/Deposits.sql
/visualstudio/myazuredatabase/fact/Tables/Deposits.sql
Withdrawals.sql
/visualstudio/myazuredatabase/fact/Tables/Withdrawals.sql
/visualstudio/myazuredatabase/fact/Tables/Withdrawals.sql
Script.PostDeployment1.sql
/visualstudio/myazuredatabase/scripts/Script.PostDeployment1.sql
/visualstudio/myazuredatabase/scripts/Script.PostDeployment1.sql
db_executor.sql
/visualstudio/myazuredatabase/Security/db_executor.sql
/visualstudio/myazuredatabase/Security/db_executor.sql
dim.sql
/visualstudio/myazuredatabase/Security/dim.sql
/visualstudio/myazuredatabase/Security/dim.sql
fact.sql
/visualstudio/myazuredatabase/Security/fact.sql
/visualstudio/myazuredatabase/Security/fact.sql
RoleMemberships.sql
/visualstudio/myazuredatabase/Security/RoleMemberships.sql
/visualstudio/myazuredatabase/Security/RoleMemberships.sql
sprc.sql
/visualstudio/myazuredatabase/Security/sprc.sql
/visualstudio/myazuredatabase/Security/sprc.sql
stg.sql
/visualstudio/myazuredatabase/Security/stg.sql
/visualstudio/myazuredatabase/Security/stg.sql
temp.sql
/visualstudio/myazuredatabase/Security/temp.sql
/visualstudio/myazuredatabase/Security/temp.sql
view.sql
/visualstudio/myazuredatabase/Security/view.sql
/visualstudio/myazuredatabase/Security/view.sql
CategorizeEarnings.sql
/visualstudio/myazuredatabase/sprc/Stored Procedures/CategorizeEarnings.sql
/visualstudio/myazuredatabase/sprc/Stored Procedures/CategorizeEarnings.sql
CategorizeExpenses.sql
/visualstudio/myazuredatabase/sprc/Stored Procedures/CategorizeExpenses.sql
/visualstudio/myazuredatabase/sprc/Stored Procedures/CategorizeExpenses.sql
CategorizeTransactions.sql
/visualstudio/myazuredatabase/sprc/Stored Procedures/CategorizeTransactions.sql
/visualstudio/myazuredatabase/sprc/Stored Procedures/CategorizeTransactions.sql
ModifyPayday.sql
/visualstudio/myazuredatabase/sprc/Stored Procedures/ModifyPayday.sql
/visualstudio/myazuredatabase/sprc/Stored Procedures/ModifyPayday.sql
PopulateDates.sql
/visualstudio/myazuredatabase/sprc/Stored Procedures/PopulateDates.sql
/visualstudio/myazuredatabase/sprc/Stored Procedures/PopulateDates.sql
UpdateBudget.sql
/visualstudio/myazuredatabase/sprc/Stored Procedures/UpdateBudget.sql
/visualstudio/myazuredatabase/sprc/Stored Procedures/UpdateBudget.sql
UpdateEarningsSubcat.sql
/visualstudio/myazuredatabase/sprc/Stored Procedures/UpdateEarningsSubcat.sql
/visualstudio/myazuredatabase/sprc/Stored Procedures/UpdateEarningsSubcat.sql
UpdateExpensesSubcat.sql
/visualstudio/myazuredatabase/sprc/Stored Procedures/UpdateExpensesSubcat.sql
/visualstudio/myazuredatabase/sprc/Stored Procedures/UpdateExpensesSubcat.sql
Budget.sql
/visualstudio/myazuredatabase/stg/Tables/Budget.sql
/visualstudio/myazuredatabase/stg/Tables/Budget.sql
Deposits.sql
/visualstudio/myazuredatabase/stg/Tables/Deposits.sql
/visualstudio/myazuredatabase/stg/Tables/Deposits.sql
EarningsSubcat.sql
/visualstudio/myazuredatabase/stg/Tables/EarningsSubcat.sql
/visualstudio/myazuredatabase/stg/Tables/EarningsSubcat.sql
ExpensesSubcat.sql
/visualstudio/myazuredatabase/stg/Tables/ExpensesSubcat.sql
/visualstudio/myazuredatabase/stg/Tables/ExpensesSubcat.sql
IngestLog.sql
/visualstudio/myazuredatabase/stg/Tables/IngestLog.sql
/visualstudio/myazuredatabase/stg/Tables/IngestLog.sql
Withdrawals.sql
/visualstudio/myazuredatabase/stg/Tables/Withdrawals.sql
/visualstudio/myazuredatabase/stg/Tables/Withdrawals.sql
Deposits.sql
/visualstudio/myazuredatabase/view/Views/Deposits.sql
/visualstudio/myazuredatabase/view/Views/Deposits.sql
DepositsBySubcat.sql
/visualstudio/myazuredatabase/view/Views/DepositsBySubcat.sql
/visualstudio/myazuredatabase/view/Views/DepositsBySubcat.sql
EarningsCategories.sql
/visualstudio/myazuredatabase/view/Views/EarningsCategories.sql
/visualstudio/myazuredatabase/view/Views/EarningsCategories.sql
ExpensesCategories.sql
/visualstudio/myazuredatabase/view/Views/ExpensesCategories.sql
/visualstudio/myazuredatabase/view/Views/ExpensesCategories.sql
IngestLogSummary.sql
/visualstudio/myazuredatabase/view/Views/IngestLogSummary.sql
/visualstudio/myazuredatabase/view/Views/IngestLogSummary.sql
Withdrawals.sql
/visualstudio/myazuredatabase/view/Views/Withdrawals.sql
/visualstudio/myazuredatabase/view/Views/Withdrawals.sql
WithdrawalsBySubcat.sql
/visualstudio/myazuredatabase/view/Views/WithdrawalsBySubcat.sql
/visualstudio/myazuredatabase/view/Views/WithdrawalsBySubcat.sql
myazuredatabase.sqlproj
/visualstudio/myazuredatabase/myazuredatabase.sqlproj
/visualstudio/myazuredatabase/myazuredatabase.sqlproj
visualstudio.sln
/visualstudio/visualstudio.sln
/visualstudio/visualstudio.sln