Skip to content
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

Private DNS Zone of Azure Static WebApp #102010

Closed
arindam0310018 opened this issue Nov 28, 2022 · 19 comments
Closed

Private DNS Zone of Azure Static WebApp #102010

arindam0310018 opened this issue Nov 28, 2022 · 19 comments

Comments

@arindam0310018
Copy link
Contributor

Hello Team,

While Configuring Private Endpoint of Azure Static WebApp, below Private DNS Zone gets created -

  • privatelink.1.azurestaticapps.net
  • privatelink.2.azurestaticapps.net

where 1 or 2 = DNS Partition ID

This completely depends upon Use Case.
I had 2 Use cases in 2 Different Subscription. On the 1st Use Case, both Private Endpoint DNS got created. In the 2nd Usecase only
"privatelink.2.azurestaticapps.net" private DNS Zone got created.

Now coming to my question:-

image

It should be replaced by "privatelink.1.azurestaticapps.net" and/or "privatelink.2.azurestaticapps.net" -

2

Please let me know.

Many Thanks
Regards, Arindam Mitra


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

@SnehaAgrawal-MSFT
Copy link
Contributor

@arindam0310018 Thanks for the feedback! We are currently investigating and will update you shortly.

@AjayKumar-MSFT AjayKumar-MSFT added the escalated-content-team used when escalating an issue to content team label Dec 1, 2022
@AjayKumar-MSFT
Copy link
Contributor

Your feedback has been shared with the content owner for further review, and update the doc as appropriate.

@arindam0310018
Copy link
Contributor Author

Hello @AjayKumar-MSFT
Thank you for your reply.
Any update from the content owner ?

Many Thanks
Regards, Arindam Mitra

@AjayKumar-MSFT
Copy link
Contributor

@burkeholland, Requesting your review and comments on this. Thanks!

@arindam0310018
Copy link
Contributor Author

Hello @AjayKumar-MSFT and @burkeholland
May I Request you to please update.

Many Thanks
regards, Arindam Mitra

@arindam0310018
Copy link
Contributor Author

Hello @AjayKumar-MSFT and @burkeholland

Request for an update.

Many Thanks
regards, Arindam Mitra

@arindam0310018
Copy link
Contributor Author

Hello @AjayKumar-MSFT and @burkeholland

Request for an update please...

Many Thanks
regards, Arindam Mitra

@thomasgauvin
Copy link
Contributor

Hi @arindam0310018, regarding your question of the partition Id, Azure Static Web Apps has different partitions in order to support the amount of Static Web Apps that we host. Your Azure Static Web Apps default hostname will have that partition id in its url.

image

The private endpoint and the private DNS zone must match this url, which is why the DNS zone privatelink.{partitionId}.azurestaticapps.net is added

Hope this answers your question

@arindam0310018
Copy link
Contributor Author

Hello @thomasgauvin
Thank you very much for your kind reply.
The concept is clear. Thank you again for the refreshing the concepts.

I had 2 part question (Request you to refer above):-

Point 1: The details which you mentioned in your reply is missing in the MS documentation - https://learn.microsoft.com/en-us/azure/static-web-apps/private-endpoint.
This is what needs to be added for better clarity.

Point 2: It is completed. The Screenshot has been updated. Thank you for making it happen. @burkeholland and @AjayKumar-MSFT
image

Many Thanks
Regards, Arindam Mitra

@arindam0310018
Copy link
Contributor Author

Hello @AjayKumar-MSFT and @burkeholland

May I ask for an update please on Point 1 (Please refer to the above comment for details)

Many Thanks
regards, Arindam Mitra

@arindam0310018
Copy link
Contributor Author

Hello @AjayKumar-MSFT and @burkeholland

May I ask for an update please on Point 1 (Please refer to the above comment for details).
Awaiting for your response.

Many Thanks
regards, Arindam Mitra

@arindam0310018
Copy link
Contributor Author

Hello @AjayKumar-MSFT and @burkeholland

May I ask for an update please on Point 1 (Please refer to the above comment for details).
Awaiting for your kind response.

I will close this issue as soon as Point 1 is clarified.

Many Thanks
regards, Arindam Mitra

@AjayKumar-MSFT
Copy link
Contributor

arindam0310018, Apologies for the delay and any inconvenience with this! I had been discussing on this internally, it's been author ( @burkeholland) for a review. We appreciate your patience!

@rybal06
Copy link

rybal06 commented May 5, 2023

If I may add - the way this is implemented really makes hub and spoke DNS at scale difficult:

https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/azure-best-practices/private-link-and-dns-integration-at-scale

It seems like we will need to pre-create centralized DNS zones for all DNS partition IDs; and find a way for the DeployIfNotExists policy to determine which partition ID to put the record in. Today, the Static WebApp is exposing a groupId of "staticSites" regardless of the DNS partition ID, so for the DeployIfNotExists policy to determine which PrivateDNSZone to link to the private endpoint is bit challenging.

@arindam0310018
Copy link
Contributor Author

Hello @rybal06 ,
Thank you very much for adding your inputs. Very much appreciated.

Hello @AjayKumar-MSFT and @burkeholland
Any update please ?

Many Thanks
Regards, Arindam Mitra

@arindam0310018
Copy link
Contributor Author

hello @AjayKumar-MSFT and @burkeholland
I also could not the find the Product Roadmap in the Azure Static Web App Documentation - https://learn.microsoft.com/en-us/azure/static-web-apps/
Kindly advice.

Many Thanks
regards, Arindam Mitra

@arindam0310018
Copy link
Contributor Author

Hello @AjayKumar-MSFT and @burkeholland

I see below which is very helpful for automating the Azure Static Webapp and Private DNS Zone.
image

One Last update from my side -
For One of my projects, I created 5 Static Web Apps with private endpoint for which 3 Private DNS Zones got created -

  • privatelink.1.azurestaticapps.net
  • privatelink.2.azurestaticapps.net
  • privatelink.3.azurestaticapps.net

Refer the below screenshots -

Static WebApp:-
image

Private DNS Zone:-
image

With this information, I close the issue.
In my opinion, there are lot of valuable information in the thread for user community if some one stumbles on the same issue.

When @AjayKumar-MSFT @burkeholland finds time, please update with more relevant information.

I also Thank @rybal06 for his valuable inputs.

Many Thanks
Regards, Arindam Mitra

@AjayKumar-MSFT
Copy link
Contributor

AjayKumar-MSFT commented Aug 7, 2023

arindam0310018, Thanks for all the updates and your feedback to improve Azure doc. Your feedback has been shared with the content owner (@burkeholland) for a review, and update the doc as appropriate.

@rybal06
Copy link

rybal06 commented Aug 7, 2023

Thanks. I also had worked with the Azure Policy team on this issue. It turns out implementing https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/azure-best-practices/private-link-and-dns-integration-at-scale for static web apps is not possible using an Azure Policy based approach due to how DNS is implemented by the static web apps team with DNS partitions today. I was not able to find a scalable workaround myself either

It might be good to add a note to this in the documentation for other customers that the recommended CAF approach is not compatible with Static Web Apps today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants