All the code from my talks at the Brisbane Infrastructure DevOps User Group.
In this talk I demonstrated how to deploy PowerShell Universal to Azure Container Instances (ACI) using Azure Container Regsitry as the repository and Azure Files as the persistent data storage.
📁 PowerShell Universal on ACI
├──📜Dashboard.ps1
├──📜Deploy-Container.ps1
└──🐋dockerfile
Contains the PowerShell Universal Dashboard code used in the demo.
The demo code requires that you have some virtual machines in the subscription that you deployed the dashboard to.
Deploy the code by logging into PowerShell Universal and completing the steps listed below:
- Navigate to Dashboard -> Dashboards -> Create new Dashboard
- Provide a name, e.g. Virtual Machine Self Service
- Enter the URL /
- Turn off Authentication
- Turn on AutoDeploy
- Click OK
- Click Info
- Click Edit
- Paste in Dashboard Code from Dashboard.ps1
- Click Save
- Navigate to the homepage
This Azure PowerShell code will deploy PowerShell Universal to Azure Container Instances (ACI).
Requirements:
- Docker is installed and using Linux Containers
- You run the code from the root of the folder /PowerShell Universal on ACI
Provides the instructions to build the docker image from Powershell Universal and installs the Az PowerShell Module in the container.