- Go to the Azure portal (https://portal.azure.com/) and sign in with your Microsoft account or Azure Active Directory (AAD) account that has access to the Azure subscription you want to use.
- In the left navigation pane, click on "App registrations".
- Click the "New registration" button to create a new application registration.
- Enter a name for your application registration in the "Name" field.
- Under "Supported account types", select the option that matches your needs.
- In the "Redirect URI" section, add a redirect URI that your application will use to receive authorization codes and access tokens. This URI must be a valid HTTPS endpoint that your application can receive requests on. Click the "Register" button to create the application registration.
- On the "Overview" page for your application registration, copy the "Application (client) ID" value to a secure location. This is your client ID.
- Under "Certificates & secrets", click the "New client secret" button to create a new client secret.
- Enter a name for your client secret in the "Description" field.
- Select an expiration time for your client secret, or leave it as never expires.
- Click the "Add" button to create the client secret.
- Copy the client secret value to a secure location. This is your client secret.