PowerShell to upload IEF policies to multiple B2C tenants

Premier Developer

Premier

Premier Dev Consultant Marius Rochon shares an example of a PowerShell script to upload a set of B2C IEF policies to one or more B2C tenants.


For your convenience, these scripts and walkthrough are provided on GitHub to accomplish the following:

  1. Modify a set of IEF policies using values from a configuration file
  2. Uploads the files to one or more B2C tenants

(For better security, particularly if using the script for updating multiple B2C tenants, use X509 as credential. You will need to modify the script of course)

Where:

  • clientId is the Application Id from application registration step
  • clientSecret is the Application Key from application registration step
  • confFile is the location of your appSettings.json file
  • source is the directory containing your IEF policies
  • dest (optional) is the directory where the script should save copies of modified and uploaded policies

 

Premier Developer
Premier Developer

Premier Support for Developers

Follow Premier   

0 comments

Leave a comment