< Back
Get-AzureRmApiManagementLogger
Post
NAME Get-AzureRmApiManagementLogger
SYNOPSIS
Gets API Management Logger objects.
SYNTAX
Get-AzureRmApiManagementLogger -Context <PsApiManagementContext> [-DefaultProfile <IAzureContextContainer>] -LoggerId <String> [<CommonParameters>]
DESCRIPTION
The Get-AzureRmApiManagementLogger cmdlet gets an Azure API Management Logger or all the loggers.
PARAMETERS
-Context <PsApiManagementContext>
Specifies a PsApiManagementContext object.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-LoggerId <String>
Specifies the ID of the specific logger to get.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLogger
The detail of the Logger configured in API Management service.
IList<Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLogger>
The list of Loggers configured in API Management service.
NOTES
Example 1: Get all loggers
PS C:\\>$apimContext = New-AzureRmApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
PS C:\\>Get-AzureRmApiManagementLogger -Context $apimContext
This command gets all the loggers for the specified context.
Example 2: Get a specific logger
PS C:\\>$apimContext = New-AzureRmApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
PS C:\\>Get-AzureRmApiManagementLogger -Context $apimContext -LoggerId "Logger123"
This command removes a logger that has the ID Logger123.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... mentlogger
New-AzureRmApiManagementLogger
Remove-AzureRmApiManagementLogger
Set-AzureRmApiManagementLogger
SYNOPSIS
Gets API Management Logger objects.
SYNTAX
Get-AzureRmApiManagementLogger -Context <PsApiManagementContext> [-DefaultProfile <IAzureContextContainer>] -LoggerId <String> [<CommonParameters>]
DESCRIPTION
The Get-AzureRmApiManagementLogger cmdlet gets an Azure API Management Logger or all the loggers.
PARAMETERS
-Context <PsApiManagementContext>
Specifies a PsApiManagementContext object.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-LoggerId <String>
Specifies the ID of the specific logger to get.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLogger
The detail of the Logger configured in API Management service.
IList<Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLogger>
The list of Loggers configured in API Management service.
NOTES
Example 1: Get all loggers
PS C:\\>$apimContext = New-AzureRmApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
PS C:\\>Get-AzureRmApiManagementLogger -Context $apimContext
This command gets all the loggers for the specified context.
Example 2: Get a specific logger
PS C:\\>$apimContext = New-AzureRmApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
PS C:\\>Get-AzureRmApiManagementLogger -Context $apimContext -LoggerId "Logger123"
This command removes a logger that has the ID Logger123.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... mentlogger
New-AzureRmApiManagementLogger
Remove-AzureRmApiManagementLogger
Set-AzureRmApiManagementLogger