Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import-DCConditionalAccessPolicyDesign: You cannot call a method on a null-valued expression #17

Open
kathodion opened this issue Mar 28, 2022 · 1 comment

Comments

@kathodion
Copy link

Import does not run properly. Used it several time in the past and the json file get loaded fine. Here verbose output

Import-DCConditionalAccessPolicyDesign @parameters -verbose
VERBOSE: Connecting to Microsoft Graph...
VERBOSE: POST with 1211-byte payload
VERBOSE: received 4518-byte response of content type application/json
VERBOSE: Content encoding: utf-8
VERBOSE: Importing JSON from 'C:\repo\personalStuff\scripts\security\conditional-access_mfa\vista\vista_ca_policy_basic.json'...
VERBOSE: Setting all new policys to report-only mode...
VERBOSE: Deleting all existing Conditional Access policies...
VERBOSE: GET with 0-byte payload
VERBOSE: received -byte response of content type application/json
VERBOSE: Content encoding: utf-8
Import-DCConditionalAccessPolicyDesign: You cannot call a method on a null-valued expression.

@SachinKab
Copy link

Hi, I am facing issues with the Import-DCConditionalAccessPolicyDesign @parameters function and receive the following error
VERBOSE: Checking PowerShell version...
VERBOSE: PowerShell 7.4 found!
VERBOSE: Looking for the Graph PowerShell module...
VERBOSE: Graph PowerShell module 2.19.0 found!
Import-DCConditionalAccessPolicyDesign: You cannot call a method on a null-valued expression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants