How to Set Recovery Mode in SQL Server Always On Availability Group without downtime? I am running a SQL Server 2016 2-node Always On Availability Group, and I want to do some backups.  I normally run this query to do my backup:

-- To permit log backups, before the full database backup, modify the database to use the full recovery model.  
USE master;  
ALTER DATABASE dbname
   SET RECOVERY FULL;  


BACKUP DATABASE dbname
   TO URL = 'https://bloblname.blob.core.windows.net/databasebackup/backup.bak'
   WITH CREDENTIAL = 'credentialname';


My question is, can I do this part on an Availability Group Primary Node without incurring downtime?

ALTER DATABASE dbname
   SET RECOVERY FULL;  


I am worried that if I run this command on the availability group primary it is going to somehow cause synchronization to stop, or perhaps have other effects that could be detrimental.

Another related question is - do you advise running these commands on the primary or the secondary?

Any help with this would be greatly appreciated.
Availability groups require databases to be in full recovery mode (see Availability Database Prerequisites and Restrictions), so there should be no need to switch it to full prior to running a backup.  The database should not be switched out of full recovery mode if it is in an availability group.

As to where to run the backup, on the primary or secondary, it is a matter of  load distribution, and currency.  If you don't want the load of the backup to run on the primary, then you'll need to run it on the secondary.  If they are in asynchronous replication, the backup may not contain all of the latest data if some of the database replication is backed up in the log send queue.