Use params

This commit is contained in:
Charmaine Chan
2024-11-18 15:08:31 -08:00
parent 68d479f0b8
commit d2f0ddac33
@@ -1,6 +1,8 @@
$subscriptionId = ""
$resourceGroupName = ""
$whatIf = $null
param (
[string]$subscriptionId,
[string]$resourceGroupName,
[bool]$whatIf = $false
)
if ([string]::IsNullOrEmpty($subscriptionId)) {
$subscriptionId = Read-Host -Prompt "Please enter the subscription ID"