Sql server AOAG license on readable secondary Scenario:
Microsoft sql server AlwasOn Availabiliry Group:
For SQL server License on readable secondary if :
Example
Primary server  cores : 32
Secondary Replica cores : 32, but at the time it's secondary only 12 cores assigned to sql server.
The question:
Will the license be calculated for the 32, or the 12 cores on active readable secondary
You have to cover the readable secondary with proper license. So you have to count the cores on the secondary.
Count the cores assigned by the virtualizer (private cloud) or physical total cores (on-premise install).