Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

Generated export command excludes resources

Open ykuijs opened this issue 3 years ago • 2 comments

When I generate an export on the export.microsoft365dsc.com website, select all resources and select Application as Authentication method, running the command gives me this prompt: image

Wouldn't it make sense to disable all resources that don't support the selected authentication method on the Export page?

ykuijs avatar Feb 11 '22 14:02 ykuijs

This would make a lot of sense. We would need this information somewhere for the website. Maybe we could add this information to the settings files too (see #1751)

andikrueger avatar Feb 11 '22 19:02 andikrueger

I am working on an update of the Export functionality that will add support for specifying multiple authentication method. When you do, the code will use the most secure method that is the greatest denominator between what is provided on the command line and what is supported by the resource. It is using the following order (from most secure to less secure): Certificate Thumbprint, Certificate Path, Application Secret, Credential

For example:

  • The resource supports Credential and CertificatePath
  • For the Export-M365DSCConfiguration Credential, CertificatePath and CertificateThumbprint are specified.

Since the resource does not support CertificateThumbprint, the code is then using CertificatePath to export the resource.

ykuijs avatar Jul 06 '22 08:07 ykuijs