
NOTE: Microsoft Graph permission is not a prerequisite. Give below “application” permissions to the app.Create new Azure AD App with a valid name.
#Office 365 and azure ad how to
Also, please check out Garry Tinder’s post which goes into details on how to create AAD app to log in using Office 365 CLI.
#Office 365 and azure ad password
If you use double quotes for the password string as documented (Example: openssl pkcs12 -export -out protected.pfx -inkey privateKey.key -in certificate.cer -password ), the quotes are also considered to be part of the password. Pkcs12 -export -out protected.pfx -inkey privateKey.key -in certificate.cer -password I’d would like to highlight and note that I spent many hours troubleshooting an issue related to this command.

I hope that saves some time for you in researching which client works.

NOTE: After trying couple of openssl clients, I had success with this ssl client.

Instructions are assuming openssl client is extracted to c:\OpenSSL folder.

However, enterprise organizations who are still not comfortable to use passwords and looking for other secure means like certificates. Login -authType password -userName -password are ways to secure the password in Azure DevOps using variables or Azure Key Vault. To login with Office 365 CLI using username and password:
#Office 365 and azure ad windows
It’s because Office 365 CLI is a cross-platform command line tool and thus you get the benefit of using either a Windows or a Linux machine as your build agent. While using Azure DevOps Continuous Integration and Continuous Delivery (CICD) pipelines, most of the documentation and articles show how to use Office 365 Command Line Interface (CLI) to upload, add and deploy the SPFx packages.
