I have .Net 6 API deployed on Azure with one method Recognize. This method calls Azure Form Recognizer endpoint with invoice PDF and its returning structured object. With this object, I do something on API and return the result to customer.
The Form Recognizer is listed under my Subscription in Azure. The fee for one call of Form Recognizer is a small amount.
I need this:
The customer (with his own subscription in Azure) calls my API with an OAuth token. The API calls Form Recognizer and I need the fee to be charged to the customer's subscription.
Is it possible?
Thanks
It is not mandatory that the azure form recognizer service resource can be used within subscription. It can be accessed with endpoint and key secret (Regardless of subscription) from SDK.
You can use SDKs to access the form recognizer service resource. You can analyze files with form recognizer resource in customer's subscription from your API logic from API resource in your subscription.
Learn more about Form Recognizer SDK: Use Form Recognizer SDKs or REST API
Related
My scenario is when a template is created/deleted at DocuSign portal then is there any way DocuSign notify my application that a new template has been added or deleted. So that I can sync my DocuSign portal and application database in the context of templates.
Just like DocuSign notify about Envelope status event when the envelope is sent/Signed/completed etc. to a custom webhook, just like that needed for a templated creation or deletion, etc.
We don't provide that capability currently. You can always call our API endpoint /{{apiVersion}}/accounts/{{accountId}}/templates to get a list of templates and cache it locally for comparison later.
I am using Azure API Management for managing our APIs. Its containing product and all. Now I also want to catch some of the customer information into my database.
So my question is : "Is there anyway such that whenever someone is subscribing any product, my API will trigger?"
What I want to do is I will create an API which will fetch the details from Azure via REST API for all subscriptions and I want to call (auto trigger) that API whenever someone subscribe any product successfully. I know we can set the Approval workflow, we can send notification email also to any specific email id, but can we call any HTTP request?
Also if anyone have more idea about Developer portal then please share. (can we customize it, till what level, how, etc.)
Thanks in Advance..
One way is to put an Event Grid system topic on the resource group containing API Management service with
filter for Resource Write Success
subject filter / Subject begins with /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ApiManagement/service/{apiManagementService}/subscriptions
and forward to Azure Function or WebHook - basically filter for activities logged as Subscribe to product or Update subscription on the resource.
Problem:
I was trying to send messages to list of users in one AD domain/subscription to another AD domain subscription. I have used the company communicator provided by Teams app (refer link below).
Note:
I have used the "Company Communicator" to send one way Notifications.
Flow:
[A] Azure subscription (Bot Services). ---------Notification-------> [B] Azure subscription (Teams App)
For Reference "Company communicator" Architecture:
https://github.com/OfficeDev/microsoft-teams-apps-company-communicator/wiki/Solution-overview
Expected:
I would need to send one way Notification to Teams App in a different AD domain/Azure Subscription from a different AD Domain/Azure Subscription.
#Nanda: Could you please have a look on below screen shot for service url.
I want to be able to see the status and activity of an email through SendGrid API. There is a help page for getting started with the Email Activity Feed API however it says i need to purchase history. Purchasing is controlled through the Azure web portal which has completely different pricing tiers from the normal SendGrid portal. It also has no option for purchasing the Activity History as the documentation indicates i should do.
I've tried making the purchase through the SendGrid Portal, but it seems to be blocked for my account. It says "You don't have permissions to view this page. You can request access from your account administrator." even though I created this resource.
Is this API even available to Azure users?
I can see there are two versions of REST API endpoints for Speech to Text in the Microsoft documentation links.
https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/batch-transcription and https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/rest-speech-to-text
One endpoint is [https://.api.cognitive.microsoft.com/sts/v1.0/issueToken] referring to version 1.0 and another one is [api/speechtotext/v2.0/transcriptions] referring to version 2.0. How can I create a speech-to-text service in Azure Portal for the latter one?
Whenever I create a service in different regions, it always creates for speech to text v1.0.
Any tips?
PS: I've Visual Studio Enterprise account with monthly allowance and I am creating a subscription (s0) (paid) service rather than free (trial) (f0) service.
Thanks,
Ozgur
All official Microsoft Speech resource created in Azure Portal is valid for Microsoft Speech 2.0
I understand that this v1.0 in the token url is surprising, but this token API is not part of Speech API.
So go to Azure Portal, create a Speech resource, and you're done.
If you want to be sure, go to your created resource, copy your key. That's what you will use for Authorization, in a header called Ocp-Apim-Subscription-Key header, as explained here
Demo:
Get your key on your created resource
Go to https://[REGION].cris.ai/swagger/ui/index (REGION being the region where you created your speech resource)
Click on Authorize: you will see both forms of Authorization
Paste your key in the 1st one (subscription_Key), validate
Close this window
Test one of the endpoints, for example the one listing the speech endpoints, by going to the GET operation on /api/speechtotext/v2.0/endpoints
Click 'Try it out' and you will get a 200 OK reply!
Understand your confusion because MS document for this is ambiguous. Per my research,let me clarify it as below: Two type services for Speech-To-Text exist, v1 and v2.
v1 could be found under Cognitive Service structure when you create it:
Based on statements in the Speech-to-text REST API document:
Before using the speech-to-text REST API, understand:
Requests that use the REST API and transmit audio directly can only
contain up to 60 seconds of audio.
The speech-to-text REST API only returns final results. Partial
results are not provided.
If sending longer audio is a requirement for your application, consider using the Speech SDK or a file-based REST API, like batch
transcription.
So v1 has some limitation for file formats or audio size. If you have further more requirement,please navigate to v2 api- Batch Transcription hosted by Zoom Media.You could figure it out if you read this document from ZM. You could create that Speech Api in Azure Marketplace:
That's the creation page for it :
Also,you could view the API document at the foot of above page, it's V2 API document.
Final tip:
v1's endpoint like: https://eastus.api.cognitive.microsoft.com/sts/v1.0/issuetoken
v2's endpoint like: