Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 02a0ac8

Browse files
author
David R. Williamson
authored
Merge pull request #30 from Azure-Samples/drwill/dependenciesUpdate
Update to latest dependencies
2 parents b999474 + e1377fe commit 02a0ac8

File tree

4 files changed

+585
-406
lines changed

4 files changed

+585
-406
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,17 +172,20 @@ In order to automate the steps to deploy to Azure, consider reading the followin
172172
- [WebApp](https://docs.microsoft.com/en-us/cli/azure/webapp?view=azure-cli-latest)
173173

174174
```az cli
175-
# Initialize these variables: $subscriptionId, $resourceGroupName, $location, $iotHubName, $consumerGroupName, $appServicePlanName, $webAppName, $iotHubConnectionString, $consumerGroupName
175+
# Initialize these variables: $subscriptionId, $resourceGroupName, $location, $iotHubName, $consumerGroupName, $deviceId, $appServicePlanName, $webAppName, $iotHubConnectionString
176176

177177
# Login and set the specified subscription
178178
az login --subscription $subscriptionId
179179

180180
# Create the resource group in the specified location
181181
az group create -n $resourceGroupName --location $location
182182

183-
# Create an IoT Hub and configure a consumer group
183+
# Create an IoT Hub, create a consumer group, add a device, and get the device connection string
184184
az iot hub create -n $iotHubName -g $resourceGroupName --location $location --sku S1
185185
az iot hub consumer-group create -n $consumerGroupName --hub-name $iotHubName -g $resourceGroupName
186+
az iot hub show-connection-string -n $iotHubName -g $resourceGroupName
187+
az iot hub device-identity create -d $deviceId --hub-name $iotHubName -g $resourceGroupName
188+
az iot hub device-identity show-connection-string -d $deviceId --hub-name $iotHubName -g $resourceGroupName
186189

187190
# Create an app service plan and website, then configure website
188191
az appservice plan create -g $resourceGroupName -n $appServicePlanName --sku F1 --location $location

0 commit comments

Comments
 (0)