https://pulumi.com logo
Title
r

rapid-motherboard-85863

03/22/2023, 10:50 AM
Hi, I've noticed on the Azure Classic there is a resource Custom Domain within the Api Management. Is there an equivalent with the Azure Native? https://www.pulumi.com/registry/packages/azure/api-docs/apimanagement/customdomain/
b

bored-activity-40468

03/22/2023, 12:10 PM
I don't think its there yet. After creating ApiManagementService, I use GetApiManagementServiceDomainOwnershipIdentifier to get that identifier and create the CNAME and TXT verification records. Then I use the azure sdk to add the custom domain to ApiMangement with the manged certificate preview feature.
r

rapid-motherboard-85863

03/22/2023, 1:09 PM
Thanks, I was a little bit worried about then changing a property which caused Pulumi to then remove the custom domain as its different to what it thinks is deployed. I guess I could use Ignore functionality
b

bored-activity-40468

03/22/2023, 1:32 PM
Good point, I haven't run into that, using azure-native it might not see the custom domain as a diff because it doesn't know about it yet, in the api.
At one point I was using both providers which works. Doing it the way I am now because I wanted to take advantage of the managed cert feature.