Skip to content

Commit d2f0dda

Browse files
author
Charmaine Chan
committed
Use params
1 parent 68d479f commit d2f0dda

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

samples/features/azure-arc/configuration/Patch-ComputeMachineDisableFeatures

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
$subscriptionId = ""
2-
$resourceGroupName = ""
3-
$whatIf = $null
1+
param (
2+
[string]$subscriptionId,
3+
[string]$resourceGroupName,
4+
[bool]$whatIf = $false
5+
)
46

57
if ([string]::IsNullOrEmpty($subscriptionId)) {
68
$subscriptionId = Read-Host -Prompt "Please enter the subscription ID"

0 commit comments

Comments
 (0)