Skip to content

Commit

Permalink
Updated DeleteEnvironment.ps1 in Azure Automation.
Browse files Browse the repository at this point in the history
  • Loading branch information
nboettcher committed Nov 14, 2017
1 parent 06c1fe4 commit d13426c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DeleteEnvironment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $account = Add-AzureRmAccount -SubscriptionId $AzureSubscriptionId -Credential
Set-AzureRmContext -SubscriptionId $AzureSubscriptionId

#delete azure scheduler items
Get-AzureRmSchedulerJobCollection | Where-Object {$_.JobCollectionName.Contains($tenantId) } | Remove-AzureRmSchedulerJobCollection
Get-AzureRmSchedulerJobCollection | Where-Object {$_.JobCollectionName -contains "*$tenantId*" } | Remove-AzureRmSchedulerJobCollection

#Define the storage account and context.
$StorageAccountName = Get-AutomationVariable -Name 'StorageAccountName'
Expand Down

0 comments on commit d13426c

Please sign in to comment.