-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove storage from aca-store-demo, div cleanup
Signed-off-by: Kristina Devochko <[email protected]>
- Loading branch information
1 parent
5798254
commit 0df21e3
Showing
12 changed files
with
135 additions
and
319 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
param environment string | ||
param keyVaultName string | ||
param location string | ||
param tags object | ||
|
||
resource keyVaultACAShared 'Microsoft.KeyVault/vaults@2022-07-01' existing = { | ||
name: keyVaultName | ||
} | ||
|
||
resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2022-10-01' = { | ||
name: 'log-aca-${environment}' | ||
location: location | ||
properties: { | ||
retentionInDays: 30 | ||
sku: { | ||
name: 'PerGB2018' | ||
} | ||
} | ||
tags: tags | ||
} | ||
|
||
resource appInsights 'Microsoft.Insights/components@2020-02-02' = { | ||
name: 'appi-aca-${environment}' | ||
location: location | ||
kind: 'web' | ||
properties: { | ||
Application_Type: 'web' | ||
IngestionMode: 'LogAnalytics' | ||
RetentionInDays: 30 | ||
WorkspaceResourceId: logAnalytics.id | ||
} | ||
tags: tags | ||
} | ||
|
||
resource appInsightsConnStringSecret 'Microsoft.KeyVault/vaults/secrets@2022-07-01' = { | ||
parent: keyVaultACAShared | ||
name: '${appInsights.name}-connection-string' | ||
properties: { | ||
attributes: { | ||
enabled: true | ||
} | ||
value: appInsights.properties.ConnectionString | ||
} | ||
tags: tags | ||
} | ||
|
||
resource logAnalyticsKeySecret 'Microsoft.KeyVault/vaults/secrets@2022-07-01' = { | ||
parent: keyVaultACAShared | ||
name: '${logAnalytics.name}-key' | ||
properties: { | ||
attributes: { | ||
enabled: true | ||
} | ||
value: logAnalytics.listKeys().primarySharedKey | ||
} | ||
tags: tags | ||
} | ||
|
||
resource kvDiagnosticSettings 'Microsoft.Insights/diagnosticSettings@2021-05-01-preview' = { | ||
name: keyVaultName | ||
scope: keyVaultACAShared | ||
properties: { | ||
workspaceId: logAnalytics.id | ||
logs: [ | ||
{ | ||
categoryGroup: 'audit' | ||
enabled: true | ||
} | ||
] | ||
} | ||
} | ||
|
||
output appInsightsConnectionString string = appInsightsConnStringSecret.name | ||
output logAnalyticsWorkspaceId string = logAnalytics.id | ||
output logAnalyticsCustomerId string = logAnalytics.properties.customerId | ||
output logAnalyticsKey string = logAnalyticsKeySecret.name |
Oops, something went wrong.