When wanting to run a fine-tune request via the REST API I get the following error message:
"error": {
"code": "invalidPayload",
"message": "The fineTune field is required."
}
Also, in the fine-tuning wizard I get a message saying "No models are available. Please check your access or try again later." Screenshot of Error Message
Does anyone know what the problem is? Do I need another subscription?
It looks like you may not have the correct subscription level for Azure OpenAI. You may need to upgrade your subscription in order to use the fine-tuning feature.
Related
i am trying to make the "Read" function of the azure cognitive services working.
I have created the cognitive services and got the 2 Ocp-Apim-Subscription-Key.
After i went to the API Console to test if it is working.
Select the same Location, past the key, send the image and got back "202 Accepted".
Then i went to link with the result but it says
{
"error": {
"code": "401",
"message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."
}
}
Why?
I have tryed with the other key but still got the same error.
The other function, like OCR, are working correctly.
Any one has some ideas?
I am trying to Create Form Recognizer through ARM. I am getting this error while passing the Key Vault details for encryption with customer managed key. I am getting this error only when attaching key vault details. Even Azure portal is also showing this error. can anyone please explain what does it means.
"error": {
"code": "InvalidTemplateDeployment",
"message": "The template deployment 'TestFormRecognizerdeployment' is not valid
according to the validation procedure. The tracking id is '367569de-8774-4ef9-a158
-a82132f19e0d'. See inner errors for details.",
"details": [
{
"code": "BringOwnFeatureNotEnabled",
"message": "Bring your own feature is not enabled for Subscription/SKU/Kind
."
}
]
}
My understanding you are trying to make use of customer managed key. Before making use of it you will have to fill out the request form here :
Cognitive Services Customer Managed Keys and Bring Your Own Storage access request
Once this has been approved (usually takes around 5 business days).Upon the Approval, the feature responsible for the customer managed key will be activated/enabled on the subscription. You should be able to get passed the mentioned error.
I am trying to use Microsoft graph API to retrieve the Profile pic from Azure Active directory.
I have used below URL and I am able to get the response successfully.
https://graph.microsoft.com/v1.0/users/myemailid#myorg.com
With the same code I am getting below JSON error when i use below URL to fetch the profile photo information.
URL i used:
https://graph.microsoft.com/users/myemailid#myorg.com/photo/$value
Error JSON i got:
{
"error": {
"code": "OrganizationFromTenantGuidNotFound",
"message": "The tenant for tenant guid '<<My Tenant GUID>>' does not exist.",
"innerError": {
"requestId": "a3f7202f-b2c0-47d4-a04d-4b642c6f4188",
"date": "2019-07-17T06:33:46",
"request-id": "a3f7202f-b2c0-47d4-a04d-4b642c6f4188"
}
}
}
Could any please help me on this. Thank you.
Update: My App permission in the portal
The all available formats of this API are listed on https://learn.microsoft.com/en-us/graph/api/profilephoto-get?view=graph-rest-1.0#get-the-photo. I doubt there is a format like the one you are referring "https://graph.microsoft.com/microsoft.com/users/myemailid#myorg.com/photo/$value"
Note: You could use Microsoft Graph API beta version to get user profile picture. Its very simple and straight forward. You could try below API:
https://graph.microsoft.com/beta/users/UserIdOrPrincipalName/photo/$value
See the screen shot below:
Permission Required:
Step: 1
Step: 2
Step: 3
For details you could refer this thread
This URL(https://developer.microsoft.com/en-us/graph/graph-explorer) helped me to find the exact answer. My issue is due to the tenant I am using, I tried same code in my Prod tenant and everything working good.
API i used is https://graph.microsoft.com/v1.0/users/username/photo/$value. No need to use the beta version. Now V1.0 has profile pic inforamtion of AAD.
I am creating a LUIS app using the LUIS programmatic API. After the app is successfully created and trained, I want to assign an API key to the app using this endpoint:
PUT /luis/api/v2.0/apps/{appId}/versions/{versionId}/assignedkey
Both my programmatic API key (obtained from luis.ai) and the normal API key (the one I am trying to assign, obtained from Azure Portal) are registered to the same email address.
However, when I am trying to send a request to the above endpoint, it fails with this error:
{
"error": {
"code": "BadArgument",
"message": "Cannot find the specified subscription"
}
}
I'm out of ideas for what I might be doing wrong, because exactly the same logic already worked before.
Is there some kind of way to "assign" an Azure subscription to my LUIS account?
Update:
I didn't find an answer to my question, but I found a workaround. Calling PUT /luis/api/v2.0/apps/{appId}/settings will set the application to "public", which means you can use any subscription key with it. See docs.
It seems that this endpoint is now deprecated because I get the following:
{
"error": {
"code": "DeprecatedException",
"message": "To assign a subscription key to an app, please go to the LUIS website at https://www.luis.ai and assign it from the app publish page."
}
}
In the luis page I see this:
The endpoint PUT /luis/api/v2.0/apps/{appId}/versions/{versionId}/assignedkey and /luis/api/v2.0/subscriptions are indeed deprecated. I contacted to LUIS support and they answered:
We are shifting the key management experience to happen only through the portal. Users no longer need to copy and paste keys, we offer a well-integrated experience that lists all the Azure keys inside our portal, key management details here.
I'm trying to set up the Bing Spell Check API on my Microsoft Azure account. The deployment, however, fails with the following error message:
OPERATION ID 492286237BA7FFEB
TRACKING ID 779d79cf-4b12-487f-ba97-c896bbdccb87
STATUS Conflict
PROVISIONING STATE Failed
TIMESTAMP 24/2/2017 09.55.58
DURATION 1 minute 22 seconds
TYPE Microsoft.CognitiveServices/accounts
RESOURCE ID /subscriptions/c68eec07-13e6-4f40-831c-c42f996fca89/resourceGroups/webis2/providers/Microsoft.CognitiveServices/accounts/webis
STATUSMESSAGE {
"error": {
"code": "RequestConflict",
"message": "Cannot replace resource with id 'webis'
because the resource entity tag has changed
while processing this request.
Please retry the request with the updated
resource."
}
}
RESOURCE webis
The STATUSMESSAGE suggests to simply retry the request, but this fails, too, with the same error message.
Otherwise, I'm not sure how to resolve the issue, since I obviously have no access to the provisioning process of the Bing Spell Check API.
Any help would be greatly appreciated.
We are investigating this. For now you should be able to work around the issue by deploying to an existing Resource Group instead of creating a new Resource Group during the API account creation.
Update: This issue has been resolved and new API account creation should work correctly.