We are having issues with both app & service principal credentials where we are trying to generate a set of credentials and use them to create Azure Resource Groups. We are receiving an error “invalid client secret provided” due to credentials being eventually consistent. We were able to determine that service principal credentials are noticeably faster than app credentials. Do you have any recommendation on how we could potentially resolve this issue for both app & sp creds?
API we are using: https://github.com/microsoftgraph/msgraph-sdk-go/blob/main/models/password_credential.go#L16