How can I find all my Azure Scheduler jobs?

Jeff Thorpe 21 Reputation points
2021-12-06T22:22:20.957+00:00

The Azure Scheduler will be retired on January 31, 2022 but they no longer show up in the Azure Portal. How can I go about getting a list of all my Azure Scheduler jobs?

I tried using PowerShell with Get-AzureRmSchedulerJobCollection and Get-AzureRmSchedulerJob but all the jobs returned appeared to be WebJobs and not Azure Scheduler jobs. I need to figure out how to get a complete list of all scheduled jobs that will be impacted by the Azure Scheduler retirement. Are there some other PowerShell commands that I can use to get this information?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,251 questions
{count} votes

Accepted answer
  1. Monalla-MSFT 11,961 Reputation points
    2021-12-07T19:09:45.94+00:00

    Hello @Jeff Thorpe - Thanks for reaching out.

    In order for you to get a complete list of all scheduled jobs , please try the below sample code and see if that helps.

    Install-Module Az -AllowClobber -Force   # Install-Module AzureRM -AllowClobber -Force  
    Import-Module Az   # Import-Module AzureRM  
    # Login with Connect-AzAccount if not using Cloud Shell  
    Connect-AzAccount    # Get-AzureAccount  
    Add-AzAccount   # Add-AzureRmAccount  # Add-AzureAccount  
      
    Function Get-RscsInAllSubs {  
    param([String] $ResType)  
    $output=@()  
    #### Loop through all subscriptions  
    foreach ($Subscription in $(Get-AzSubscription| Where-Object {$_.State -ne "Disabled"})){  
    Select-AzSubscription -SubscriptionId $Subscription.SubscriptionId  
    $output+=get-azresource | where {$_.ResourceType -eq $ResType} | select SubscriptionId, Name, ResourceGroupName, ResourceId | ft  
      }  
      $output  
    }  
      
    Get-RscsInAllSubs 'Microsoft.Storage/storageAccounts'  
    Get-RscsInAllSubs 'Microsoft.Compute/virtualMachines'  
    Get-RscsInAllSubs 'Microsoft.Scheduler/jobCollections'  
    

    Hope that helps.

    --------------------------------------------------------------------------------------------------------------------

    If the above answer helped, please feel free to "Accept as Answer" and "Upvote" so it can be beneficial to the community.

    0 comments No comments

0 additional answers

Sort by: Most helpful