Skip to content

Commit

Permalink
Merge pull request #2 from JimacoMS4/try-flask-azd
Browse files Browse the repository at this point in the history
Aligned azd infra with flask, removed src/tests
  • Loading branch information
JimacoMS4 authored Jul 16, 2024
2 parents 35cbc52 + 3a3eb71 commit ee34b2a
Show file tree
Hide file tree
Showing 44 changed files with 429 additions and 1,812 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,6 @@ Thumbs.db #thumbnail cache on Windows

# Azure Developer CLI
.azure/

# Azurite stuff
__azurite_*.json
3 changes: 3 additions & 0 deletions infra/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# infra directory

This `infra` directory contains azd files used for `azd provision` and isn't used by the sample application.
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
metadata description = 'Creates a dashboard for an Application Insights instance.'
param name string
param applicationInsightsName string
param location string = resourceGroup().location
param tags object = {}
param prefix string
param location string
param tags object
param workspaceId string

resource applicationInsights 'Microsoft.Insights/components@2020-02-02' = {
name: '${prefix}-appinsights'
location: location
tags: tags
kind: 'web'
properties: {
Application_Type: 'web'
WorkspaceResourceId: workspaceId
}
}

// 2020-09-01-preview because that is the latest valid version
resource applicationInsightsDashboard 'Microsoft.Portal/dashboards@2020-09-01-preview' = {
name: name
name: '${prefix}-dashboard'
location: location
tags: tags
properties: {
Expand Down Expand Up @@ -1231,6 +1241,4 @@ resource applicationInsightsDashboard 'Microsoft.Portal/dashboards@2020-09-01-pr
}
}

resource applicationInsights 'Microsoft.Insights/components@2020-02-02' existing = {
name: applicationInsightsName
}
output APPLICATIONINSIGHTS_CONNECTION_STRING string = applicationInsights.properties.ConnectionString
51 changes: 0 additions & 51 deletions infra/core/database/cosmos/cosmos-account.bicep

This file was deleted.

62 changes: 0 additions & 62 deletions infra/core/database/cosmos/cosmos-pg-adapter.bicep

This file was deleted.

23 changes: 0 additions & 23 deletions infra/core/database/cosmos/mongo/cosmos-mongo-account.bicep

This file was deleted.

47 changes: 0 additions & 47 deletions infra/core/database/cosmos/mongo/cosmos-mongo-db.bicep

This file was deleted.

22 changes: 0 additions & 22 deletions infra/core/database/cosmos/sql/cosmos-sql-account.bicep

This file was deleted.

74 changes: 0 additions & 74 deletions infra/core/database/cosmos/sql/cosmos-sql-db.bicep

This file was deleted.

19 changes: 0 additions & 19 deletions infra/core/database/cosmos/sql/cosmos-sql-role-assign.bicep

This file was deleted.

30 changes: 0 additions & 30 deletions infra/core/database/cosmos/sql/cosmos-sql-role-def.bicep

This file was deleted.

Loading

0 comments on commit ee34b2a

Please sign in to comment.