When i run the following command in azure, I want to place the value of the "name" in a variable like $ipconfigname. The output lists out many other values but I only need this one value "name" in the variable, how can i accomplish this?

az network nic ip-config list -g rg01 --nic-name vmnic01