Skip to content

Commit 7ebde99

Browse files
committed
update
1 parent 52389e1 commit 7ebde99

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

articles/ai-services/openai/includes/fine-tuning-rest.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,29 @@ curl -X PUT "https://management.azure.com/subscriptions/<SUBSCRIPTION>/resourceG
322322

323323
To deploy between the same subscription, but different regions, you would just have subscription and resource groups be identical for both source and destination variables and only the source and destination resource names would need to be unique.
324324

325+
### Cross tenant deployment
326+
327+
The accounts used to generate access tokens with `az account get-access-token --tenant` should have Cognitive Services OpenAI Contributor permissions to the associated Azure OpenAI resources.
328+
329+
330+
```bash
331+
curl -X PUT "https://management.azure.com/subscriptions/<SUBSCRIPTION>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.CognitiveServices/accounts/<RESOURCE_NAME>/deployments/<MODEL_DEPLOYMENT_NAME>?api-version=2024-10-01" \
332+
-H "Authorization: Bearer <DESTINATION TOKEN>" \
333+
-H "x-ms-authorization-auxiliary: Bearer <SOURCE TOKEN>" \
334+
-H "Content-Type: application/json" \
335+
-d '{
336+
"sku": {"name": "standard", "capacity": 1},
337+
"properties": {
338+
"model": {
339+
"format": "OpenAI",
340+
"name": "<FINE_TUNED_MODEL>",
341+
"version": "1",
342+
"sourceAccount": "/subscriptions/{sourceSubscriptionID}/resourceGroups/{sourceResourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{sourceAccount}"
343+
}
344+
}
345+
}'
346+
```
347+
325348
### Deploy a model with Azure CLI
326349

327350
The following example shows how to use the Azure CLI to deploy your customized model. With the Azure CLI, you must specify a name for the deployment of your customized model. For more information about how to use the Azure CLI to deploy customized models, see [`az cognitiveservices account deployment`](/cli/azure/cognitiveservices/account/deployment).

0 commit comments

Comments
 (0)