adh_crp.py
def stop_vm(access_token, subscription_id, resource_group, vm_name):
    '''Stop a virtual machine but don't deallocate resources (power off).

    Args:
        access_token (str): A valid Azure authentication token.
        subscription_id (str): Azure subscription id.
        resource_group (str): Azure resource group name.
        vm_name (str): Name of the virtual machine.

    Returns:
        HTTP response.
    '''
    endpoint = ''.join([get_rm_endpoint(),
                        '/subscriptions/', subscription_id,
                        '/resourceGroups/', resource_group,
                        '/providers/Microsoft.Compute/virtualMachines/',
                        vm_name,
                        '/powerOff',
                        '?api-version=', COMP_API])
    return do_post(endpoint, '', access_token)
Stop a virtual machine but don't deallocate resources (power off).

    Args:
        access_token (str): A valid Azure authentication token.
        subscription_id (str): Azure subscription id.
        resource_group (str): Azure resource group name.
        vm_name (str): Name of the virtual machine.

    Returns:
        HTTP response.
    
Stop a virtual machine but don't deallocate resources (power off).
Stop a virtual machine but don ' t deallocate resources ( power off ) .
def stop_vm(access_token, subscription_id, resource_group, vm_name):
    endpoint = ''.join([get_rm_endpoint(),
                        '/subscriptions/', subscription_id,
                        '/resourceGroups/', resource_group,
                        '/providers/Microsoft.Compute/virtualMachines/',
                        vm_name,
                        '/powerOff',
                        '?api-version=', COMP_API])
    return do_post(endpoint, '', access_token)
def stop_vm ( access_token , subscription_id , resource_group , vm_name ) : endpoint = '' . join ( [ get_rm_endpoint ( ) , '/subscriptions/' , subscription_id , '/resourceGroups/' , resource_group , '/providers/Microsoft.Compute/virtualMachines/' , vm_name , '/powerOff' , '?api-version=' , COMP_API ] ) return do_post ( endpoint , '' , access_token )
Stop a virtual machine but don't deallocate resources (power off).
Stop a virtual machine but don ' t deallocate resources ( power off ) .
'''Stop a virtual machine but don't deallocate resources (power off).

    Args:
        access_token (str): A valid Azure authentication token.
        subscription_id (str): Azure subscription id.
        resource_group (str): Azure resource group name.
        vm_name (str): Name of the virtual machine.

    Returns:
        HTTP response.
    '''
None
access_token
A valid Azure authentication token.
A valid Azure authentication token .
subscription_id
Azure subscription id.
Azure subscription id .
resource_group
Azure resource group name.
Azure resource group name .
vm_name
Name of the virtual machine.
Name of the virtual machine .