Skip to content

Commit 1c0844a

Browse files
authored
Updates scirpt samples with correct variable names (#17267)
1 parent 2bf21cc commit 1c0844a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ApiManagement/ApiManagement/help/New-AzApiManagementSubscription.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ This command subscribes an existing user to a product.
4343
### Example 2: Create a subscription for all Api Scope
4444
```powershell
4545
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
46-
New-AzApiManagementSubscription -Context $context -Scope "/apis" -Name "GlobalApiScope"
46+
New-AzApiManagementSubscription -Context $apimContext -Scope "/apis" -Name "GlobalApiScope"
4747
```
4848

4949
### Example 3: Create a subscription for Product Scope
5050
```powershell
5151
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
52-
New-AzApiManagementSubscription -Context $context -Scope "/products/starter" -Name "UnlimitedProductSub"
52+
New-AzApiManagementSubscription -Context $apimContext -Scope "/products/starter" -Name "UnlimitedProductSub"
5353
```
5454

5555
## PARAMETERS

0 commit comments

Comments
 (0)