@app.route('/account/<subscription_id>/resourcegroups/<resource_group_name>/vms/<vm_name>')
@auth.require_login
def vm_view(subscription_id, resource_group_name, vm_name):
 creds = _get_credentials()
 model = models.get_vm_details(subscription_id, creds, resource_group_name, vm_name)
 return render_template('vm.html', title=vm_name, year=datetime.now().year, subscription_id=subscription_id, resource_group_name=resource_group_name, model=model)

@ app . route ( '/account/<subscription_id>/resourcegroups/<resource_group_name>/vms/<vm_name>' ) @ auth . require_login def vm_view ( subscription_id , resource_group_name , vm_name ) : creds = _get_credentials ( ) model = models . get_vm_details ( subscription_id , creds , resource_group_name , vm_name ) return render_template ( 'vm.html' , title = vm_name , year = datetime . now ( ) . year , subscription_id = subscription_id , resource_group_name = resource_group_name , model = model )
renders the vm details .