Skip to content

Commit 07371b8

Browse files
author
Noah Stahl
committed
Merge pull request #1 from slapointe/master
Added a param section for Azure Automation to properly detect script parameters
2 parents 1bd497b + 8e8decc commit 07371b8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Assert-AutoShutdownSchedule.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
[String] $AzureCredentialName = "Use *Default Automation Credential* Asset"
2-
[String] $AzureSubscriptionName = "Use *Default Azure Subscription* Variable Value"
1+
param(
2+
[String] $AzureCredentialName = "Use *Default Automation Credential* Asset",
3+
[String] $AzureSubscriptionName = "Use *Default Azure Subscription* Variable Value"
4+
)
35

46
# Define function to check current time against specified range
57
function CheckScheduleEntry ([string]$TimeRange)

0 commit comments

Comments
 (0)