-
Notifications
You must be signed in to change notification settings - Fork 13
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
Remove AccessRestrictionIPRange empty defaultvalue #109
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jvhoof putting a default empty value there is on purposes, which is for users who don't want to set any ip restrictions to their function app (see: https://learn.microsoft.com/en-us/azure/app-service/app-service-ip-restrictions)
any thought?
The current empty defaultvalue will cause the deployment to fail. 2 possible options:
|
@jvhoof May I know which step it is causing failiures? or is it failing in other deployment tools like terraform? It should not cause failures if it is deployed with empty string as the default value. Otherwise, it is a flaw in the code which needs to be fixed |
@JaydenLiang sure, to make it easy and uniform I have a deployment script you can find here: https://github.com/40net-cloud/fortinet-azure-solutions/blob/main/FortiGate/Autoscale/deploy.sh This is the Azure CLI command to deploy the ARM template: When I remove the AccessRestrictionIPRange="0.0.0.0/0" which keeps the default empty defaultvalue get errors in SetupFunctionApp -> Update Function. Hope this gives you an idea. In the end I think a defaultvalue of 0.0.0.0/0 or removing the empty defaultvalue make sense as both will provide an IP range if filled in correctly. Errors on the various levels: { { |
Parameter AccessRestrictionIPRange needs to have a proper ip range value for the template to deploy. Removing the defaultvalue will cause the deployment via Azure Portal to ask for a value before it can deploy.