Reputation: 2503
I have Azure Function Premium (Python) with private network and Vnet in Azure.
I cannot currently deploy to Azure with Visual Studio Code from workstation.
11.09.57 func-App-2-171221: Starting deployment...
11.09.57 func-App-2-171221: Creating zip package...
11.09.57 func-App-2-171221: Zip package size: 10 kB
11.09.58: Error: Error 403 - Forbidden
The web app you have attempted to reach has blocked your access.
What is easiest way to build access to network access from my laptop to Function app?
Upvotes: 1
Views: 2251
Reputation: 153
zip
of your function app
which must contain all the files.
For example in python the zip file should containstorage account
's container of which your function app is using.SAS
token for this blob. (make sure the blob is private
)blob URL
.Function app
-> configuration
and add new application settings
.WEBSITE_RUN_FROM_PACKAGE
and value is <blob SAS URL you copied>
.Save
and restart
your function app.Upvotes: 2
Reputation: 2440
This sample shows how Azure Functions can connect to other Azure resources via a private endpoint connection. The sample uses an Azure Functions Premium plan with regional VNet Integration to interact with Azure resources confined to a virtual network.
Below is the sample code for deploying the azure function code.
func azure functionapp publish [YOUR-FUNCTION-APP-NAME]
For complete information check the Private end points document.
Upvotes: 0