Skip to content

Commit

Permalink
Adding Dev Container for Stream Analytics (#607)
Browse files Browse the repository at this point in the history
* devcontainer.json added
* streamanalytics-tech-sample.asaql updated to align with fixed query in documentation
  • Loading branch information
jmostella authored Feb 16, 2023
1 parent 91a5a98 commit 7ee71a5
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 41 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Azure Stream Analytics",
"image": "mcr.microsoft.com/devcontainers/typescript-node:18-bullseye",
"features": {
"ghcr.io/devcontainers/features/azure-cli:1": {},
"ghcr.io/devcontainers/features/dotnet:1": {
"version": "6",
"runtimeOnly": true,
"installUsingApt": true
},
"ghcr.io/rchaganti/vsc-devcontainer-features/azurebicep:1": {}
},
"customizations": {
"vscode": {
"extensions": ["ms-bigdatatools.vscode-asa@1.4.4"]
}
},
"postCreateCommand": "npm i -g azure-streamanalytics-cicd@2.3.2 && az config set extension.use_dynamic_install=yes_without_prompt && sed -i 's/export PROMPT_DIRTRIM=4/export PROMPT_DIRTRIM=1/g' /home/node/.bashrc"
}
2 changes: 1 addition & 1 deletion single_tech_samples/streamanalytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ az deployment group create -f main.bicep -g rg-${DEVELOPER} --parameters query='
az iot hub device-identity create --hub-name iot-${DEVELOPER}-${ENVIRONMENT} --device-id iot-${DEVELOPER}-${ENVIRONMENT} --edge-enabled

export DEVICE_CONNECTION_STRING=$(az iot hub device-identity connection-string show --hub-name iot-${DEVELOPER}-${ENVIRONMENT} --device-id iot-${DEVELOPER}-${ENVIRONMENT} --output tsv)
export AZURE_STORAGE_CONNECTION_STRING=$(az storage account show-connection-string -n ${STORAGE_ACCOUNT} --query connectionString -o tsv)
export AZURE_STORAGE_CONNECTION_STRING=$(az storage account show-connection-string -g rg-${DEVELOPER} -n ${STORAGE_ACCOUNT} --query connectionString -o tsv)

# Cleanup
az group delete -n rg-${DEVELOPER}
Expand Down
78 changes: 39 additions & 39 deletions single_tech_samples/streamanalytics/e2e/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ SELECT
* INTO bloboutput
FROM
iothub
HAVING Temperature > 27
WHERE TEMPERATURE > 27

0 comments on commit 7ee71a5

Please sign in to comment.