Is it possible to specify what job collection Visual Studio should use when it deploys an Azure Web Job with a schedule? By default it tries to create a new Free tier collection, but as I already have one (and the limit is one per account), it fails to deploy.
I want to set up a paid job collection, and have all my deployments go into that collection.
I am deploying the WebJob from Visual Studio's Publish as Azure WebJob...
option. The error message in Visual Studio is:
An error occurred while creating the WebJob schedule: The subscription 'XXX' cannot have more than '1' free job collections. (/subscriptions/XXX/resourceGroups/CS-WestEurope-scheduler/providers/Microsoft.Scheduler/jobCollections/YYY)
I want to keep my existing free job collection (as it has other manually created HTTP jobs in it). It would be much better if I could specify myself where the WebJob schedule should go.
Thanks!
I have managed to work around this for now. I performed the following steps:
Once this is done, deployments from Visual Studio go to the automatically created Job Collection (automatically named WebJobs-WestEurope after the geolocation of my app), and the other collection is left alone for you to use how you wish.
Basically, Visual Studio needs to get in FIRST to create it's collection, and after that you can add collections as you wish. It seems like a limitation that you can't control which collection it chooses though, so you have to remember that a particular collection is magically tied to Visual Studio's deployments. I'm all for convention over configuration, but not convention DISALLOWING configuration.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With