MicrosoftMicrosoft Azure Developer Associate AZ-204 Certification
·TW
·更新於 5 Aug 2026
您需要透過 Azure API Management 實例公開一個公共的 RESTful 新聞 API (該 API 具有 OpenAPI/Swagger 規格)。哪個 Azure PowerShell 命令會將 API 規格匯入 API Management?
選擇一個答案
點擊一個選項來檢查您的答案。
正確答案: Import-AzureRmApiManagementApi -Context $ApiMgmtContext -SpecificationFormat "Swagger" -SpecificationPath $SwaggerPath -Path $Path.
為什麼這是答案
正確答案是 Import-AzureRmApiManagementApi,因為這個命令專門用於將 API 規格(例如 Swagger/OpenAPI)匯入現有的 Azure API Management 實例中。它透過 -SpecificationFormat 和 -SpecificationPath 參數指定了匯入的規格類型和檔案路徑,並使用 -Path 定義 API 在 API Management 中的 URL 路徑,完全符合題目需求。
New-AzureRmApiManagementBackend 用於建立後端服務定義,而非匯入 API 規格。New-AzureRmApiManagement 用於建立全新的 API Management 服務實例,而不是匯入 API。New-AzureRmApiManagementBackendProxy 不是一個標準的 Azure PowerShell 命令,且其功能與匯入 API 規格無關。
通過考試 — 無需無休止地尋找答案
集中一處獲取此考試的所有核實題目和解釋,節省數小時的準備時間。1,000 多種認證 · 20 多種語言 · 免費開始。
更快通過您的考試 →
無需信用卡