Hello @João Vitor do Prado Maia
It's good that you're looking to optimize your costs by cleaning up your Azure Compute Galleries and snapshots. When you delete a snapshot, it won't impact any currently running VMs. However, it's important to note that the snapshot deletion operation cannot be undone.
Impact of Deleting Azure Compute Galleries on Running VMs: Deleting an Azure Compute Gallery (formerly known as Shared Image Gallery) can have an impact if there are VMs or services that rely on the images stored in that gallery. If you delete a gallery, any VM or service that was created using an image from that gallery will not be able to scale out or create new instances using that image. However, the existing VMs and services that are already running will continue to operate without interruption
It's a good practice to ensure that no active deployments are dependent on the images in the gallery before deleting it. You can also consider archiving or exporting the images if you might need them in the future.
If you have any more questions or need further assistance, feel free to ask!
If I have answered your query, please click "Accept as answer" as a token of appreciation