Skip to content

Commit

Permalink
Merge pull request #9 from MarcoColomb0/feature/deployments
Browse files Browse the repository at this point in the history
Enhancing deployment with IWR
  • Loading branch information
MarcoColomb0 authored Dec 9, 2023
2 parents e1c6377 + 4196d96 commit 5f22a93
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 115 deletions.
39 changes: 39 additions & 0 deletions AzurePSDeployer.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<#
.INFO
Script Name: windowsclient.ps1
Description: Automatic Azure infrastructure deployer
.NOTES
File Name : windowsclient.ps1
Author : MarcoColomb0
Prerequisite : PowerShell, Az module, and an Azure subscription :)
#>

# Display available services and prompt for user input
Write-Host "You are currently able to deploy these services"
Write-Host "1. WindowsClient"
Write-Host "2. UbuntuServer"
Write-Host "3. WindowsServer"

$DeploymentPrompt = Read-Host "Enter the number corresponding to the service you want to deploy."

# Process user input and deploy the selected service
switch ($DeploymentPrompt) {
"1" {
$DeploymentType = "WindowsClient"
}
"2" {
$DeploymentType = "UbuntuServer"
}
"3" {
$DeploymentType = "WindowsServer"
}
default {
Write-Host "Invalid selection. Exiting script."
exit
}
}

# Construct the script URL and deploy the selected service
$ScriptURL = "https://github.com/MarcoColomb0/AzurePSDeployer/raw/main/deployments/$DeploymentType"
Invoke-WebRequest -Uri $ScriptURL | Invoke-Expression
Loading

0 comments on commit 5f22a93

Please sign in to comment.