-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from john0isaac/feat-azd-compatible
Feat azd compatible
- Loading branch information
Showing
13 changed files
with
147 additions
and
48 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ env | |
.coverage | ||
node_modules | ||
.venv | ||
.azure |
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,15 @@ | ||
param keyVaultName string | ||
param rgName string | ||
|
||
param name string | ||
param cognitiveServiceName string | ||
|
||
// Store Cognitive Service Key in Key Vault | ||
module cognitiveServiceSecret '../core/security/keyvault-secret.bicep' = { | ||
name: 'cognitiveServiceKey' | ||
params: { | ||
name: name | ||
keyVaultName : keyVaultName | ||
secretValue: listKeys(resourceId(subscription().subscriptionId, rgName, 'Microsoft.CognitiveServices/accounts', cognitiveServiceName), '2023-05-01').key1 | ||
} | ||
} |
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,41 @@ | ||
@description('The name of the Cognitive Service.') | ||
param name string | ||
|
||
@description('The location into which your Azure resources should be deployed.') | ||
param location string = resourceGroup().location | ||
|
||
@description('The tags to apply to each resource.') | ||
param tags object = {} | ||
|
||
@description('The kind of Cognitive Service to create. See: https://learn.microsoft.com/en-us/azure/cognitive-services/create-account-bicep for available kinds.') | ||
@allowed([ 'CognitiveServices', 'ComputerVision', 'CustomVision.Prediction', 'CustomVision.Training', 'Face', 'FormRecognizer', 'SpeechServices', 'LUIS', 'QnAMaker', 'TextAnalytics', 'TextTranslation', 'AnomalyDetector', 'ContentModerator', 'Personalizer', 'OpenAI' ]) | ||
param kind string | ||
|
||
@description('The name of the SKU. Be aware that not all SKUs may be available for your Subscription. See: https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/resource-skus') | ||
@allowed([ 'F0', 'S0', 'S1', 'S2', 'S3', 'S4' ]) | ||
param sku string | ||
|
||
param publicNetworkAccess string = 'Enabled' | ||
|
||
resource cognitiveService 'Microsoft.CognitiveServices/accounts@2023-05-01' = { | ||
name: name | ||
location: location | ||
tags: tags | ||
sku: { | ||
name: sku | ||
} | ||
kind: kind | ||
properties: { | ||
publicNetworkAccess: publicNetworkAccess | ||
|
||
} | ||
} | ||
|
||
@description('Resource Name') | ||
output name string = cognitiveService.name | ||
|
||
@description('Resource Id') | ||
output id string = cognitiveService.id | ||
|
||
@description('Endpoint') | ||
output endpoint string = cognitiveService.properties.endpoint |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ Flask | |
requests | ||
psycopg2 | ||
Flask-SQLAlchemy | ||
Flask-Migrate | ||
Flask-Migrate |
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