Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when attempting to push AADApplications to target tenant #5818

Open
GenZedBA opened this issue Feb 21, 2025 · 0 comments
Open

Error when attempting to push AADApplications to target tenant #5818

GenZedBA opened this issue Feb 21, 2025 · 0 comments

Comments

@GenZedBA
Copy link

GenZedBA commented Feb 21, 2025

Description of the issue

Hello, when attempting to run the below DSC Configuration I am getting two errors that I can't seem to decipher:

I am specifically trying to copy AADApplications

I am using a Global Administrator credential without MFA and have run Update-M365DSCAllowedGraphScopes -ResourceNameList @("AADApplication") -Type Update to allow delegated rights to the admin account prior to the DscConfiguration.

Not sure why its erroring on a certificate when I created the mof file with the global admin credential.

Start-DscConfiguration -Path C:\Scripts\Test\M365TenantConfig\ -Wait -Verbose -Force

VERBOSE: [5CG2520YHZ]: LCM: [ Start Resource ] [[AADApplication]AADApplication-rdms-webapp-test]
VERBOSE: [5CG2520YHZ]: LCM: [ Start Test ] [[AADApplication]AADApplication-rdms-webapp-test]
VERBOSE: [5CG2520YHZ]:[[AADApplication]AADApplication-rdms-webapp-test] Testing configuration of AzureAD Application Cannot find path '\LocalMachine\My\3309F4FB3E3D29F9C2B6F7627B6A5BFEDCFECF35' because it does not exist.
+ CategoryInfo : ObjectNotFound: (\LocalMachine\M...B6A5BFEDCFECF35:) [], CimException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
+ PSComputerName : localhost

VERBOSE: [5CG2520YHZ]: LCM: [ End Test ] [[AADApplication]AADApplication-rdms-webapp-test] in 0.0940 seconds. PowerShell DSC resource MSFT_AADApplication failed to execute Test-TargetResource functionality with error message: Must specify 'CertificateThumbprint or CertificateSubjectName or Certificate'.

  • CategoryInfo : InvalidOperation: (:) [], CimException
  • FullyQualifiedErrorId : ProviderOperationExecutionFailure
  • PSComputerName : localhost

Microsoft 365 DSC Version

1.25.212.2

Which workloads are affected

Azure Active Directory (Entra ID)

The DSC configuration

Verbose logs showing the problem

Environment Information + PowerShell Version

OsName               : Microsoft Windows 11 Enterprise
OsOperatingSystemSKU : EnterpriseEdition
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsBuildLabEx    : 22621.1.amd64fre.ni_release.220506-1250
OsLanguage           : en-US
OsMuiLanguages       : {en-US}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant