正确的命令是 Import-AzureRmApiManagementApi,因为它专门用于将 API 规范(如 OpenAPI/Swagger)导入到 Azure API Management 实例中。-SpecificationFormat 参数用于指定规范的格式(例如 "Swagger"),而 -SpecificationPath 参数则指向包含规范的文件路径。-Path 参数定义了 API 在 API Management 中的 URL 后缀。
New-AzureRmApiManagementBackend 用于创建或更新 API Management 后端,它定义了 API Management 实例如何连接到实际的后端服务,而不是导入 API 定义。
New-AzureRmApiManagement 用于创建新的 Azure API Management 服务实例本身,而不是导入单个 API。
New-AzureRmApiManagementBackendProxy 不是一个标准的 Azure PowerShell 命令,或者与导入 API 规范的目的不符。