From 42a06ee3915a011c6517acca909672373331b389 Mon Sep 17 00:00:00 2001 From: Saurav Raghuvanshi <47741547+sauravraghuvanshi@users.noreply.github.com> Date: Sat, 5 Aug 2023 00:14:34 +0530 Subject: [PATCH] Update Remove-AzApiManagementApiFromGateway.md Added the example of removing an API from a managed gateway. Users are not able to achieve it by following the first example and raising questions using support tickets. --- .../help/Remove-AzApiManagementApiFromGateway.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ApiManagement/ApiManagement/help/Remove-AzApiManagementApiFromGateway.md b/src/ApiManagement/ApiManagement/help/Remove-AzApiManagementApiFromGateway.md index 75f03a9cb5bc..44da7e9712c0 100644 --- a/src/ApiManagement/ApiManagement/help/Remove-AzApiManagementApiFromGateway.md +++ b/src/ApiManagement/ApiManagement/help/Remove-AzApiManagementApiFromGateway.md @@ -30,6 +30,14 @@ Remove-AzApiManagementApiFromGateway -Context $ApiMgmtContext -GatewayId "012345 This command removes the specified API from a gateway. +### Example 2: Remove an API from a managed gateway +```powershell +$ApiMgmtContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso" +Remove-AzApiManagementApiFromGateway -Context $ApiMgmtContext -GatewayId "managed" -ApiId "0001" -PassThru +``` + +This command removes the specified API from the managed gateway. + ## PARAMETERS ### -ApiId