如何获取AI Foundry模型的PublisherId、OfferId和PlanId(AZAPI部署场景)
获取Azure Marketplace模型的PublisherId、OfferId和PlanId方法及对应值
一、获取方法
方法1:通过Azure机器学习工作室界面
- 进入Azure机器学习工作室,打开模型页面,切换到市场标签
- 找到目标模型并进入详情页
- 在页面底部的「使用/部署」区域,查看「市场计划信息」,即可获取这三个参数
方法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
相关产品推荐
相关产品推荐

