We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cbaf45 commit 6d53fcdCopy full SHA for 6d53fcd
Modules/CIPPCore/Public/New-CIPPCAPolicy.ps1
@@ -235,6 +235,10 @@ function New-CIPPCAPolicy {
235
}
236
} else {
237
Write-Information 'Creating'
238
+ if ($JSONobj.GrantControls.authenticationStrength.policyType -or $JSONObj.$jsonobj.LocationInfo) {
239
+ #quick fix for if the policy isn't available
240
+ Start-Sleep 1
241
+ }
242
$null = New-GraphPOSTRequest -uri 'https://graph.microsoft.com/beta/identity/conditionalAccess/policies' -tenantid $tenantfilter -type POST -body $RawJSON -asApp $true
243
Write-LogMessage -Headers $User -API $APINAME -tenant $($Tenant) -message "Added Conditional Access Policy $($JSONObj.Displayname)" -Sev 'Info'
244
return "Created policy $displayname for $tenantfilter"
0 commit comments