Skip to content

Commit

Permalink
disable cognitive services for Ignite 2023 lab (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusFelling authored Oct 17, 2023
1 parent 22eef00 commit 36702ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 43 deletions.
42 changes: 0 additions & 42 deletions iac/createResources.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ var kvSecretNameCartsApiEndpoint = 'cartsApiEndpoint'
var kvSecretNameCartsInternalApiEndpoint = 'cartsInternalApiEndpoint'
var kvSecretNameCartsDbConnStr = 'cartsDbConnectionString'
var kvSecretNameImagesEndpoint = 'imagesEndpoint'
var kvSecretNameCognitiveServicesEndpoint = 'cognitiveServicesEndpoint'
var kvSecretNameCognitiveServicesAccountKey = 'cognitiveServicesAccountKey'
var kvSecretNameAppInsightsConnStr = 'appInsightsConnectionString'
var kvSecretNameUiCdnEndpoint = 'uiCdnEndpoint'
var kvSecretNameVnetAcaSubnetId = 'vnetAcaSubnetId'
Expand Down Expand Up @@ -110,9 +108,6 @@ var ui2StgAccName = '${prefix}ui2${suffix}'
var imageClassifierStgAccName = '${prefix}ic${suffix}'
var imageClassifierWebsiteUploadsContainerName = 'website-uploads'

// cognitive service (image recognition)
var cognitiveServiceName = '${prefixHyphenated}-cs${suffix}'

// cdn
var cdnProfileName = '${prefixHyphenated}-cdn${suffix}'
var cdnImagesEndpointName = '${prefixHyphenated}-images${suffix}'
Expand Down Expand Up @@ -290,26 +285,6 @@ resource kv 'Microsoft.KeyVault/vaults@2022-07-01' = {
}
}

// secret
resource kv_secretCognitiveServicesEndpoint 'secrets' = {
name: kvSecretNameCognitiveServicesEndpoint
tags: resourceTags
properties: {
contentType: 'endpoint url of the cognitive services'
value: cognitiveservice.properties.endpoint
}
}

// secret
resource kv_secretCognitiveServicesAccountKey 'secrets' = {
name: kvSecretNameCognitiveServicesAccountKey
tags: resourceTags
properties: {
contentType: 'account key of the cognitive services'
value: cognitiveservice.listKeys().key1
}
}

// secret
resource kv_secretAppInsightsConnStr 'secrets' = {
name: kvSecretNameAppInsightsConnStr
Expand Down Expand Up @@ -942,23 +917,6 @@ resource imageclassifierstgacc 'Microsoft.Storage/storageAccounts@2022-09-01' =
}
}

//
// cognitive services (image recognition)
//

resource cognitiveservice 'Microsoft.CognitiveServices/accounts@2022-10-01' = {
name: cognitiveServiceName
location: resourceLocation
tags: resourceTags
sku: {
name: 'S0'
}
kind: 'CognitiveServices'
properties: {
publicNetworkAccess: 'Enabled'
}
}

//
// cdn
//
Expand Down
2 changes: 1 addition & 1 deletion src/ContosoTraders.Ui.Website/tests/fileupload.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'path';

const imgPath = path.join(__dirname, '../src/assets/images/original/Contoso_Assets/Grid_Products_Collection/product_image.png');

test.describe('File Upload', () => {
test.describe.skip('File Upload', () => {
test('should be able to upload a file', async ({ page }) => {
await page.goto("/");
await page.getByRole('button', { name: 'iconimage' }).click();
Expand Down

0 comments on commit 36702ea

Please sign in to comment.