Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Can I Configure Azure B2C Automatically?

I have been following several Microsoft tutorials to configure Azure B2C with my web app and rest api. e.g. https://learn.microsoft.com/en-ca/azure/active-directory-b2c/tutorial-single-page-app-webapi?tabs=app-reg-ga

There was a lot of back and forth and now it is working.

All of the config was done in the portal and now it feels very fragile as it took me several attempts to get it all right.

The rest of my Azure deployment is configured with Terraform, Ansible and Azure CLI.

I couldn't see any support for B2C for any of these.

Is there an alternative? Can you export the config to a file as a backup?

What if something breaks? How do I roll back to a previously working version?

like image 375
opticyclic Avatar asked Nov 01 '25 22:11

opticyclic


1 Answers

You can use the graph api and you can control it with a CICD pipeline.

https://learn.microsoft.com/en-us/azure/active-directory-b2c/microsoft-graph-operations

https://learn.microsoft.com/en-us/azure/active-directory-b2c/deploy-custom-policies-devops

like image 200
Jas Suri - MSFT Avatar answered Nov 04 '25 08:11

Jas Suri - MSFT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!