-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Get-AzPolicyDefinition : A parameter cannot be found that matches parameter name 'Depth'. #24971
Comments
I see no issues on latest Linux Powershell
|
Hi @peterboba , There is a piece of script in the new version of Az.Resources was not supported by windows powershell (5.x), please try using powershell core (7.x) as a workaround for now. Meanwhile we will improve the compatibility of the script. Thanks |
Facing the same issue with |
I am facing the same issue with New-AzPolicySetDefinition Get-AzPolicySetDefinition : A parameter cannot be found that matches parameter name 'Depth'.
When can we have a fix for this? |
Same. 7.1.0 Az.Resources Get-AzPolicyAssignment
|
Fix for GH issue: Azure#24971 Fix for "Get-AzPolicyExemption requests unnecessary parameter for Get-AzPolicyExemption in v12" Complete support for getting and assigning versioned policy definitions and sets
Fix for GH issue: Azure#24971 Fix for "Get-AzPolicyExemption requests unnecessary parameter for Get-AzPolicyExemption in v12" Complete support for getting and assigning versioned policy definitions and sets
…ns and sets Fix for GH issue: Azure#25084 Fix for GH issue: Azure#24971 Fix for "Get-AzPolicyExemption requests unnecessary parameter for Get-AzPolicyExemption in v12"
* Handful of cleanup items (no recording files) - Fix default formatting for output objects - Remove leftover auto-generated InputObject parameters - Remove Helpers.psm1, which was replaced by Helpers.ps1 - Add info to error message in test harness * Implement -Version and -ListVersion parameters on Get-AzPolicy[Set]Definition Add tests for -Version and -ListVersion * Add recordings for all non-backcompat tests * Add rest of recording files (backcompat) * Tag tests that create big recording files with LiveOnly to get under the Github PR maximum size * Rerecord all tests * Add back InputObject parameters to Remove-* cmdlets. * Complete support for getting and assigning versioned policy definitions and sets Fix for GH issue: #25084 Fix for GH issue: #24971 Fix for "Get-AzPolicyExemption requests unnecessary parameter for Get-AzPolicyExemption in v12" * Re-record tests
Hi all, Fix for this issue has been merged, please try new release on 2024-07-02 PST |
Description
Get-AzPolicyDefinition fails with "A parameter cannot be found that matches parameter name 'Depth'."
Works fine with older version of Az.Resources
Issue script & Debug output
Environment data
Module versions
Error output
No response
The text was updated successfully, but these errors were encountered: