imgid="$(az image show -n "${d}" -g "${rg}" --q "[id]" -o tsv)"
az vm create ... "${imgid}"
results in:
az vm create ... $'/subs.../snip.vhd\r'
Hard to imagine how this is helpful for anyone. It'd be nice if I didn't have to run these types of commands through tr just to use them in scripts.