New-AzApiManagementBackendProxy
Creates a new Backend Proxy Object.
Syntax
New-AzApiManagementBackendProxy
-Url <String>
[-ProxyCredential <PSCredential>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Creates a new Backend Proxy Object which can be piped when creating a new Backend entity.
Examples
Example 1: Create a Backend Proxy In-Memory Object
$secpassword = ConvertTo-SecureString -String "****" -AsPlainText -Force
$proxyCreds = New-Object System.Management.Automation.PSCredential ("foo", $secpassword)
$credential = New-AzApiManagementBackendProxy -Url "http://12.168.1.1:8080" -ProxyCredential $proxyCreds
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
$backend = New-AzApiManagementBackend -Context $apimContext -BackendId 123 -Url 'https://contoso.com/awesomeapi' -Protocol http -Title "first backend" -SkipCertificateChainValidation $true -Proxy $credential -Description "backend with proxy server"
Creates a Backend Proxy Object and sets up Backend
Parameters
-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 |
-ProxyCredential
Credentials used to connect to Backend Proxy. This parameter is optional.
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Url
Url of the Proxy server to be used when forwarding calls to Backend. This parameter is required.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
Related Links
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure PowerShell