You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何获取AI Foundry模型的PublisherId、OfferId和PlanId(AZAPI部署场景)

获取Azure Marketplace模型的PublisherId、OfferId和PlanId方法及对应值

一、获取方法

方法1:通过Azure机器学习工作室界面

  1. 进入Azure机器学习工作室,打开模型页面,切换到市场标签
  2. 找到目标模型并进入详情页
  3. 在页面底部的「使用/部署」区域,查看「市场计划信息」,即可获取这三个参数

方法2:通过Azure CLI命令

执行以下命令,替换对应的注册表名称和模型名称:

az ml model list --registry-name <注册表名称> --name <模型名称> --query "[].properties.marketplacePlan"
  • Mistral系列模型注册表为azureml-mistral
  • Phi系列模型注册表为azureml-microsoft

二、目标模型的市场计划参数

1. Mistral-Nemo

  • PublisherId: mistralai
  • OfferId: mistral-nemo
  • PlanId: mistral-nemo

2. Phi-4-multimodal-instruct

  • PublisherId: microsoft
  • OfferId: phi-4-multimodal-instruct
  • PlanId: phi-4-multimodal-instruct

3. Mistral-Large-2411

  • PublisherId: mistralai
  • OfferId: mistral-large-2411
  • PlanId: mistral-large-2411

三、修正后的Terraform代码示例(以Mistral-Large-2411为例)

resource "azapi_resource" "marketplace_subscriptionmistrallarge2411" {
  type      = "Microsoft.MachineLearningServices/workspaces/marketplaceSubscriptions@2024-01-01-preview"
  name      = "mktplmistrallarge2411"
  parent_id = azurerm_ai_foundry_project.aif_proj.id
  
  body = {
    properties = {
      modelId = "azureml://registries/azureml-mistral/models/Mistral-Large-2411"
      marketplacePlan = {
        publisherId = "mistralai"
        offerId     = "mistral-large-2411"
        planId      = "mistral-large-2411"
      }
    }
  }

  schema_validation_enabled = false
}

#########################################
# Serverless endpoint
#########################################
resource "azapi_resource" "mistral-large-2411" {
  type      = "Microsoft.MachineLearningServices/workspaces/serverlessEndpoints@2024-01-01-preview"
  name      = "se-Mistral-large"
  location  = "eastus"
  parent_id = azurerm_ai_foundry_project.aif_proj.id
  
  body = jsonencode({
    sku = {
      name = "Consumption"
    }
    properties = {
      modelSettings = {
        modelId = "azureml://registries/azureml-mistral/models/Mistral-Large-2411"
      }
      marketplaceSubscriptionId = azapi_resource.marketplace_subscriptionmistrallarge2411.id
    }
  })
  schema_validation_enabled = false 
}

内容的提问来源于stack exchange,提问作者Bokambo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.13 03:24:51