title: Powershell command for Create OSDisk and DataDisk snapshot
body: <p>I am writing powershell script for capture OS-disk snapshot for Azure VM but While configuring snapshot I am getting some error. 
  I am using below command to create snapshot.I am using managed disk.</p>
  
  <pre><code>New-AzSnapshotConfig -OsType Linux -CreateOption copy -SourceUri Microsoft.Azure.Management.Compute.Models.OSDisk -DiskSizeGB 40 -Location 'East US'
  </code></pre>
  
  <p>Not sure how to do that. If anyone could you please help me to solve this issue.</p>
  
  <p><strong>OUTPUT</strong></p>
  
  <pre><code>WARNING: Breaking changes in the cmdlet 'New-AzSnapshotConfig' :
  WARNING:  - "The output type 'Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot' is changing"
   - The following properties in the output type are being deprecated :
   'EncryptionSettings'
  - The following properties are being added to the output type :
   'EncryptionSettingsCollection' 'HyperVGeneration'
  
  
  WARNING: NOTE : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other information on breaking changes in 
  Azure PowerShell.
  
  
  ResourceGroupName            : 
  ManagedBy                    : 
  Sku                          : 
  TimeCreated                  : 
  OsType                       : Linux
  HyperVGeneration             : 
  CreationData                 : Microsoft.Azure.Management.Compute.Models.CreationData
  DiskSizeGB                   : 40
  EncryptionSettingsCollection : 
  ProvisioningState            : 
  Id                           : 
  Name                         : 
  Type                         : 
  Location                     : East US
  Tags                         : 
  EncryptionSettings           : 
  
  Thanks
  Rohit
  </code></pre>