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

MSFT_TeamsGroupPolicyAssignment - Apply fails with error "Service is too busy" #5700

Open
subhashvinjamuri opened this issue Jan 30, 2025 · 0 comments

Comments

@subhashvinjamuri
Copy link

Description of the issue

Trying to deploy TeamsGroupPolicyAssignment - for set of Teams Policies and applying them to Groups. Compilation works fine. But SendConfiguration fails all the time. One more problem, even though it fails, output response says as success. No error code other than printing error in the output.
I exported TeamsGroupPolicyAssignment from one tenant and trying to apply on different tenant with proper client/cert/tenantid combination.
Though the GroupIDs extracted from source tenants are not same in destination tenant, those groups with same 'displayNames' do exist in destination tenant. So technically it should work, but its not working.

PowerShell DSC resource MSFT_TeamsGroupPolicyAssignment failed to execute Set-TargetResource functionality with error message: Service is too busy
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : ProviderOperationExecutionFailure
+ PSComputerName : localhost

VERBOSE: [CCC-123]: LCM: [ End Set ]
The SendConfigurationApply function did not succeed.
+ CategoryInfo : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : MI RESULT 1
+ PSComputerName : localhost

Microsoft 365 DSC Version

V1.25.122.1

Which workloads are affected

Teams

The DSC configuration

# Generated with Microsoft365DSC version 1.25.122.1
# For additional information on how to use Microsoft365DSC, please visit https://aka.ms/M365DSC
param (
)

Configuration Teams
{
    param (
    )

    $OrganizationName = $ConfigurationData.NonNodeData.OrganizationName

    Import-DscResource -ModuleName 'Microsoft365DSC' -ModuleVersion '1.25.122.1'

    Node localhost
    {

        # For information on how to use this resource, please refer to:
        # https://github.com/microsoft/Microsoft365DSC/wiki/TeamsGroupPolicyAssignment
        TeamsGroupPolicyAssignment "TeamsGroupPolicyAssignment-TST - USR- PilotConfRoom-UsersTeamsAppSetupPolicy"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Ensure                = "Present";
            GroupDisplayName      = "TST - USR- PilotConfRoom-Users";
            GroupId               = "****************";
            PolicyName            = "Conference Room - Block Apps";
            PolicyType            = "TeamsAppSetupPolicy";
            Priority              = 1;
            TenantId              = $OrganizationName;
        }
        TeamsGroupPolicyAssignment "TeamsGroupPolicyAssignment-WW-F-CFRMUsersTeamsAppSetupPolicy"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Ensure                = "Present";
            GroupDisplayName      = "WW-F-CFRMUsers";
            GroupId               = "***********";
            PolicyName            = "Conferece Room";
            PolicyType            = "TeamsAppSetupPolicy";
            Priority              = 2;
            TenantId              = $OrganizationName;
        }
        TeamsGroupPolicyAssignment "TeamsGroupPolicyAssignment-WW-PVF-AZURE-82TeamsAppSetupPolicy"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Ensure                = "Present";
            GroupDisplayName      = "WW-PVF-AZURE-82";
            GroupId               = "***********";
            PolicyName            = "M365 Copilot - App Upload";
            PolicyType            = "TeamsAppSetupPolicy";
            Priority              = 3;
            TenantId              = $OrganizationName;
        }
        TeamsGroupPolicyAssignment "TeamsGroupPolicyAssignment-WW-F-COLLAB-CUsersTeamsAppSetupPolicy"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Ensure                = "Present";
            GroupDisplayName      = "WW-F-COLLAB-CUsers";
            GroupId               = "***********";
            PolicyName            = "Conferece Room";
            PolicyType            = "TeamsAppSetupPolicy";
            Priority              = 4;
            TenantId              = $OrganizationName;
        }
        TeamsGroupPolicyAssignment "TeamsGroupPolicyAssignment-WW-F-VIPUsersTeamsAppSetupPolicy"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Ensure                = "Present";
            GroupDisplayName      = "WW-F-VIPUsers";
            GroupId               = "********";
            PolicyName            = "Conferece Room";
            PolicyType            = "TeamsAppSetupPolicy";
            Priority              = 5;
            TenantId              = $OrganizationName;
        }
        TeamsGroupPolicyAssignment "TeamsGroupPolicyAssignment-WW-PVF-AZURE-55TeamsCallingPolicy"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Ensure                = "Present";
            GroupDisplayName      = "WW-PVF-AZURE-55";
            GroupId               = "************";
            PolicyName            = "DisallowCalling";
            PolicyType            = "TeamsCallingPolicy";
            Priority              = 1;
            TenantId              = $OrganizationName;
        }
        TeamsGroupPolicyAssignment "TeamsGroupPolicyAssignment-WW-PVF-AZURE-40TeamsChannelsPolicy"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Ensure                = "Present";
            GroupDisplayName      = "WW-PVF-AZURE-40";
            GroupId               = "*************";
            PolicyName            = "csp-VC_Only-team";
            PolicyType            = "TeamsChannelsPolicy";
            Priority              = 1;
            TenantId              = $OrganizationName;
        }
        TeamsGroupPolicyAssignment "TeamsGroupPolicyAssignment-WW-PVF-AZURE-104TeamsMeetingPolicy"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Ensure                = "Present";
            GroupDisplayName      = "WW-PVF-AZURE-104";
            GroupId               = "*************";
            PolicyName            = "Teams Meeting Recording - ON";
            PolicyType            = "TeamsMeetingPolicy";
            Priority              = 1;
            TenantId              = $OrganizationName;
        }
        TeamsGroupPolicyAssignment "TeamsGroupPolicyAssignment-WW-PVF-AZURE-40TeamsMeetingPolicy"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Ensure                = "Present";
            GroupDisplayName      = "WW-PVF-AZURE-40";
            GroupId               = "***********";
            PolicyName            = "csp-VC_Only-meet";
            PolicyType            = "TeamsMeetingPolicy";
            Priority              = 2;
            TenantId              = $OrganizationName;
        }
        TeamsGroupPolicyAssignment "TeamsGroupPolicyAssignment-WW-PVF-AZURE-55TeamsMeetingPolicy"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Ensure                = "Present";
            GroupDisplayName      = "WW-PVF-AZURE-55";
            GroupId               = "*****************";
            PolicyName            = "Teams_NoVideoConf";
            PolicyType            = "TeamsMeetingPolicy";
            Priority              = 3;
            TenantId              = $OrganizationName;
        }
        TeamsGroupPolicyAssignment "TeamsGroupPolicyAssignment-WW-PVF-AZURE-40TeamsMessagingPolicy"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Ensure                = "Present";
            GroupDisplayName      = "WW-PVF-AZURE-40";
            GroupId               = "***************";
            PolicyName            = "csp-VC_Only-msg";
            PolicyType            = "TeamsMessagingPolicy";
            Priority              = 1;
            TenantId              = $OrganizationName;
        }
        TeamsGroupPolicyAssignment "TeamsGroupPolicyAssignment-WW-PVF-AZURE-100TeamsMessagingPolicy"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Ensure                = "Present";
            GroupDisplayName      = "WW-PVF-AZURE-100";
            GroupId               = "*************";
            PolicyName            = "PVF AZURE 100 - Chat On";
            PolicyType            = "TeamsMessagingPolicy";
            Priority              = 2;
            TenantId              = $OrganizationName;
        }
        TeamsGroupPolicyAssignment "TeamsGroupPolicyAssignment-WW-PVF-AZURE-103TeamsUpdateManagementPolicy"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Ensure                = "Present";
            GroupDisplayName      = "WW-PVF-AZURE-103";
            GroupId               = "*************";
            PolicyName            = "TeamsPublicPreview";
            PolicyType            = "TeamsUpdateManagementPolicy";
            Priority              = 1;
            TenantId              = $OrganizationName;
        }
        TeamsGroupPolicyAssignment "TeamsGroupPolicyAssignment-WW-PVF-AZURE-40TeamsVerticalPackagePolicy"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Ensure                = "Present";
            GroupDisplayName      = "WW-PVF-AZURE-40";
            GroupId               = "*************";
            PolicyName            = "csp-VC_Only-pkg";
            PolicyType            = "TeamsVerticalPackagePolicy";
            Priority              = 1;
            TenantId              = $OrganizationName;
        }
    }
}

Teams -ConfigurationData .\ConfigurationData.psd1

Verbose logs showing the problem

PowerShell DSC resource MSFT_TeamsGroupPolicyAssignment  failed to execute Set-TargetResource functionality with error message: Service is too busy 
    + CategoryInfo          : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : ProviderOperationExecutionFailure
    + PSComputerName        : localhost
 
VERBOSE: [SEDEVA-OB-828]: LCM:  [ End    Set      ]
The SendConfigurationApply function did not succeed.
    + CategoryInfo          : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : MI RESULT 1
    + PSComputerName        : localhost

Environment Information + PowerShell Version

OsName               : Microsoft Windows Server 2019 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture       : 64-bit
WindowsVersion       : 1809
WindowsBuildLabEx    : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

Key   : PSVersion
Value : 5.1.17763.6766
Name  : PSVersion

Key   : PSEdition
Value : Desktop
Name  : PSEdition

Key   : PSCompatibleVersions
Value : {1.0, 2.0, 3.0, 4.0...}
Name  : PSCompatibleVersions

Key   : BuildVersion
Value : 10.0.17763.6766
Name  : BuildVersion

Key   : CLRVersion
Value : 4.0.30319.42000
Name  : CLRVersion

Key   : WSManStackVersion
Value : 3.0
Name  : WSManStackVersion

Key   : PSRemotingProtocolVersion
Value : 2.3
Name  : PSRemotingProtocolVersion

Key   : SerializationVersion
Value : 1.1.0.1
Name  : SerializationVersion
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