Upload Azure AD B2C Custom Policy Via Powershell

廉价感情. 提交于 2019-12-04 04:11:53

问题


How can I upload custom policies via power shell?


回答1:


Azure AD B2C now supports PowerShell cmdlets

Azure AD Preview module documentation

See medium blog

Quick Start

Launch Power Shell and try below commands

> Install-Module -Name AzureADPreview 
> Connect-AzureAd -tenantId <yourtenantname> -accountId <yourAlias@contoso.com>
> Get-AzureADMSTrustFrameworkPolicy 
> Get-AzureADMSTrustFrameworkPolicy -Id B2C_1A_signup_signin -OutputFilePath C:\B2C_1A_signup_signin.xml
> New-AzureADMSTrustFrameworkPolicy  -InputFilePath C:\B2C_1A_signup_signin.xml
> Set-AzureADMSTrustFrameworkPolicy  -Id B2C_1A_signup_signin -InputFilePath C:\B2C_1A_signup_signin.xml



回答2:


You cant.

Well, you used to be able to if you had an advanced policy with the B2C powershell tools but ever since they moved from B2C to Identity Experience Framework they have disabled it.

I presume when they go back to ARM templates then they will re-enable it.




回答3:


Azure AD B2C currently does not support any programmatic policy management, including Graph, PowerShell or ARM templates.

You can support this ask and keep track of it (i.e. get notified when there's a preview available) for voting for it in the Azure AD B2C feedback forum: Programmatically Manage B2C Policies



来源:https://stackoverflow.com/questions/46344368/upload-azure-ad-b2c-custom-policy-via-powershell

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!