< Back

Get-AzureRmApiManagementAuthorizationServer

Tue Jan 29, 2019 9:29 pm

NAME Get-AzureRmApiManagementAuthorizationServer



SYNOPSIS

Gets an API Management authorization server.





SYNTAX

Get-AzureRmApiManagementAuthorizationServer -Context <PsApiManagementContext> [-DefaultProfile <IAzureContextContainer>] [-ServerId <String>]

[<CommonParameters>]





DESCRIPTION

The Get-AzureRmApiManagementAuthorizationServer cmdlet gets all Azure API Management authorization servers or specified authorization servers.





PARAMETERS

-Context <PsApiManagementContext>





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



-ServerId <String>





Required? false

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.PsApiManagementOAuth2AuthrozationServer

The details of the Authorization Server in a given Api Management service.



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

The list of Authorization Server in a given Api Management service.





NOTES









Example 1: Get all authorization servers



PS C:\\>$ApiMgmtContext = New-AzureRmApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"

PS C:\\>Get-AzureRmApiManagementAuthrizarionServer -Context $ApiMgmtContext



This command gets all API Management authorization servers.





Example 2: Get a specified authorization server



PS C:\\>$ApiMgmtContext = New-AzureRmApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"

PS C:\\>Get-AzureRmApiManagementCertificate -Context $ApiMgmtContext -ServerId "0123456789"



This command gets the specified authorization server.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... tionserver

New-AzureRmApiManagementAuthorizationServer

Remove-AzureRmApiManagementAuthorizationServer

Set-AzureRmApiManagementAuthorizationServer