Oksana
Oksana

Reputation: 13

Get a list of API products via Azure RM powershell

Is there a way to get list of API products via Azure RM powershell module?

In Az powershell module it can be done with command Get-AzApiManagementProduct by pasing -ApiId to it.

Upvotes: 0

Views: 694

Answers (1)

Joey Cai
Joey Cai

Reputation: 20067

You could use Get-AzureRmApiManagementProduct with New-AzureRmApiManagementContext to get the list of api product.

$ApiMgmtContext = New-AzureRmApiManagementContext -ResourceGroupName "yourresourcegroup" -ServiceName "yourapimname"
Get-AzureRmApiManagementProduct -Context $ApiMgmtContext -ApiId $apiname

enter image description here

Upvotes: 2

Related Questions