-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from MarcoColomb0/feature/deployments
Enhancing deployment with IWR
- Loading branch information
Showing
2 changed files
with
97 additions
and
115 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
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 |
Oops, something went wrong.