Skip to content

Commit

Permalink
DisableLocalAuth for AppConfig. (#4774)
Browse files Browse the repository at this point in the history
* DisableLocalAuth for AppConfig.

* Update playground and test.
  • Loading branch information
mitchdenny authored Jul 17, 2024
1 parent 54d47fa commit 752bc58
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions playground/cdk/CdkSample.AppHost/appConfig.module.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ resource appConfigurationStore_xM7mBhesj 'Microsoft.AppConfiguration/configurati
name: 'standard'
}
properties: {
disableLocalAuth: true
}
}

Expand Down
1 change: 1 addition & 0 deletions playground/cdk/CdkSample.AppHost/storage.module.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ resource storageAccount_1XR3Um8QY 'Microsoft.Storage/storageAccounts@2022-09-01'
networkAcls: {
defaultAction: 'Allow'
}
minimumTlsVersion: 'TLS1_2'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static IResourceBuilder<AzureAppConfigurationResource> AddAzureAppConfigu
var configureConstruct = (ResourceModuleConstruct construct) =>
{
var store = new AppConfigurationStore(construct, name: name, skuName: "standard");
store.AssignProperty(x => x.DisableLocalAuth, "true");
store.AddOutput("appConfigEndpoint", x => x.Endpoint);
var appConfigurationDataOwnerRoleAssignemnt = store.AssignRole(RoleDefinition.AppConfigurationDataOwner);
appConfigurationDataOwnerRoleAssignemnt.AssignProperty(x => x.PrincipalId, construct.PrincipalIdParameter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ param principalType string
name: 'standard'
}
properties: {
disableLocalAuth: true
}
}

Expand Down

0 comments on commit 752bc58

Please sign in to comment.