There is a work around to agree to Azure MarketPlace images
For the DSVM a workaround is at
https://github.com/Azure/cyclecloud-data-science-vm/blob/master/README.md
To use the Microsoft DataScience VM, you must first accept the license agreement. The simplest way to do so is to run the following Azure CLI commands:
For Linux CentOS
az vm image accept-terms --publisher microsoft-ads --offer linux-data-science-vm --plan linuxdsvm
For Ubuntu
az vm image accept-terms --publisher microsoft-ads --offer linux-data-science-vm-ubuntu --plan linuxdsvmubuntu
For Windows
az vm image accept-terms --publisher microsoft-ads --offer windows-data-science-vm --plan windows2016