Skip to content

Commit 53fcd51

Browse files
committed
chore: remove storage resource
1 parent f98cce0 commit 53fcd51

File tree

3 files changed

+1
-91
lines changed

3 files changed

+1
-91
lines changed

infra/core/host/functions.bicep

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ param applicationInsightsName string = ''
88
param appServicePlanId string
99
param keyVaultName string = ''
1010
param managedIdentity bool = !empty(keyVaultName)
11-
param storageAccountName string
1211

1312
// Runtime Properties
1413
@allowed([
@@ -55,7 +54,7 @@ module functions 'appservice.bicep' = {
5554
applicationInsightsName: applicationInsightsName
5655
appServicePlanId: appServicePlanId
5756
appSettings: union(appSettings, {
58-
AzureWebJobsStorage: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};AccountKey=${storage.listKeys().keys[0].value};EndpointSuffix=${environment().suffixes.storage}'
57+
AzureWebJobsStorage: ''
5958
FUNCTIONS_EXTENSION_VERSION: extensionVersion
6059
FUNCTIONS_WORKER_RUNTIME: runtimeName
6160
})
@@ -77,10 +76,6 @@ module functions 'appservice.bicep' = {
7776
}
7877
}
7978

80-
resource storage 'Microsoft.Storage/storageAccounts@2021-09-01' existing = {
81-
name: storageAccountName
82-
}
83-
8479
output identityPrincipalId string = managedIdentity ? functions.outputs.identityPrincipalId : ''
8580
output name string = functions.outputs.name
8681
output uri string = functions.outputs.uri

infra/core/storage/storage-account.bicep

Lines changed: 0 additions & 64 deletions
This file was deleted.

infra/main.bicep

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ param resourceGroupName string = ''
1313
param webappName string = 'webapp'
1414
param apiServiceName string = 'api'
1515
param appServicePlanName string = ''
16-
param storageAccountName string = ''
17-
param blobContainerName string = 'files'
1816
param webappLocation string // Set in main.parameters.json
1917

2018
// Azure OpenAI -- Cognitive Services
@@ -72,7 +70,6 @@ module api './core/host/functions.bicep' = {
7270
runtimeName: 'node'
7371
runtimeVersion: '20'
7472
appServicePlanId: appServicePlan.outputs.id
75-
storageAccountName: storage.outputs.name
7673
managedIdentity: true
7774
appSettings: {
7875
AZURE_OPENAI_ENDPOINT: finalOpenAiUrl
@@ -99,24 +96,6 @@ module appServicePlan './core/host/appserviceplan.bicep' = {
9996
}
10097
}
10198

102-
// Storage for Azure Functions API
103-
module storage './core/storage/storage-account.bicep' = {
104-
name: 'storage'
105-
scope: resourceGroup
106-
params: {
107-
name: !empty(storageAccountName) ? storageAccountName : '${abbrs.storageStorageAccounts}${resourceToken}'
108-
location: location
109-
tags: tags
110-
allowBlobPublicAccess: false
111-
containers: [
112-
{
113-
name: blobContainerName
114-
publicAccess: 'None'
115-
}
116-
]
117-
}
118-
}
119-
12099
module openAi 'core/ai/cognitiveservices.bicep' = if (empty(openAiUrl)) {
121100
name: 'openai'
122101
scope: resourceGroup

0 commit comments

Comments
 (0)