You need to expose a public RESTful news API (which has an OpenAPI/Swagger specification) through an Azure API Management instance. Which Azure PowerShell command imports the API specification into API Management?
Choose an answer
Tap an option to check your answer.
Correct answer: Import-AzureRmApiManagementApi -Context $ApiMgmtContext -SpecificationFormat "Swagger" -SpecificationPath $SwaggerPath -Path $Path.
Why this is the answer
The Import-AzureRmApiManagementApi cmdlet is designed to import an API definition into an Azure API Management instance. The -SpecificationFormat "Swagger" and -SpecificationPath $SwaggerPath parameters are crucial for specifying that the input is a Swagger (OpenAPI) definition and providing its location. The -Context $ApiMgmtContext parameter links the command to your specific API Management instance, and -Path $Path sets the URL path for the API within API Management. The other options are incorrect because they serve different purposes: New-AzureRmApiManagementBackend creates a backend service, not an API definition import. New-AzureRmApiManagement creates an entirely new API Management service instance. New-AzureRmApiManagementBackendProxy is not a standard Azure PowerShell cmdlet for API Management.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed