MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
9.98k stars 20.95k forks source link

Unable to use Add-OBFileSpec to exclude directory or file type #121983

Open nathan-given-health-catalyst opened 1 week ago

nathan-given-health-catalyst commented 1 week ago

Running the code Add-OBFileSpec -Policy $NewPolicy -FileSpec $Exclusions

Yields this error: Add-OBFileSpec : The current operation failed due to an internal service error "Invalid input error". Please retry the operation after some time. If the issue persists, please contact Microsoft Support.

image

I'm running Windows Server 2019.

I'd like to deploy a standardized configuration to 130 servers using powershell and this standardized configuration includes both "includes" directories and "excludes" file types. When testing, though, I can't get the policy to allow me to add a filespec that has exclusions (both explicit directories or file type exclusions). I'm able to do this via the GUI just fine, though.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

PesalaPavan commented 1 week ago

@nathan-given-health-catalyst Thanks for your feedback! We will investigate and update as appropriate.

AnuragSingh-MSFT commented 1 week ago

@nathan-given-health-catalyst, thank you for the feedback.

@AbhishekMallick-MS - could you please review the feedback and share your thoughts. Thank you