Just realized - this probably doesn't work when you've got a connection string rather than subscription ID. Should file a separate bug on this.