Stop-AzVM 
        
            This cmdlet stops an Azure virtual machine. You can stop the VM and release its compute resources, or you can deallocate it to also release the associated IP addresses and avoid ongoing charges for compute.
        
        Syntax
        
            Stop-AzVM
    [-Force]
    [-AsJob]
    [-WhatIf]
    [-Confirm]
    []  
        Parameters
        
            
                -Name 
                [String] 
                Specifies the name of the virtual machine to stop. 
             
            
                -ResourceGroupName 
                [String] 
                Specifies the name of the resource group that the virtual machine belongs to. 
             
            
                -Force 
                [Switch] 
                Skips the confirmation prompt. 
             
            
                -Deallocate 
                [Switch] 
                Deallocates the virtual machine after stopping it, releasing compute resources and associated IP addresses. 
             
            
                -AsJob 
                [Switch] 
                Runs the cmdlet as a background job. 
             
            
                -WhatIf 
                [Switch] 
                Shows what would happen if the cmdlet runs. The cmdlet is not run. 
             
            
                -Confirm 
                [Switch] 
                Prompts you for confirmation before running the cmdlet. 
             
         
        Examples
        
            # Stop a virtual machine
Stop-AzVM -Name "MyVM" -ResourceGroupName "MyResourceGroup"
# Stop and deallocate a virtual machine
Stop-AzVM -Name "MyVM" -ResourceGroupName "MyResourceGroup" -Deallocate
# Stop a virtual machine without confirmation
Stop-AzVM -Name "MyVM" -ResourceGroupName "MyResourceGroup" -ForceCopy 
         
        
            Azure PowerShell Documentation | Az.Compute Module