-
Notifications
You must be signed in to change notification settings - Fork 500
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
Unable to deploy IntuneAntivirusPolicyWindows10SettingCatalog polices #3818
Comments
@jeffreycloudlife feel free to add anything I may have missed haha |
Did you try to do the POST request yourself, to rule out if the problem lies in the module rather than the API endpoint? I have a feeling myself it's related to the Graph API, as (if I remember correctly) the POST request is exactly the same with the PUT request (with the exception that with the PUT request, it points to a DeviceConfigurationPolicyID). Otherwise, it could be a logic problem in the module, where the POST request does not return the DeviceConfigurationPolicyID. In the mean time, I am not sure how big your deployments are, but you could try out the workarounds I mentioned in the previous issue. |
Yea I was able to POST to the API without issue, |
Is this somehow related to an issue with provisioning the updated Defender Antivirus Policy template via the Graph API? Template ID "804339ad-1553-4478-a742-138fb5807418_1" does not exist in the list of templates and cannot be created via the API. Existing policies with this template also cannot be updated. |
Hey guys, @andikrueger @William-Francillette |
Just to understand it a bit better. The policy can not modified nor created by using graph? If so, we should reach out to the graph team to bring this to their attention. |
I'll have a look next, working on another issue atm related to assignment as well, there was some modification in the api that broke some of the resource, will revert asap @andikrueger feel free to assign me the issue 👍🏽 |
Thanks for picking up @William-Francillette, please let me know if I can help with the troubleshooting 😅 |
@Cyanic-Cloud , thanks for reported the issue - |
@William-Francillette Need to test this tomorrow, but please take a look at #3540, if Identity is not correct/found in the tenant it keeps creating new policies. |
@ricmestre, tested retrieving policy via displayname and worked fine |
Thanks @William-Francillette much appreciated, please can you confirm what version of DSC I should use? |
Next release hopefully |
@William-Francillette You're correct, that issue seems to be solved now, unfortunately there's another problem with making a change on one of the settings and then run Test-DscConfiguration will report that the resource is not in the desired state. Changing Ensure to Absent also won't delete the resource, I get an API error. VERBOSE: [G02PTXN03538]: [[IntuneAntivirusPolicyWindows10SettingCatalog]IntuneAntivirusPolicyWindows10SettingCatalog-MDE - Microsoft Defender AUDIT ONLY] Removing Endpoint Protection
Policy {System.Collections.Hashtable.DisplayName} # <----------- This is suspicious
[ResourceNotFound] : {
"_version": 3,
"Message": "An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 87b6389d-6f3e-4629-9425-1e1b67487a9f - Url: https://fef.msub07.manage.microsoft.com
/DeviceConfigV2/DCV2GraphService/de147310-ffff-2433-1134-112301355103/deviceManagement/configurationPolicies('23988ef4-3c36-4b55-a697-3d8ce9e6405c')?api-version=5023-08-14",
"CustomApiErrorPhrase": "",
"RetryAfter": null,
"ErrorSourceService": "",
"HttpHeaders": "{}"
}
+ CategoryInfo : InvalidOperation: ({ DeviceManagem...c, IfMatch = }:) [], CimException
+ FullyQualifiedErrorId : ResourceNotFound,Microsoft.Graph.Beta.PowerShell.Cmdlets.RemoveMgBetaDeviceManagementConfigurationPolicy_Delete
+ PSComputerName : localhost I'll raise a new issue for this once your PR is merged. |
@ricmestre, thanks - sorted |
Thanks @William-Francillette |
Description of the issue
I am trying to deploy new IntuneAntivirusPolicyWindows10SettingCatalog policies, previously in my issue 3722 the Get commands were not pulling back all settings from the template but now with -all added it is returning all values.
I was hoping the fix applied in the following would resolve my issue but it seems it has caused another: #3722.
When trying to deploy two previously exported policies one is deploying fine the other is failing. Please see pipeline error:
Microsoft 365 DSC Version
1.23.1018.1
Which workloads are affected
Security & Compliance Center
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
No response
The text was updated successfully, but these errors were encountered: