Thank you for your response, @Smaran Thoomu . However, in my initial question, I mentioned that I am already using the type "Microsoft.DBforPostgreSQL/servers/databases" in my datasource JSON.
$dataSourceJson = @"
{
"type": "Microsoft.DBforPostgreSQL/servers/databases",
"properties": {
"server": "<YourHostFullName>",
"database": "<YourDbName>",
"table": "<YourTableName>",
"user": "<user>",
"password": "<password>"
}
} "@
Despite this, I still encounter an error indicating that the required property "datasource type" is missing.
Additionally, when I use the az stream-analytics output list
command to list the outputs of my Stream Analytics job (postgresql output), I receive a null value for the type:
{
"properties": {
"authenticationMode": "ConnectionString",
"database": "xxx",
"maxWriterCount": 0,
"server": "xxx",
"table": "xxx",
"user": "xxx"
},
"type": null
}
Unlike what I see when inspecting the data through the Azure portal (DevTool), where the type is clearly defined as "Microsoft.DBForPostgreSQL/servers/databases."
{
"type": "Microsoft.DBForPostgreSQL/servers/databases",
"properties": {
"maxWriterCount": 0,
"tabxxx",
"server": "xxx",
"database": "xxx",
"user": "xxx",
"authenticationMode": "ConnectionString"
}
}
Do you have any further recommendations on how to resolve this JSON validation issue or ensure that the datasource type is correctly recognized in all CLI operations?
I have, of course, tried your version, but it doesn't work either... This strongly resembles a bug in the az stream-analytics output
, as if it were unable to interpret the type "Microsoft.DBForPostgreSQL/servers/databases."