generated from ks6088ts/template-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Parameters | ||
@description('Specifies the name prefix.') | ||
param prefix string = uniqueString(resourceGroup().id) | ||
|
||
@description('Specifies the primary location of Azure resources.') | ||
param location string = resourceGroup().location | ||
|
||
@description('Specifies the resource tags.') | ||
param tags object = {} | ||
|
||
@description('Specifies the name of the Azure resource.') | ||
param name string = '${prefix}-iothub' | ||
|
||
@description('The SKU to use for the IoT Hub.') | ||
param skuName string = 'B1' | ||
|
||
@description('The number of IoT Hub units.') | ||
param skuUnits int = 1 | ||
|
||
resource iotHub 'Microsoft.Devices/IotHubs@2023-06-30' = { | ||
name: name | ||
location: location | ||
tags: tags | ||
sku: { | ||
name: skuName | ||
capacity: skuUnits | ||
} | ||
} | ||
|
||
// Outputs | ||
output iotHubId string = iotHub.id | ||
output iotHubName string = iotHub.name |