Skip to content

Commit

Permalink
private endpoint for storage
Browse files Browse the repository at this point in the history
  • Loading branch information
jmservera committed Jul 26, 2024
1 parent 4932724 commit 1783978
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
11 changes: 11 additions & 0 deletions ocpp-server/infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,17 @@ module webPrivateEndpoint './modules/privateEndpoint.bicep' = {
}
}

module storagePrivateEndpoint './modules/privateEndpoint.bicep' = {
name: 'webStoragePrivateEndpoint'
params: {
privateLinkResource: webApp.outputs.storageAccountId
subnetId: virtualNetwork.outputs.privateSubnetId
vnetId: virtualNetwork.outputs.vnetId
targetSubResource: 'blob'
endpointName: 'webStoragePrivate${uniqueString(resourceGroup().id)}'
}
}

module appGw './modules/appgw.bicep' = {
name: 'appGwService'
params: {
Expand Down
12 changes: 1 addition & 11 deletions ocpp-server/infra/modules/webapp.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,6 @@ module storage 'storage.bicep' = {
}
}

module storagePrivateEndpoint './privateEndpoint.bicep' = {
name: 'webStoragePrivateEndpoint'
params: {
privateLinkResource: storage.outputs.storageAccountId
subnetId: subNet.id
vnetId: vNet.id
endpointName: 'webStoragePrivate${uniqueString(resourceGroup().id)}'
targetSubResource: 'blob'
}
}

resource appService 'Microsoft.Web/sites@2020-06-01' = {
name: webSiteName
location: location
Expand Down Expand Up @@ -157,3 +146,4 @@ resource ipSecurityRestrictions 'Microsoft.Web/sites/config@2023-12-01' = {
output webSiteName string = appService.name
output appServiceId string = appService.id
output storageName string = storage.outputs.storageAccountName
output storageAccountId string = storage.outputs.storageAccountId

0 comments on commit 1783978

Please sign in to comment.