Hi @chrisadkin ,
as per my understanding you’d like to create >=0 resources of type azuread_service_principal_password
and also use unique random_string.password
s for those.
In principal you can use the same count or for_each iterator on both resources, so creating equal number of resources.