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

Fix parameter set issue with -ODataQuery in Get-AzResource #8154

Merged
merged 1 commit into from
Dec 18, 2018
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 @@ -78,6 +78,7 @@ public sealed class GetAzureResourceCmdlet : ResourceManagerCmdletBase
/// </summary>
[Parameter(ParameterSetName = ByTagObjectParameterSet, Mandatory = false)]
[Parameter(ParameterSetName = ByTagNameValueParameterSet, Mandatory = false)]
[Parameter(ParameterSetName = ByResourceIdParameterSet, Mandatory = false)]
[ValidateNotNullOrEmpty]
public string ODataQuery { get; set; }

Expand Down
2 changes: 2 additions & 0 deletions src/ResourceManager/Resources/Commands.Resources/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
- Additional information about change #1
-->
## Upcoming Release
* Fix parameter set issue when providing `-ODataQuery` and `-ResourceId` parameters for `Get-AzResource`
- More information here: https://github.com/Azure/azure-powershell/issues/7875

## Version 1.0.0
* General availability of `Az.Resources` module
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.ResourceManager.dll-Help.xml
Module Name: Az.Resources
ms.assetid: C2C608E5-3351-4D01-8533-9668B2E9F1D1
Expand All @@ -23,7 +23,7 @@ Get-AzResource [-Name <String>] [-ResourceType <String>] [-ODataQuery <String>]

### ByResourceId
```
Get-AzResource -ResourceId <String> [-ExpandProperties] [-ApiVersion <String>] [-Pre]
Get-AzResource -ResourceId <String> [-ODataQuery <String>] [-ExpandProperties] [-ApiVersion <String>] [-Pre]
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
```

Expand Down Expand Up @@ -211,7 +211,7 @@ Accept wildcard characters: False

```yaml
Type: System.String
Parameter Sets: ByTagNameValueParameterSet, ByTagObjectParameterSet
Parameter Sets: (All)
Aliases:

Required: False
Expand Down