Editar

Compartilhar via


New-AzApiManagementBackendServiceFabric

Creates an object of PsApiManagementServiceFabric

Syntax

New-AzApiManagementBackendServiceFabric
   -ManagementEndpoint <String[]>
   [-ClientCertificateThumbprint <String>]
   [-ClientCertificateId <String>]
   [-MaxPartitionResolutionRetry <Int32>]
   [-ServerX509Name <Hashtable>]
   [-ServerCertificateThumbprint <String[]>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The New-AzApiManagementBackendServiceFabric cmdlet creates an object of PsApiManagementServiceFabric to be used in cmdlet New-AzApiManagementBackend and Set-AzApiManagementBackend.

Examples

Example 1: Create a Backend Service Fabric In-Memory Object

$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
$ManagementEndpoints = 'https://sfbackend-01.net:443', 'https://sfbackend-02.net:443'
$ServerCertificateThumbprints = '33CC47C6FCA848DC9B14A6F071C1EF7C'
$serviceFabric = New-AzApiManagementBackendServiceFabric -ManagementEndpoint  $ManagementEndpoints -ClientCertificateThumbprint "33CC47C6FCA848DC9B14A6F071C1EF7C" -ServerX509Name @{"CN=foobar.net" = @('33CC47C6FCA848DC9B14A6F071C1EF7C'); } -ServerCertificateThumbprint $ServerCertificateThumbprints

$backend = New-AzApiManagementBackend -Context  $apimContext -BackendId 123 -Url 'https://contoso.com/awesomeapi' -Protocol http -ServiceFabricCluster $serviceFabric -Description "service fabric backend"

Creates a Backend Service Fabric Contract

Parameters

-ClientCertificateId

Client Certificate Id for the management endpoint. This parameter is optional.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-ClientCertificateThumbprint

Client Certificate Thumbprint for the management endpoint. This parameter is required.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-DefaultProfile

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

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ManagementEndpoint

Service Fabric Cluster management Endpoints. This parameter is required.

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

-MaxPartitionResolutionRetry

Maximum number of retries when resolving a Service Fabric partition. This parameter is optional and default value is 5.

Type:Nullable<T>[Int32]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ServerCertificateThumbprint

Thumbprint of certificates cluster management service uses for tls communication.This parameter is optional.

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

-ServerX509Name

Server X509 Certificate Names Collection. This parameter is optional.

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

Inputs

String

Outputs

PsApiManagementServiceFabric