File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ module storageAccount 'modules/storageAccount.bicep' = {
190190 }
191191 ], searchEnabled ? [
192192 {
193- principalId : aiSearch .outputs .? systemAssignedMIPrincipalId ?? ''
193+ principalId : aiSearch .outputs .systemAssignedMIPrincipalId
194194 principalType : 'ServicePrincipal'
195195 roleDefinitionIdOrName : 'Storage Blob Data Contributor'
196196 }
@@ -356,6 +356,8 @@ module apim 'modules/apim.bicep' = if (apiManagementEnabled) {
356356 location : location
357357 publisherEmail : apiManagementPublisherEmail
358358 publisherName : '${name } API Management'
359+ sku : 'Developer'
360+ networkIsolation : networkIsolation
359361 logAnalyticsWorkspaceResourceId : logAnalyticsWorkspace .outputs .resourceId
360362 virtualNetworkResourceId : networkIsolation ? network .outputs .virtualNetworkId : ''
361363 virtualNetworkSubnetResourceId : networkIsolation ? network .outputs .vmSubnetId : ''
Original file line number Diff line number Diff line change @@ -78,3 +78,4 @@ import { roleAssignmentType } from 'br/public:avm/utl/types/avm-common-types:0.5
7878
7979output resourceId string = aiSearch .outputs .resourceId
8080output name string = aiSearch .outputs .name
81+ output systemAssignedMIPrincipalId string = aiSearch .outputs .?systemAssignedMIPrincipalId ?? ''
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ param publisherEmail string
2020 'StandardV2'
2121 'BasicV2'
2222])
23- param sku string = 'Developer'
23+ param sku string
2424
2525@description ('Specifies whether to create a private endpoint for the API Management service.' )
26- param networkIsolation bool = false
26+ param networkIsolation bool
2727
2828@description ('The resource ID of the Log Analytics workspace to use for diagnostic settings.' )
2929param logAnalyticsWorkspaceResourceId string
Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ module vision 'service.bicep' = if (visionEnabled) {
125125 name : 'vision${name }${resourceToken }'
126126 location : location
127127 kind : 'ComputerVision'
128+ sku : 'S1'
128129 networkIsolation : networkIsolation
129130 virtualNetworkSubnetResourceId : networkIsolation ? virtualNetworkSubnetResourceId : ''
130131 privateDnsZonesResourceIds : networkIsolation ? [
@@ -142,6 +143,7 @@ module language 'service.bicep' = if (languageEnabled) {
142143 name : 'lang${name }${resourceToken }'
143144 location : location
144145 kind : 'TextAnalytics'
146+ sku : 'S'
145147 networkIsolation : networkIsolation
146148 virtualNetworkSubnetResourceId : networkIsolation ? virtualNetworkSubnetResourceId : ''
147149 privateDnsZonesResourceIds : networkIsolation ? [
@@ -176,6 +178,7 @@ module translator 'service.bicep' = if (translatorEnabled) {
176178 name : 'translator${name }${resourceToken }'
177179 location : location
178180 kind : 'TextTranslation'
181+ sku : 'S1'
179182 networkIsolation : networkIsolation
180183 virtualNetworkSubnetResourceId : networkIsolation ? virtualNetworkSubnetResourceId : ''
181184 privateDnsZonesResourceIds : networkIsolation ? [
Original file line number Diff line number Diff line change @@ -33,6 +33,21 @@ param location string
3333])
3434param kind string
3535
36+ @description ('Required. The SKU of the Cognitive Services account. Use \' Get-AzCognitiveServicesAccountSku\' to determine a valid combinations of \' kind\' and \' SKU\' for your Azure region.' )
37+ @allowed ([
38+ 'S'
39+ 'S0'
40+ 'S1'
41+ 'S2'
42+ 'S3'
43+ 'S4'
44+ 'S5'
45+ 'S6'
46+ 'S7'
47+ 'S8'
48+ ])
49+ param sku string = 'S0'
50+
3651@description ('Category of the Cognitive Services account.' )
3752param category string = 'CognitiveService'
3853
@@ -71,7 +86,7 @@ module cognitiveService 'br/public:avm/res/cognitive-services/account:0.10.1' =
7186 name : nameFormatted
7287 location : location
7388 tags : tags
74- sku : 'S0'
89+ sku : sku
7590 kind : kind
7691 managedIdentities : {
7792 systemAssigned : true
You can’t perform that action at this time.
0 commit comments