-
Notifications
You must be signed in to change notification settings - Fork 358
Development
Mathew Charles edited this page Mar 20, 2017
·
23 revisions
- VS 2017
- Add a strong name skip verification entry to since the SDK assemblies are delay signed. To do this run *sn -Vr ,31bf3856ad364e35 from a Visual Studio administrator command prompt. See Sn.exe documentation for details. Particularly the warning about only enabling this during development.
- Pull and build the source in VS (WebJobs.sln)
- Set up the test storage account environment variables
-
AzureWebJobsStorage
- Set this to your test storage account -
AzureWebJobsSecondaryStorage
- Set this to a secondary test storage account. The multi-account tests require this. -
AzureWebJobsDashboard
- Storage account that will be used for dashboard logging (can be same as above) -
AzureWebJobsServiceBus
- Set this to your Service Bus namespace connection string -
AzureWebJobsTestHubConnection
- Create an EventHub namedwebjobstesthub
and set this to the connection string for that hub with Mange rights -
AzureWebJobsTestHubConnection2
- Create an EventHub namedwebjobstesthub2
and set this to the connection string for that hub with Mange rights
-
- Open Test Explorer to view and run tests (we use XUnit)
- Set up the dashboard account environment variables
-
StorageAccount
- Set this to the storage account that you've configured the SDK to use
-
- In the WebJobs solution, right click and "View in Browser"
- Once the Dashboard page loads, click "Functions" to view recently executed functions, etc.
Follow similar instructions as here: https://github.com/Azure/azure-webjobs-sdk-script/wiki/Deploying-the-Functions-runtime-as-a-private-site-extension
- on the command line, go to the src\AzureJobs.Directory
- msbuild
- that will create a site extension folder containing the dashboard and .xdt. It will be at: src\AzureJobs.Directory\bin{version}
That directory will contain an applicationHost.xdt, global.asax, etc, plus the published site (bin, contents, scripts, views). - In Kudu, copy that site extension folder to your site at d:\home\SiteExtensions\AzureJobs.
- Restart the scm site. View your new dashboard at https://{site}.scm.azurewebsites.net/azurejobs