1. Create a VNET with 2 subnets
2. Create a service endpoint policy. That enables us to specify which particular storage account to connect to. This is currently enabled for storage accounts alone. Otherwise as part of service endpoints we can specify the resource provider alone and not a specific resource.
We can specify this service endpoint policy while creating a service endpoint. Only storage account allow service endpoint policies as of now.
If we notice then selecting cosmos db or any other service other than storage will not have the ability to accept service endpoint policies.
As mentioned microsoft.storage allows us to add service endpoint policies. Thus we can specify a particular resource within a provider
This is 1 way of enabling service endpoints. Or we can directly go to the storage account and from the networking tab select Sub1. This will automatically configure service endpoints and will add a service endpoint policy that enables the resource to connect to the storage account.
Check out: Service Endpoints (anisharvind.blogspot.com)
3. Add the subnet that has the service endpoint enabled to the storage account ACL.
Comments
Post a Comment