Gopi
Gopi

Reputation: 5897

Mount BLOB Container as a directory in AppService

We have an Angular application running on AppService (Windows) and there are large volume of SCORM packages on BLOB storage. To launch the SCORM package, we need to iframe the launcher URL(a BLOB URL) inside an Angular component. The SCORM launcher html file has few JS method which we need to access from Angular component. When trying to access the JS method from Angular, we are getting Cross origin error.

One option is to place all the SCORM packages under the same AppService root folder so that both Angular application and SCORM packages will be under same domain. But since these SCORM packages run into hundreds of GB, it is best to place it in storage rather in root folder.

So is there any way to mount a BLOB container as a drive in AppService so that when accessing the JS methods in Angular it will not result in Cross origin error?

Note: We don't follow container deployment but direct deployment to AppService.

Upvotes: 0

Views: 493

Answers (1)

Ansuman Bal
Ansuman Bal

Reputation: 11451

As I have already mentioned in the comment , It is not possible to mount AzureBlob in a App Service of kind:Windows , you can only use Azure Files as mentioned in the Microsoft Document in limitations section. If it was of kind:linux then you could have mounted both AzureBlobs and Azure Files.

I have already tested for the same thing while creating a App service of windows and mounting the azure blob container using terraform in this SO thread and as you can find the output there it will error out.

So , as a Solution you can create a Azure File Share in the storage account and mount the same in the app service.

You can refer the below documents :

Create Fileshare

Mount Fileshare in Windows App Serice

Upvotes: 1

Related Questions