@@ -62,7 +62,7 @@ private void Execute()
6262
6363 ConfirmReuseIfAppRegistrationsExist ( ) ;
6464
65- ConfirmReuseIfDbAdminSecurityGroupExists ( ) ;
65+ ConfirmReuseIfPostgresAdminSecurityGroupExists ( ) ;
6666
6767 CollectAdditionalInfo ( ) ;
6868
@@ -82,7 +82,7 @@ private void Execute()
8282
8383 GrantSubscriptionPermissionsToServicePrincipals ( ) ;
8484
85- CreateAzureDbAdminSecurityGroups ( ) ;
85+ CreateAzurePostgresAdminSecurityGroups ( ) ;
8686
8787 CreateGithubEnvironments ( ) ;
8888
@@ -403,12 +403,12 @@ void ConfirmReuseIfAppRegistrationExist(AppRegistration appRegistration)
403403 }
404404 }
405405
406- private void ConfirmReuseIfDbAdminSecurityGroupExists ( )
406+ private void ConfirmReuseIfPostgresAdminSecurityGroupExists ( )
407407 {
408- Config . StagingSubscription . DbAdminsGroup . ObjectId = ConfirmReuseIfDbAdminSecurityGroupExist ( Config . StagingSubscription . DbAdminsGroup . Name ) ;
409- Config . ProductionSubscription . DbAdminsGroup . ObjectId = ConfirmReuseIfDbAdminSecurityGroupExist ( Config . ProductionSubscription . DbAdminsGroup . Name ) ;
408+ Config . StagingSubscription . PostgresAdminsGroup . ObjectId = ConfirmReuseIfPostgresAdminSecurityGroupExist ( Config . StagingSubscription . PostgresAdminsGroup . Name ) ;
409+ Config . ProductionSubscription . PostgresAdminsGroup . ObjectId = ConfirmReuseIfPostgresAdminSecurityGroupExist ( Config . ProductionSubscription . PostgresAdminsGroup . Name ) ;
410410
411- string ? ConfirmReuseIfDbAdminSecurityGroupExist ( string dbAdminsSecurityGroupName )
411+ string ? ConfirmReuseIfPostgresAdminSecurityGroupExist ( string dbAdminsSecurityGroupName )
412412 {
413413 var dbAdminsObjectId = RunAzureCliCommand (
414414 $ """ ad group list --display-name "{ dbAdminsSecurityGroupName } " --query "[].id" -o tsv"""
@@ -452,11 +452,11 @@ private void ConfirmChangesPrompt()
452452 var productionServicePrincipal = Config . ProductionSubscription . AppRegistration . Exists
453453 ? Config . ProductionSubscription . AppRegistration . ServicePrincipalId
454454 : "Will be generated" ;
455- var stagingDbAdminObject = Config . StagingSubscription . DbAdminsGroup . Exists
456- ? Config . StagingSubscription . DbAdminsGroup . ObjectId
455+ var stagingPostgresAdminObject = Config . StagingSubscription . PostgresAdminsGroup . Exists
456+ ? Config . StagingSubscription . PostgresAdminsGroup . ObjectId
457457 : "Will be generated" ;
458- var productionDbAdminObject = Config . ProductionSubscription . DbAdminsGroup . Exists
459- ? Config . ProductionSubscription . DbAdminsGroup . ObjectId
458+ var productionPostgresAdminObject = Config . ProductionSubscription . PostgresAdminsGroup . Exists
459+ ? Config . ProductionSubscription . PostgresAdminsGroup . ObjectId
460460 : "Will be generated" ;
461461
462462 var setupConfirmPrompt =
@@ -472,10 +472,10 @@ [bold]Please review planned changes before continuing.[/]
472472 [yellow]** The Service Principals will get 'Contributor' and 'User Access Administrator' role on the Azure Subscriptions.[/]
473473
474474 [bold]Active Directory Security Groups:[/]
475- * [blue]{ Config . StagingSubscription . DbAdminsGroup . Name } [/]
476- * [blue]{ Config . ProductionSubscription . DbAdminsGroup . Name } [/]
475+ * [blue]{ Config . StagingSubscription . PostgresAdminsGroup . Name } [/]
476+ * [blue]{ Config . ProductionSubscription . PostgresAdminsGroup . Name } [/]
477477
478- [yellow]** The Database Admins Security Groups are used to grant Managed Identities and CI/CD permissions to PostgreSQL databases.[/]
478+ [yellow]** The PostgreSQL Admins Security Groups are used to grant Managed Identities and CI/CD permissions to PostgreSQL databases.[/]
479479
480480 2. The following GitHub environments will be created if not exists:
481481 * [blue]staging[/]
@@ -493,7 +493,7 @@ [bold]Please review planned changes before continuing.[/]
493493 * STAGING_SUBSCRIPTION_ID: [blue]{ Config . StagingSubscription . Id } [/]
494494 * STAGING_SHARED_LOCATION: [blue]{ Config . StagingLocation . SharedLocation } [/]
495495 * STAGING_SERVICE_PRINCIPAL_ID: [blue]{ stagingServicePrincipal } [/]
496- * STAGING_DB_ADMIN_OBJECT_ID : [blue]{ stagingDbAdminObject } [/]
496+ * STAGING_POSTGRES_ADMIN_OBJECT_ID : [blue]{ stagingPostgresAdminObject } [/]
497497 * STAGING_DOMAIN_NAME: [blue]-[/] ([yellow]Manually changed this and triggered deployment to set up the domain[/])
498498
499499 [bold]Staging Cluster Variables:[/]
@@ -506,7 +506,7 @@ [bold]Please review planned changes before continuing.[/]
506506 * PRODUCTION_SHARED_LOCATION: [blue]{ Config . ProductionLocation . SharedLocation } [/]
507507 * PRODUCTION_SERVICE_PRINCIPAL_ID: [blue]{ productionServicePrincipal } [/]
508508 * PRODUCTION_SERVICE_PRINCIPAL_OBJECT_ID: [blue]{ Config . ProductionSubscription . AppRegistration . ServicePrincipalObjectId } [/]
509- * PRODUCTION_DB_ADMIN_OBJECT_ID : [blue]{ productionDbAdminObject } [/]
509+ * PRODUCTION_POSTGRES_ADMIN_OBJECT_ID : [blue]{ productionPostgresAdminObject } [/]
510510 * PRODUCTION_DOMAIN_NAME: [blue]-[/] ([yellow]Manually changed this and triggered deployment to set up the domain[/])
511511
512512 [bold]Production Cluster 1 Variables:[/]
@@ -662,12 +662,12 @@ void GrantAccess(Subscription subscription, string appRegistrationName)
662662 }
663663 }
664664
665- private void CreateAzureDbAdminSecurityGroups ( )
665+ private void CreateAzurePostgresAdminSecurityGroups ( )
666666 {
667- CreateAzureDbAdminSecurityGroup ( Config . StagingSubscription . DbAdminsGroup , Config . StagingSubscription . AppRegistration ) ;
668- CreateAzureDbAdminSecurityGroup ( Config . ProductionSubscription . DbAdminsGroup , Config . ProductionSubscription . AppRegistration ) ;
667+ CreateAzurePostgresAdminSecurityGroup ( Config . StagingSubscription . PostgresAdminsGroup , Config . StagingSubscription . AppRegistration ) ;
668+ CreateAzurePostgresAdminSecurityGroup ( Config . ProductionSubscription . PostgresAdminsGroup , Config . ProductionSubscription . AppRegistration ) ;
669669
670- void CreateAzureDbAdminSecurityGroup ( DbAdminsGroup dbAdminGroup , AppRegistration appRegistration )
670+ void CreateAzurePostgresAdminSecurityGroup ( PostgresAdminsGroup dbAdminGroup , AppRegistration appRegistration )
671671 {
672672 if ( ! dbAdminGroup . Exists )
673673 {
@@ -723,7 +723,7 @@ private static void CreateGithubSecretsAndVariables()
723723 SetGithubVariable ( VariableNames . STAGING_SUBSCRIPTION_ID , Config . StagingSubscription . Id ) ;
724724 SetGithubVariable ( VariableNames . STAGING_SERVICE_PRINCIPAL_ID , Config . StagingSubscription . AppRegistration . ServicePrincipalId ! ) ;
725725 SetGithubVariable ( VariableNames . STAGING_SHARED_LOCATION , Config . StagingLocation . SharedLocation ) ;
726- SetGithubVariable ( VariableNames . STAGING_DB_ADMIN_OBJECT_ID , Config . StagingSubscription . DbAdminsGroup . ObjectId ! ) ;
726+ SetGithubVariable ( VariableNames . STAGING_POSTGRES_ADMIN_OBJECT_ID , Config . StagingSubscription . PostgresAdminsGroup . ObjectId ! ) ;
727727 SetGithubVariable ( VariableNames . STAGING_DOMAIN_NAME , "-" ) ;
728728
729729 SetGithubVariable ( VariableNames . STAGING_CLUSTER_ENABLED , "true" ) ;
@@ -734,7 +734,7 @@ private static void CreateGithubSecretsAndVariables()
734734 SetGithubVariable ( VariableNames . PRODUCTION_SERVICE_PRINCIPAL_ID , Config . ProductionSubscription . AppRegistration . ServicePrincipalId ! ) ;
735735 SetGithubVariable ( VariableNames . PRODUCTION_SERVICE_PRINCIPAL_OBJECT_ID , Config . ProductionSubscription . AppRegistration . ServicePrincipalObjectId ! ) ;
736736 SetGithubVariable ( VariableNames . PRODUCTION_SHARED_LOCATION , Config . ProductionLocation . SharedLocation ) ;
737- SetGithubVariable ( VariableNames . PRODUCTION_DB_ADMIN_OBJECT_ID , Config . ProductionSubscription . DbAdminsGroup . ObjectId ! ) ;
737+ SetGithubVariable ( VariableNames . PRODUCTION_POSTGRES_ADMIN_OBJECT_ID , Config . ProductionSubscription . PostgresAdminsGroup . ObjectId ! ) ;
738738 SetGithubVariable ( VariableNames . PRODUCTION_DOMAIN_NAME , "-" ) ;
739739
740740 SetGithubVariable ( VariableNames . PRODUCTION_CLUSTER1_ENABLED , "false" ) ;
@@ -1028,7 +1028,7 @@ public class Subscription(string id, string name, string tenantId, GithubInfo gi
10281028
10291029 public AppRegistration AppRegistration { get ; } = new ( githubInfo , environmentName ) ;
10301030
1031- public DbAdminsGroup DbAdminsGroup { get ; } = new ( githubInfo , environmentName ) ;
1031+ public PostgresAdminsGroup PostgresAdminsGroup { get ; } = new ( githubInfo , environmentName ) ;
10321032}
10331033
10341034public class AppRegistration ( GithubInfo githubInfo , string environmentName )
@@ -1044,11 +1044,11 @@ public class AppRegistration(GithubInfo githubInfo, string environmentName)
10441044 public string ? ServicePrincipalObjectId { get ; set ; }
10451045}
10461046
1047- public class DbAdminsGroup ( GithubInfo githubInfo , string environmentName )
1047+ public class PostgresAdminsGroup ( GithubInfo githubInfo , string environmentName )
10481048{
1049- public string Name => $ "Database Admins - { environmentName } - { githubInfo . OrganizationName } /{ githubInfo . RepositoryName } ";
1049+ public string Name => $ "PostgreSQL Admins - { environmentName } - { githubInfo . OrganizationName } /{ githubInfo . RepositoryName } ";
10501050
1051- public string NickName => $ "DatabaseAdmins { environmentName } { githubInfo . OrganizationName } { githubInfo . RepositoryName } ";
1051+ public string NickName => $ "PostgreSQLAdmins { environmentName } { githubInfo . OrganizationName } { githubInfo . RepositoryName } ";
10521052
10531053 public bool Exists => ! string . IsNullOrEmpty ( ObjectId ) ;
10541054
@@ -1066,7 +1066,7 @@ public enum VariableNames
10661066 STAGING_SUBSCRIPTION_ID ,
10671067 STAGING_SERVICE_PRINCIPAL_ID ,
10681068 STAGING_SHARED_LOCATION ,
1069- STAGING_DB_ADMIN_OBJECT_ID ,
1069+ STAGING_POSTGRES_ADMIN_OBJECT_ID ,
10701070 STAGING_DOMAIN_NAME ,
10711071
10721072 STAGING_CLUSTER_ENABLED ,
@@ -1077,7 +1077,7 @@ public enum VariableNames
10771077 PRODUCTION_SERVICE_PRINCIPAL_ID ,
10781078 PRODUCTION_SERVICE_PRINCIPAL_OBJECT_ID ,
10791079 PRODUCTION_SHARED_LOCATION ,
1080- PRODUCTION_DB_ADMIN_OBJECT_ID ,
1080+ PRODUCTION_POSTGRES_ADMIN_OBJECT_ID ,
10811081 PRODUCTION_DOMAIN_NAME ,
10821082
10831083 PRODUCTION_CLUSTER1_ENABLED ,
0 commit comments