def METHOD_NAME(self, volume_only=False):
    if not volume_only:
        # create vnet, account and pool
        self.cmd("az network vnet create -n {vnet} -g {rg} -l {vnet_loc} --address-prefix 10.5.0.0/16")
        self.cmd("az network vnet subnet create -n {subnet} --vnet-name {vnet} --address-prefixes '10.5.0.0/24' "
                 "--delegations 'Microsoft.Netapp/volumes' -g {rg}")
        self.cmd("netappfiles account create -g {rg} -a {acc_name} -l {loc}")
        self.cmd("netappfiles pool create -g {rg} -a {acc_name} -p {pool_name} -l {loc} --service-level 'Premium' "
                 "--size 4")
    # create volume
    return self.cmd("netappfiles volume create -g {rg} -a {acc_name} -p {pool_name} -v {vol_name} -l {loc} "
                    "--vnet {vnet} --subnet {subnet} --file-path {vol_name} --usage-threshold 100")