Azure / Azure/azure-cli-extensions
az stream-analytics function create for an Azure ML function
- Dominant language
- Python
- Stars
- 454
- Forks
- 1.7k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 64
Description
### 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
```bash
az stream-analytics function create --function-name "scoring" --job-name "temp-filter" -g "my-rg" --properties @aml-function.json
```
aml-function.json:
```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
-----
Contributor guide
Assessment
This issue has not been assessed yet.