Hi I would need to grant users access to app gateway so that they can create, update, or delete listeners, rules, etc. It looks like they would need a network contributor role, but that will leave them with the ability to potentially delete networks and app gateway. Is that the case? What roles and permissions are needed to achieve this?
They would also need access to the key vault (secrets and certificates that I believe kv officer roles would be sufficient, I think).
I appreciate your help
As per this the role would be
Microsoft.Network/virtualNetworks/subnets/join/action
My recommendation would be try adding a new custom role with below permission
Then, try to test your role by doing the operations on the portal.Lets say if you don't have enough permission, you will get an error telling you what permissions are missing. Using that, you can enhance the custom role by providing additional permissions
I assume your virtual network/appgateway is in the same RG if so you can assign this role to that particular RG for the least privilege. Else you have to assign the role to the appropriate scope where your app gateway and vnet resource resides
For keyvualt you can use the 2 below builtin roles