New-AzApiManagementBackendCredential

Creates a new Backend Credential contract.

Syntax

New-AzApiManagementBackendCredential
   [-CertificateThumbprint <String[]>]
   [-Query <Hashtable>]
   [-Header <Hashtable>]
   [-AuthorizationHeaderScheme <String>]
   [-AuthorizationHeaderParameter <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Creates a new Backend Credential contract.

Examples

Example 1: Create a Backend Credentials In-Memory Object

PS C:\>$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
PS C:\>$credential = New-AzApiManagementBackendCredential -AuthorizationHeaderScheme basic -AuthorizationHeaderParameter opensesame -Query @{"sv" = @('xx', 'bb'); "sr" = @('cc')} -Header @{"x-my-1" = @('val1', 'val2')}

PS C:\>$backend = New-AzApiManagementBackend -Context  $apimContext -BackendId 123 -Url 'https://contoso.com/awesomeapi' -Protocol http -Title "first backend" -SkipCertificateChainValidation $true -Credential $credential -Description "my backend"

Creates a Backend Credentials Contract

Parameters

-AuthorizationHeaderParameter

Authorization Header used for the Backend. This parameter is optional.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AuthorizationHeaderScheme

Authorization Scheme used for the Backend. This parameter is optional.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CertificateThumbprint

Client Certificate Thumbprints. This parameter is optional.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Header

Header Parameter Values accepted by Backend. This parameter is optional.

Type:Hashtable
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Query

Query Parameter Values accepted by Backend. This parameter is optional.

Type:Hashtable
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

PsApiManagementBackendCredential