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

Correct location handling, fix tests and consistency #24573

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ process {
switch ($resolved.ScopeType) {
'mgName' {
if ($IncludeDescendent) {
throw 'The -IncludeDescendent switch is not supported for management group scopes.'
throw 'The IncludeDescendent switch is not supported for management group scopes.'
}

$calledParameterSet = 'List2'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ process {

# handle disallowed cases not handled by PS parameter attributes
if ($PSBoundParameters['SubscriptionId'] -and $PSBoundParameters['ManagementGroupName']) {
throw 'Only -ManagementGroupName or -SubscriptionId can be provided, not both.'
throw 'Only ManagementGroupName or SubscriptionId can be provided, not both.'
}

# handle specific parameter sets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ process {
switch ($resolved.ScopeType) {
'mgName' {
if ($IncludeDescendent) {
throw 'The -IncludeDescendent switch is not supported for management group scopes.'
throw 'The IncludeDescendent switch is not supported for management group scopes.'
}

$calledParameterSet = 'List3'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ process {

# handle disallowed cases not handled by PS parameter attributes
if ($PSBoundParameters['SubscriptionId'] -and $PSBoundParameters['ManagementGroupName']) {
throw 'Only -ManagementGroupName or -SubscriptionId can be provided, not both.'
throw 'Only ManagementGroupName or SubscriptionId can be provided, not both.'
}

# handle specific parameter sets
Expand Down
Loading