You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AppId (not ApplicationId) is missing from the configuration files for the AADServicePrincipal resource. When we try to compile the configuration files we get an error message because the schema mof file is expecting an AppId to be present in the configuration file.
Microsoft 365 DSC Version
1.24.1211.1
Which workloads are affected
Azure Active Directory (Entra ID)
The DSC configuration
# Generated with Microsoft365DSC version 1.24.1211.1# For additional information on how to use Microsoft365DSC, please visit https://aka.ms/M365DSCparam (
)
ConfigurationAADServicePrincipal
{
param (
)
$OrganizationName=$ConfigurationData.NonNodeData.OrganizationNameImport-DscResource-ModuleName 'Microsoft365DSC'-ModuleVersion '1.24.1211.1'
Node localhost
{
# For information on how to use this resource, please refer to:# https://github.com/microsoft/Microsoft365DSC/wiki/AADServicePrincipal
AADServicePrincipal "AADServicePrincipal-535"
{
AccountEnabled =$True;
AlternativeNames =@();
ApplicationId =$ConfigurationData.NonNodeData.ApplicationId;
ApplicationSecret =New-Object System.Management.Automation.PSCredential ('ApplicationSecret', (ConvertTo-SecureString$ConfigurationData.NonNodeData.ApplicationSecret-AsPlainText -Force));
AppRoleAssignedTo =@();
AppRoleAssignmentRequired =$False;
CustomSecurityAttributes =@();
DelegatedPermissionClassifications =@();
DisplayName ="test-webapi";
Ensure ="Present";
ObjectID ="e054bd7d-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
Owners =@();
ReplyURLs =@("https://jwt.ms");
ServicePrincipalNames =@("https://mytenant.onmicrosoft.com/api","0caeaf54-XXXX-XXXX-XXXX-XXXXXXXXXXXX");
ServicePrincipalType ="Application";
Tags =@("HideApp","WindowsAzureActiveDirectoryIntegratedApp");
TenantId =$OrganizationName;
}
}
}
AADServicePrincipal -ConfigurationData .\ConfigurationData.psd1
Verbose logs showing the problem
At C:\temp\_m365dsc\OtherComponents\ToRestore\AADServicePrincipal.ps1:20 char:9+ AADServicePrincipal "AADServicePrincipal-535"+ ~~~~~~~~~~~~~~~~~~~
Resource 'AADServicePrincipal' requires that a value of type 'String' be provided for property 'AppId'.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : MissingValueForMandatoryProperty
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered:
Description of the issue
The AppId (not ApplicationId) is missing from the configuration files for the AADServicePrincipal resource. When we try to compile the configuration files we get an error message because the schema mof file is expecting an AppId to be present in the configuration file.
Microsoft 365 DSC Version
1.24.1211.1
Which workloads are affected
Azure Active Directory (Entra ID)
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: