Skip to content

Commit

Permalink
IAC Test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdigdir committed Nov 22, 2023
1 parent 46bdf04 commit 5d647aa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 50 deletions.
20 changes: 0 additions & 20 deletions .azure/appConfiguration/create.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,6 @@ resource appConfig 'Microsoft.AppConfiguration/configurationStores@2022-05-01' =
}
}
}
// resource appConfigKey 'Microsoft.AppConfiguration/configurationStores@2022-05-01' existing = {
// // resource appConfigKey 'Microsoft.AppConfiguration/configurationStores@2020-07-01-preview' = {
// parent: appConfig
// name: 'Infrastructure:MigrationCompleted'
// properties: {
// contentType: 'text'
// value: 'false'
// }
// }

resource configStore 'Microsoft.AppConfiguration/configurationStores@2022-05-01' existing = {
name: appConfig.name
resource configStoreKeyValue 'keyValues' = {
name: 'Infrastructure:MigrationCompleted'
properties: {
value: 'false'
contentType: 'text'
}
}
}

// Output the connection string
output endpoint string = appConfig.properties.endpoint
Expand Down
20 changes: 0 additions & 20 deletions .azure/appConfiguration/resetMigrationStatus.bicep

This file was deleted.

20 changes: 10 additions & 10 deletions .azure/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,16 @@ module appConfigConfigurations 'appConfiguration/upsertKeyValue.bicep' = {
keyValueType: 'keyVaultReference'
}
}
module appConfigConfigurationsDebug 'appConfiguration/upsertKeyValue.bicep' = {
scope: resourceGroup
name: 'appConfigConfigurationsDebug'
params: {
configStoreName: appConfiguration.outputs.name
key: 'Infrastructure:psqlConnectionJSON'
value: postgresql.outputs.psqlConnectionJSON
keyValueType: 'custom'
}
}
// module appConfigConfigurationsDebug 'appConfiguration/upsertKeyValue.bicep' = {
// scope: resourceGroup
// name: 'appConfigConfigurationsDebug'
// params: {
// configStoreName: appConfiguration.outputs.name
// key: 'Infrastructure:psqlConnectionJSON'
// value: postgresql.outputs.psqlConnectionJSON
// keyValueType: 'custom'
// }
// }

module keyVaultReaderAccessPolicy 'keyvault/addReaderRoles.bicep' = {
scope: resourceGroup
Expand Down

0 comments on commit 5d647aa

Please sign in to comment.