New-AzApiManagementBackendProxy
Membuat Objek Proksi Backend baru.
Sintaks
New-AzApiManagementBackendProxy
-Url <String>
[-ProxyCredential <PSCredential>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Membuat Objek Proksi Backend baru yang dapat disalurkan saat membuat entitas Backend baru.
Contoh
Contoh 1: Membuat Objek Dalam Memori Proksi Backend
$secpassword = ConvertTo-SecureString "PlainTextPassword" -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"
Membuat Objek Proksi Backend dan menyiapkan Backend
Parameter
-DefaultProfile
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProxyCredential
Kredensial yang digunakan untuk menyambungkan ke Proksi Backend. Parameter ini bersifat opsional.
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Url
Url server Proksi yang akan digunakan saat meneruskan panggilan ke Backend. Parameter ini diperlukan.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Input
None