Skip to content

Commit 16a7e65

Browse files
committed
change apiId to required parameter
1 parent 4d2737a commit 16a7e65

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ApiManagement/ApiManagement.ServiceManagement/Commands/GetAzureApiManagementProduct.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class GetAzureApiManagementProduct : AzureApiManagementCmdletBase
5353
[Parameter(
5454
ParameterSetName = GetByApiId,
5555
ValueFromPipelineByPropertyName = true,
56-
Mandatory = false,
56+
Mandatory = true,
5757
HelpMessage = "ApiId of the Api to find the correlated products. This parameter is optional.")]
5858
public String ApiId { get; set; }
5959

src/ApiManagement/ApiManagement/help/Get-AzApiManagementProduct.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Get-AzApiManagementProduct -Context <PsApiManagementContext> [-Title <String>]
3333

3434
### GetByApiId
3535
```
36-
Get-AzApiManagementProduct -Context <PsApiManagementContext> [-ApiId <String>]
36+
Get-AzApiManagementProduct -Context <PsApiManagementContext> -ApiId <String>
3737
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
3838
```
3939

@@ -68,7 +68,7 @@ Type: System.String
6868
Parameter Sets: GetByApiId
6969
Aliases:
7070

71-
Required: False
71+
Required: True
7272
Position: Named
7373
Default value: None
7474
Accept pipeline input: True (ByPropertyName)

0 commit comments

Comments
 (0)