New-AzureRmApiManagementBackendServiceFabric
のオブジェクトを作成します。 PsApiManagementServiceFabric
警告
AzureRM PowerShell モジュールは、2024 年 2 月 29 日の時点で正式に非推奨になりました。 引き続きサポートを受け、更新を受け取れるようにするために、AzureRM から Az PowerShell モジュールに移行することをお勧めします。
AzureRM モジュールは引き続き機能する可能性がありますが、メインが維持またはサポートされなくなり、ユーザーの判断とリスクで引き続き使用できます。 Az モジュールへの移行に関するガイダンスについては、移行リソースを参照してください。
構文
New-AzureRmApiManagementBackendServiceFabric
-ManagementEndpoint <String[]>
-ClientCertificateThumbprint <String>
[-MaxPartitionResolutionRetry <Int32>]
[-ServerX509Name <Hashtable>]
[-ServerCertificateThumbprint <String[]>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
説明
New-AzureRmApiManagementBackendServiceFabric コマンドレットは、New-AzureRmApiManagementBackend コマンドレットと Set-AzureRmApiManagementBackend コマンドレットで使用するオブジェクトPsApiManagementServiceFabric
を作成します。
例
例 1: バックエンド Service Fabric のメモリ内オブジェクトを作成する
PS C:\>$apimContext = New-AzureRmApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
PS C:\>$ManagementEndpoints = 'https://sfbackend-01.net:443', 'https://sfbackend-02.net:443'
PS C:\>$ServerCertificateThumbprints = '33CC47C6FCA848DC9B14A6F071C1EF7C'
PS C:\>$serviceFabric = New-AzureRmApiManagementBackendServiceFabric -ManagementEndpoint $ManagementEndpoints -ClientCertificateThumbprint "33CC47C6FCA848DC9B14A6F071C1EF7C" -ServerX509Name @{"CN=foobar.net" = @('33CC47C6FCA848DC9B14A6F071C1EF7C'); } -ServerCertificateThumbprint $ServerCertificateThumbprints
PS C:\>$backend = New-AzureRmApiManagementBackend -Context $apimContext -BackendId 123 -Url 'https://contoso.com/awesomeapi' -Protocol http -ServiceFabricCluster $serviceFabric -Description "service fabric backend" -PassThru
バックエンド Service Fabric コントラクトを作成します
パラメーター
-ClientCertificateThumbprint
管理エンドポイントのクライアント証明書の拇印。 このパラメーターは必須です。
型: | String |
配置: | Named |
規定値: | None |
必須: | True |
パイプライン入力を受け取る: | True |
ワイルドカード文字を受け取る: | False |
-DefaultProfile
Azure との通信のために使用される資格情報、アカウント、テナント、サブスクリプションです。
型: | IAzureContextContainer |
Aliases: | AzureRmContext, AzureCredential |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-ManagementEndpoint
Service Fabric クラスター管理エンドポイント。 このパラメーターは必須です。
型: | String[] |
配置: | Named |
規定値: | None |
必須: | True |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-MaxPartitionResolutionRetry
Service Fabric パーティションを解決するときの再試行の最大数。 このパラメーターは省略可能で、既定値は 5 です。
型: | Nullable<T>[Int32] |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-ServerCertificateThumbprint
クラスター管理サービスが TLS 通信に使用する証明書の拇印。このパラメーターは省略可能です。
型: | String[] |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-ServerX509Name
サーバー X509 証明書名コレクション。 このパラメーターは省略可能です。
型: | Hashtable |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |