def METHOD_NAME(self):
    account_name = self.create_random_name(prefix='cli-acc-', length=24)
    pool_name = self.create_random_name(prefix='cli-pool-', length=24)
    volume_name = self.create_random_name(prefix='cli-vol-', length=24)
    snapshot_name = self.create_random_name(prefix='cli-sn-', length=24)
    rg = '{rg}'
    volume = self.create_volume(account_name, pool_name, volume_name, rg)
    snapshot = self.cmd("az netappfiles snapshot create -g %s -a %s -p %s -v %s -s %s -l 'eastus2' --file-system-id %s" % (rg, account_name, pool_name, volume_name, snapshot_name, volume['fileSystemId'])).get_output_in_json()
    assert snapshot['name'] == account_name + '/' + pool_name + '/' + volume_name + '/' + snapshot_name
    snapshot_list = self.cmd("az netappfiles snapshot list --resource-group %s --account-name %s --pool-name %s --volume-name %s" % (rg, account_name, pool_name, volume_name)).get_output_in_json()
    assert len(snapshot_list) == 1
    self.cmd("az netappfiles snapshot delete -g %s -a %s -p %s -v %s -s %s" % (rg, account_name, pool_name, volume_name, snapshot_name))
    snapshot_list = self.cmd("az netappfiles snapshot list --resource-group %s --account-name %s --pool-name %s --volume-name %s" % (rg, account_name, pool_name, volume_name)).get_output_in_json()
    assert len(snapshot_list) == 0