Which Azure PowerShell command should you run?

You develop a gateway solution for a public facing news API. The news API back end is implemented as a RESTful service and uses an OpenAPI specification.

You need to ensure that you can access the news API by using an Azure API Management service instance.

Which Azure PowerShell command should you run?
A . Import-AzureRmApiManagementApi CContext $ApiMgmtContext CSpecificationFormat "Swagger" -SpecificationPath $SwaggerPath CPath $Path
B. New-AzureRmApiManagementBackend -Context $ApiMgmtContext -Url $Url -Protocol http
C. New-AzureRmApiManagement CResourceGroupName $ResourceGroup CName $Name C
Location $Location COrganization $Org CAdminEmail $AdminEmail
D. New-AzureRmApiManagementBackendProxy CUrl $ApiUrl

Answer: D

Explanation:

New-AzureRmApiManagementBackendProxy creates a new Backend Proxy Object which can be piped when creating a new Backend entity.

Example: Create a Backend Proxy In-Memory Object

PS C:>$secpassword = ConvertTo-SecureString "PlainTextPassword" -AsPlainText – Force

PS C:>$proxyCreds = New-Object System.Management.Automation.PSCredential ("foo", $secpassword)

PS C:>$credential = New-AzureRmApiManagementBackendProxy -Url "http://12.168.1.1:8080" -ProxyCredential $proxyCreds

PS C:>$apimContext = New-AzureRmApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"

PS C:>$backend = New-AzureRmApiManagementBackend -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

Latest AZ-204 Dumps Valid Version with 254 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments