Skip to content

New-AzureSchedulerStorageQueueJob ignores StorageQueueMessage parameter #97

@ewisuri

Description

@ewisuri

The body of storage queue jobs created with the cmdlet New-AzureSchedulerStorageQueueJob is always empty, regardless of the value set for the StorageQueueMessage parameter.

In Microsoft.WindowsAzure.Commands.Utilities.Scheduler.SchedulerMgmntClient::CreateStorageJob, it looks like the created message is referencing the Body property from the PSCreateJobParams object, when it should be using StorageQueueMessage.

The StorageQueueMessage parameter is handled correctly in the Set-AzureSchedulerStorageQueueMessage cmdlet, so a workaround is to create the job with New- and then update it with the correct storage queue message using Set-.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions