@Trouble1 Trouble1 , apologies for the delay in response. You should be able to restrict all inbound and outbound connections to Azure resources with respect to IP address using NSG's. But all those resources should be VNET-connected.
----------
Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.