Skip to content

Commit 15fa28f

Browse files
Update Remove-AzApiManagementApiFromGateway.md (#22505)
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.
1 parent 0c544b3 commit 15fa28f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ApiManagement/ApiManagement/help/Remove-AzApiManagementApiFromGateway.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ Remove-AzApiManagementApiFromGateway -Context $ApiMgmtContext -GatewayId "012345
3030

3131
This command removes the specified API from a gateway.
3232

33+
### Example 2: Remove an API from a managed gateway
34+
```powershell
35+
$ApiMgmtContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
36+
Remove-AzApiManagementApiFromGateway -Context $ApiMgmtContext -GatewayId "managed" -ApiId "0001" -PassThru
37+
```
38+
39+
This command removes the specified API from the managed gateway.
40+
3341
## PARAMETERS
3442

3543
### -ApiId

0 commit comments

Comments
 (0)