Q:

Implement single signon (SSO) using SAML in java and AzureAD as IDP

I want to implement Single signOn on my web application using SAML where Azure Ad will be the Identity Provider. i need to know What is entityId, appId and and how to create metadata.xml.

A:

The details you seek are available in this site https://docs.microsoft.com/en-us/azure/active-directory/develop/azure-ad-federation-metadata
All the details present in FederationMetadata.xml file depends on what is configured on Azure AD. 
As a Web application developer, you don't need to create this XML file. It should be provided by the person who is managing Azure AD. If you are the person managing Azure AD also, then you can download it from there.

