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

Gets API Management Logger objects.

Syntax

Get-AzureRmApiManagementLogger
   -Context <PsApiManagementContext>
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-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

Optional Parameters

-InformationAction

Specifies how this cmdlet responds to an information event.The acceptable values for this parameter are:- Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
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>