Skip to content

Instantly share code, notes, and snippets.

@MarcusFelling
Last active June 25, 2021 15:53
Show Gist options
  • Save MarcusFelling/259fb8ce8c13f1369b037a5576cd2c56 to your computer and use it in GitHub Desktop.
Save MarcusFelling/259fb8ce8c13f1369b037a5576cd2c56 to your computer and use it in GitHub Desktop.
// Change scope to create resource group
targetScope = 'subscription'
// Create resource Group
resource rg 'Microsoft.Resources/resourceGroups@2021-04-01' = {
name: 'myIoTProjectRG'
location: 'eastus'
}
// Create IoT project inside resource group above
// Creates IoT Hub, storage account, blob container
module iot 'iot-with-storgage.bicep.bicep' = {
name: 'IoTDeploy'
scope: rg
params: {
projectName: 'myIoTProject'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment