rmbolger / Posh-ACME

PowerShell module and ACME client to create certificates from Let's Encrypt (or other ACME CA)
https://poshac.me/docs/latest/
MIT License
778 stars 191 forks source link

Support for Microsoft 365 DNS #564

Open cohortswitchback opened 2 months ago

cohortswitchback commented 2 months ago

Would love to see support for Microsoft 365 DNS:

name servers are:

ns1.bdm.microsoftonline.com ns2.bdm.microsoftonline.com ns3.bdm.microsoftonline.com ns4.bdm.microsoftonline.com

rmbolger commented 2 months ago

Hi @cohortswitchback, thanks for reaching out. The only API I've been able to find associated with Microsoft 365 is the domains endpoint on the Graph API. But it seems geared towards only managing DNS records specifically for use with services supported by Microsoft 365. There doesn't seem to be an endpoint capable of creating custom records like you can in the UI even in the latest beta.

https://learn.microsoft.com/en-us/graph/api/resources/domain?view=graph-rest-beta#methods

Is there another API you know of that can do this? Or is there another client with a Microsoft 365 plugin you know of that I could reference?

cohortswitchback commented 2 months ago

I’m not aware of one, unfortunately. Thank you though, Ryan, for the speedy follow up and the PA tool.

rmbolger commented 2 months ago

Microsoft may add the necessary APIs eventually. So it's probably worth checking back every now and then. I'm happy to leave this issue open for the time being.