Delete az vm was created with count terraform module

Hello,

I have deployed a vm(s) azure using terraform module with count.

So, i have create a 5 vm azure (count =5) and i deleted the second vm from the portal and then from the tfstate that was stored in storage account.

But when, i run my pipeline after that, the second vm will be recreated and added again to my tfstate.

How can i delete the second vm from the count terraform code please without recreating it on the next deployment ?

Thanks