Get-​Azure​Rm​Api​Management​Logger

Gets API Management Logger objects.

Syntax

Get-AzureRmApiManagementLogger
   -Context <PsApiManagementContext>
   -LoggerId <String>
   [<CommonParameters>]

Description

The Get-AzureRmApiManagementLogger cmdlet gets an Azure API Management Logger or all the loggers.

Examples

Example 1: Get all loggers

PS C:\>Get-AzureRmApiManagementLogger -Context $ApimContext

This command gets all the loggers for the specified context.

Example 2: Get a specific logger

PS C:\>Get-AzureRmApiManagementLogger -Context $ApimContext -LoggerId "Logger123"

This command removes a logger that has the ID Logger123.

Required Parameters

-Context

Specifies a PsApiManagementContext object.

Type:PsApiManagementContext
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-LoggerId

Specifies the ID of the specific logger to get.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Outputs

IList<Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLogger>