I have 2 Azure resources in an ARM template that depend on each other: a key vault and a service fabric cluster.
For the key vault, I need to reference the service fabric cluster's object ID in the key vault's access policies to give it permission to access secrets. For the service fabric cluster, I need it to reference secrets from the key vault. Neither of these resources exist during deployment time.
Is there a way that I can reference the object ID of the service fabric cluster to provide to the key vault's access policies, and is there a way that I can generate the secrets in the key vault without hardcoding any values? Ideally, we would only know the secret name and only provide that secret name to the service fabric cluster in the ARM template.
