azure-cli-extensions
azure-cli-extensions copied to clipboard
az stream-analytics function create for an Azure ML function
Extension name (the extension in question)
stream-analytics version 0.1.2 (latest at time of writing)
Description of issue (in as much detail as possible)
I am trying to create an Azure ML function. The Endpoint is hosted in an AKS. I can create manually in the portal the function, I just want to package this in a bash file
Command executed
az stream-analytics function create --function-name "scoring" --job-name "temp-filter" -g "my-rg" --properties @aml-function.json
aml-function.json:
{
"type": "Scalar",
"properties": {
"binding": {
"type": "Microsoft.MachineLearning/WebService",
"properties": {
"apiKey": "XXXX",
"batchSize": 1,
"numberOfParallelRequests": 1,
"endpoint": "http://XXXX",
"inputs": {
"name": "input",
"columnNames": [
{
"name": "data",
"dataType": "object",
"mapTo": 0
}
]
},
"outputs": [
{
"name": null,
"dataType": "string",
"mapTo": 0
}
]
}
},
"inputs": [
{
"dataType": "record"
}
],
"output": {
"dataType": "nvarchar(max)"
}
}
}
The endpoint is "http", and I receive the following error:
(BadRequest) The JSON provided in the request body is invalid. Only Uri scheme : 'https' is supported for property : 'endpoint' Code: BadRequest Message: The JSON provided in the request body is invalid. Only Uri scheme : 'https' is supported for property : 'endpoint'
As said above, I can register this endpoint via the Portal, so via the portal, the HTTPS is not enforced.
Expected behavior: the same as the portal i.e. being able to create endpoint in HTTP
Thanks
stream-analytics
I have tried with an ARM template, same error, so it is the underyling API that has this issue
Thank you for your feedback. This has been routed to the support team for assistance.
@jchomarat We are looking into it and get back to you for any additional information.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @atpham256.
Issue Details
Extension name (the extension in question)
stream-analytics version 0.1.2 (latest at time of writing)
Description of issue (in as much detail as possible)
I am trying to create an Azure ML function. The Endpoint is hosted in an AKS. I can create manually in the portal the function, I just want to package this in a bash file
Command executed
az stream-analytics function create --function-name "scoring" --job-name "temp-filter" -g "my-rg" --properties @aml-function.json
aml-function.json:
{
"type": "Scalar",
"properties": {
"binding": {
"type": "Microsoft.MachineLearning/WebService",
"properties": {
"apiKey": "XXXX",
"batchSize": 1,
"numberOfParallelRequests": 1,
"endpoint": "http://XXXX",
"inputs": {
"name": "input",
"columnNames": [
{
"name": "data",
"dataType": "object",
"mapTo": 0
}
]
},
"outputs": [
{
"name": null,
"dataType": "string",
"mapTo": 0
}
]
}
},
"inputs": [
{
"dataType": "record"
}
],
"output": {
"dataType": "nvarchar(max)"
}
}
}
The endpoint is "http", and I receive the following error:
(BadRequest) The JSON provided in the request body is invalid. Only Uri scheme : 'https' is supported for property : 'endpoint' Code: BadRequest Message: The JSON provided in the request body is invalid. Only Uri scheme : 'https' is supported for property : 'endpoint'
As said above, I can register this endpoint via the Portal, so via the portal, the HTTPS is not enforced.
Expected behavior: the same as the portal i.e. being able to create endpoint in HTTP
Thanks
| Author: | jchomarat |
|---|---|
| Assignees: | jsntcy, SaurabhSharma-MSFT |
| Labels: |
|
| Milestone: | Backlog |
@atpham256 Did you get a chance to look into this issue.
Hi jchomarat, can you provide information that the resource with endpoint in HTTP created on portal?