Azure Accounts - Assign To App
apps - Assign a LUIS Azure account to an application
Assigns an Azure account to the application.
POST {Endpoint}/luis/api/v2.0/apps/{appId}/azureaccounts
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
app
|
path | True |
string (uuid) |
The application ID. |
|
Endpoint
|
path | True |
string |
Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). |
Request Header
| Name | Required | Type | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | True |
string |
|
| Authorization | True |
string |
The bearer authorization header to use; containing the user's ARM token used to validate Azure accounts information. |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| accountName | True |
string |
The Azure account name. |
| azureSubscriptionId | True |
string |
The id for the Azure subscription. |
| resourceGroup | True |
string |
The Azure resource group name. |
Responses
| Name | Type | Description |
|---|---|---|
| 201 Created |
Successful operation. |
|
| Other Status Codes |
Error Response. |
Security
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
Examples
Successful Assign azure account request
Sample request
POST {Endpoint}/luis/api/v2.0/apps/363187f1-c573-46b3-bc4c-ae01d686e68e/azureaccounts
{
"azureSubscriptionId": "{azure_subscription_id}",
"resourceGroup": "{resource_group_name}",
"accountName": "{account_name}"
}
Sample response
{
"code": "Success",
"message": "Operation Successful"
}
Definitions
| Name | Description |
|---|---|
|
Azure |
Defines the Azure account information object. |
|
Error |
Error response when invoking an operation on the API. |
|
Operation |
Response of an Operation status. |
|
Operation |
Status Code. |
AzureAccountInfoObject
Defines the Azure account information object.
| Name | Type | Description |
|---|---|---|
| accountName |
string |
The Azure account name. |
| azureSubscriptionId |
string |
The id for the Azure subscription. |
| resourceGroup |
string |
The Azure resource group name. |
ErrorResponse
Error response when invoking an operation on the API.
| Name | Type | Description |
|---|---|---|
| errorType |
string |
OperationStatus
Response of an Operation status.
| Name | Type | Description |
|---|---|---|
| code |
Status Code. |
|
| message |
string |
Status details. |
OperationStatusType
Status Code.
| Value | Description |
|---|---|
| Failed | |
| FAILED | |
| Success |