Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Post History

40%
+0 −1
Q&A "This model is not available on the selected Azure OpenAI Service resource." error, but I think it is. Why did I miss?

I deployed a finetuned GPT 4o mini model on Azure, region northcentralus. I getting this error in the Azure portal when trying to edit it (I wanted to change the max hit rate): This model is no...

1 answer  ·  posted 4d ago by Franck Dernoncourt‭  ·  last activity 2h ago by Franck Dernoncourt‭

Question azure-cognitive-services fine-tuning
#5: Post edited by user avatar Franck Dernoncourt‭ · 2025-04-18T21:51:07Z (about 5 hours ago)
  • I deployed a finetuned GPT 4o mini model on Azure, region `northcentralus`.
  • I getting this error in the Azure portal when trying to edit it (I wanted to change the max hit rate):
  • > This model is not available on the selected Azure OpenAI Service resource. Learn more about model availability.
  • ![Image_alt_text](https://software.codidact.com/uploads/rmycjwq63i9kihclckwyqfq3lhc0)
  • My selected resource in Azure portal is in `northcentralus`:
  • ![Image_alt_text](https://software.codidact.com/uploads/zqte2axy37qvhuwtom4qh2p8xp8u)
  • However, https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#fine-tuning-models states that finetuned GPT 4o mini model is available in Azure, region `northcentralus`:
  • ![Image_alt_text](https://software.codidact.com/uploads/xegqczxtbgmji27qlu10ryced7fm)
  • What did I miss? Why am I getting a "This model is not available on the selected Azure OpenAI Service resource" error?
  • ---
  • Crossposts:
  • - https://serverfault.com/q/1179143/126950
  • - https://redd.it/1jzm8q6
  • - https://redd.it/1jzm8io
  • - https://redd.it/1jzm8dz
  • I deployed a finetuned GPT 4o mini model on Azure, region `northcentralus`.
  • I getting this error in the Azure portal when trying to edit it (I wanted to change the max hit rate):
  • > This model is not available on the selected Azure OpenAI Service resource. Learn more about model availability.
  • ![Image_alt_text](https://software.codidact.com/uploads/rmycjwq63i9kihclckwyqfq3lhc0)
  • My selected resource in Azure portal is in `northcentralus`:
  • ![Image_alt_text](https://software.codidact.com/uploads/zqte2axy37qvhuwtom4qh2p8xp8u)
  • However, https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#fine-tuning-models states that finetuned GPT 4o mini model is available in Azure, region `northcentralus`:
  • ![Image_alt_text](https://software.codidact.com/uploads/xegqczxtbgmji27qlu10ryced7fm)
  • What did I miss? Why am I getting a "This model is not available on the selected Azure OpenAI Service resource" error?
  • ---
  • I deployed the finetuned GPT 4o mini model on following Azure's [tutorial](https://learn.microsoft.com/en-us/azure/ai-services/openai/tutorials/fine-tune?tabs=python-new%2Ccommand-line) on fine-tuning GPT. Code for the deployment phase:
  • ```
  • # Deploy fine-tuned model
  • import json
  • import requests
  • token = '[redacted]'
  • subscription = '[redacted]'
  • resource_group = "[redacted]"
  • resource_name = "[redacted]"
  • model_deployment_name = "gpt-4o-mini-2024-07-18-ft" # Custom deployment name you chose for your fine-tuning model
  • deploy_params = {'api-version': "2023-05-01"}
  • deploy_headers = {'Authorization': 'Bearer {}'.format(token), 'Content-Type': 'application/json'}
  • deploy_data = {
  • "sku": {"name": "standard", "capacity": 1},
  • "properties": {
  • "model": {
  • "format": "OpenAI",
  • "name": "gpt-4o-mini-2024-07-18.ft-[redacted]", #retrieve this value from the previous call, it will look like gpt-4o-mini-2024-07-18.ft-[redacted]
  • "version": "1"
  • }
  • }
  • }
  • deploy_data = json.dumps(deploy_data)
  • request_url = f'https://management.azure.com/subscriptions/{subscription}/resourceGroups/{resource_group}/providers/Microsoft.CognitiveServices/accounts/{resource_name}/deployments/{model_deployment_name}'
  • print('Creating a new deployment...')
  • r = requests.put(request_url, params=deploy_params, headers=deploy_headers, data=deploy_data)
  • print(r)
  • print(r.reason)
  • print(r.json())
  • ```
  • The token was generated via [`az account get-access-token`](https://learn.microsoft.com/en-us/cli/azure/account?view=azure-cli-latest#az-account-get-access-token).
  • ---
  • Crossposts:
  • - https://serverfault.com/q/1179143/126950
  • - https://redd.it/1jzm8q6
  • - https://redd.it/1jzm8io
  • - https://redd.it/1jzm8dz
#4: Post edited by user avatar Lundin‭ · 2025-04-15T13:56:41Z (4 days ago)
Not a tag related to programming.
#3: Post edited by user avatar Franck Dernoncourt‭ · 2025-04-15T07:54:25Z (4 days ago)
  • I deployed a finetuned GPT 4o mini model on Azure, region `northcentralus`.
  • I getting this error in the Azure portal when trying to edit it (I wanted to change the max hit rate):
  • > This model is not available on the selected Azure OpenAI Service resource. Learn more about model availability.
  • ![Image_alt_text](https://software.codidact.com/uploads/rmycjwq63i9kihclckwyqfq3lhc0)
  • My selected resource in Azure portal is in `northcentralus`:
  • ![Image_alt_text](https://software.codidact.com/uploads/zqte2axy37qvhuwtom4qh2p8xp8u)
  • However, https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#fine-tuning-models states that finetuned GPT 4o mini model is available in Azure, region `northcentralus`:
  • ![Image_alt_text](https://software.codidact.com/uploads/xegqczxtbgmji27qlu10ryced7fm)
  • What did I miss? Why am I getting a "This model is not available on the selected Azure OpenAI Service resource" error?
  • I deployed a finetuned GPT 4o mini model on Azure, region `northcentralus`.
  • I getting this error in the Azure portal when trying to edit it (I wanted to change the max hit rate):
  • > This model is not available on the selected Azure OpenAI Service resource. Learn more about model availability.
  • ![Image_alt_text](https://software.codidact.com/uploads/rmycjwq63i9kihclckwyqfq3lhc0)
  • My selected resource in Azure portal is in `northcentralus`:
  • ![Image_alt_text](https://software.codidact.com/uploads/zqte2axy37qvhuwtom4qh2p8xp8u)
  • However, https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#fine-tuning-models states that finetuned GPT 4o mini model is available in Azure, region `northcentralus`:
  • ![Image_alt_text](https://software.codidact.com/uploads/xegqczxtbgmji27qlu10ryced7fm)
  • What did I miss? Why am I getting a "This model is not available on the selected Azure OpenAI Service resource" error?
  • ---
  • Crossposts:
  • - https://serverfault.com/q/1179143/126950
  • - https://redd.it/1jzm8q6
  • - https://redd.it/1jzm8io
  • - https://redd.it/1jzm8dz
#2: Post edited by user avatar Franck Dernoncourt‭ · 2025-04-15T07:50:02Z (4 days ago)
  • I deployed a finetuned GPT 4o mini model on Azure, region `northcentralus`.
  • I getting this error in the Azure portal when trying to edit it (I wanted to change the max hit rate):
  • > This model is not available on the selected Azure OpenAI Service resource. Learn more about model availability.
  • ![Image_alt_text](https://software.codidact.com/uploads/rmycjwq63i9kihclckwyqfq3lhc0)
  • However, https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#fine-tuning-models states that finetuned GPT 4o mini model is available in Azure, region `northcentralus`:
  • ![Image_alt_text](https://software.codidact.com/uploads/xegqczxtbgmji27qlu10ryced7fm)
  • What did I miss? Why am I getting a "This model is not available on the selected Azure OpenAI Service resource" error?
  • I deployed a finetuned GPT 4o mini model on Azure, region `northcentralus`.
  • I getting this error in the Azure portal when trying to edit it (I wanted to change the max hit rate):
  • > This model is not available on the selected Azure OpenAI Service resource. Learn more about model availability.
  • ![Image_alt_text](https://software.codidact.com/uploads/rmycjwq63i9kihclckwyqfq3lhc0)
  • My selected resource in Azure portal is in `northcentralus`:
  • ![Image_alt_text](https://software.codidact.com/uploads/zqte2axy37qvhuwtom4qh2p8xp8u)
  • However, https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#fine-tuning-models states that finetuned GPT 4o mini model is available in Azure, region `northcentralus`:
  • ![Image_alt_text](https://software.codidact.com/uploads/xegqczxtbgmji27qlu10ryced7fm)
  • What did I miss? Why am I getting a "This model is not available on the selected Azure OpenAI Service resource" error?
#1: Initial revision by user avatar Franck Dernoncourt‭ · 2025-04-15T07:45:11Z (4 days ago)
"This model is not available on the selected Azure OpenAI Service resource." error, but I think it is. Why did I miss?
I deployed a finetuned GPT 4o mini model on Azure, region `northcentralus`.

I getting this error in the Azure portal when trying to edit it (I wanted to change the max hit rate):

> This model is not available on the selected Azure OpenAI Service resource. Learn more about model availability.

![Image_alt_text](https://software.codidact.com/uploads/rmycjwq63i9kihclckwyqfq3lhc0)

However, https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#fine-tuning-models states that finetuned GPT 4o mini model is available in Azure, region `northcentralus`:


![Image_alt_text](https://software.codidact.com/uploads/xegqczxtbgmji27qlu10ryced7fm)

What did I miss?  Why am I getting a "This model is not available on the selected Azure OpenAI Service resource" error?