Is it possible to access Azure Resource Manager (https://management.azure.com/subscriptions/8710ff2b-e468-434a-9a84-e522999f6b81/providers/Microsoft.Compute/skus?api-version=2021-07-01) from a VNet which does not have internet access?

Arvind 0 Reputation points
2024-05-09T18:58:46.5466667+00:00

Is it possible to access Azure Resource Manager (https://management.azure.com/subscriptions/xxxxxxxxxxxxxxx/providers/Microsoft.Compute/skus?api-version=2021-07-01) from a VNet which does not have internet access?

I dont have NAT gateway specified and this VNET is created such that it should not reach out to internet. I tried providing all the serviceEndpoints in the Subnet but still does not work. But as soon as I attach a Nat Gateway it reaches out to the internet and gets connected. Is there any way to connect to the above endpoint without Nat?

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,194 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KapilAnanth-MSFT 36,396 Reputation points Microsoft Employee
    2024-05-10T04:04:40.44+00:00

    @Arvind ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    I understand that you would like to access "https://management.azure.com/" without having internet access from a VM.

    Unfortunately, this is not possible.

    • This is not a PaaS Service, and so you cannot use a service endpoint or private endpoint to access this via Private IPs.
    • You will need internet connection to access this.
    • This means, not necessarily NAT - you can also attach a Public IP to the VM to access "https://management.azure.com/" .

    You must use NSGs or Firewall and fine tune your internet connectivity instead of cutting off Internet connection altogether.

    P.S : With NSG, you still require NAT or Public IP assigned to the VM, but with Azure Firewall you don't have to attach the NAT or Public IP to the VM

    Kindly let us know if this helps or you need further assistance on this issue.

    Thanks,

    Kapil


    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments