Hi, Javier Familiar Gijón Thank you for reaching out.
My understanding is that you want to create an azure SQL Database and an output SQL Database in Stream Analytics using PowerShell.
Quickstart - Create a Stream Analytics job using Azure PowerShell (https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/stream-analytics/stream-analytics-quick-create-powershell.md)
You can use the following code to create an output SQL Database in Stream Analytics:
$jobOutputName = "BlobOutput" $jobOutputDefinitionFile = "C:\JobOutputDefinition.json" New-AzStreamAnalyticsOutput -ResourceGroupName $resourceGroup
-JobName $jobName -File $jobOutputDefinitionFile
-Name $jobOutputName -Force
Please let me know if this is helpful.
Regards,
Oury