mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Use params
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user