Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot publish a function from Visual Studio if backing storage account restricts access through firewall #2536

Open
ADH-LukeBollam opened this issue Aug 20, 2024 · 6 comments

Comments

@ADH-LukeBollam
Copy link

ADH-LukeBollam commented Aug 20, 2024

I have a premium function with a backing storage account. The function is on a subnet of a virtual network, and the backing storge is connected to the same subnet via a Service Endpoint. I have also added my own IP address to the function whitelist so that I can publish.

If the backing storage account is locked down behind a VPN, a number of issues start happening:
You get this error in the Overview:
image

With these details:
image

You also cannot publish from Visual Studio anymore:
"Error : The attempt to publish the ZIP file through ****/api/zipdeploy failed with HTTP status code InternalServerError."

You also cannot swap, with another Internal Server Error.

Adding my own IP to the backing storage whitelist did not resolve this. The only way I could successfully publish was to enable access from all networks on the backing storage.

@ADH-LukeBollam
Copy link
Author

The alternatives add complexity that I would prefer to avoid right now, will there be a fix for the issue? It's not great to have to expose the storage to the internet to simply publish an app.

@ADH-LukeBollam
Copy link
Author

What specifically are you referring to in there?
The only thing I saw was vnetContentShareEnabled, but that sounds like its for a different use case (multiple function apps in one vnet).

@ADH-LukeBollam
Copy link
Author

ADH-LukeBollam commented Oct 5, 2024

hi @bhagyshricompany ,

I've followed the instructions for connecting an azure function to a secured storage:
https://learn.microsoft.com/en-us/azure/azure-functions/configure-networking-how-to?tabs=templates#restrict-your-storage-account-to-a-virtual-network
I've set vnetContentShareEnabled=true in my apps configuration and enabled 'outbound internet traffic' and 'content storage' settings in the vnet integration, but I still cannot publish without removing the firewall entirely from the storage account.

Can you please tell me specifically which part you wanted me to look at so I can publish without having to expose the storage?

@bhagyshricompany
Copy link

@kshyju please comment and validate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants