-
Notifications
You must be signed in to change notification settings - Fork 3
DevOps Sprint 1 Task#4: Creating Reusable ARM Template and Powershell Scripts for Deployment of IOT HUB Resource
-
Create a resource group in the Azure Portal with a name convention of name-rg-feat-usw2-task#
-
Create an IoT Hub under the above resource group
-
Under the IoT Resource Group, click on export templates and download json scripts
-
Open json scripts using Visual Studio and name as: Template.json, Paramters.json, and deploy.ps1
-
In the Template.json file, go through all hard coded information such as Resource Group Name, Locations, Owner Name, Owner Email, ... and replace with parameters functions for user input. Exp: [Parameters('Resource Group Name')] Ensure the parameters function is also defined inside parameters brackets {}
-
Do same with Parameters.json
-
Add powershell script to deploy.ps1 to create deployment and ensure you include code that asks for user input to put in information to complete the template
-
Open Cloud Powershell and upload template.json file
-
Run powershell script and confirm successful deployment
-
GO to Azure portal and confirm successful deployment