Public/Graph/Update-KritTcmMgBetaOrganization.ps1

<#
.SYNOPSIS
    Krit.TCM wrapper over Microsoft365DSC helper Update-MgBetaOrganization
    (category: Graph, module: M365DSCGraphShim).

.DESCRIPTION
    Auto-scaffolded wave .1514 by New-KritTcmFromM365DscHelpers.ps1.
    Thin delegating passthrough — logic stays in Microsoft365DSC upstream;
    Krit.TCM provides the friendly namespace + citation registration
    for HARD RULE 20 discipline.

    Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling.

.NOTES
    Wave .1514. Underlying cmdlet: Update-MgBetaOrganization
    Category: Graph
    Module: M365DSCGraphShim
    Params: 47
#>

function Update-KritTcmMgBetaOrganization {
    [CmdletBinding()]
    param(
        [String] $OrganizationId,
        [Object] $InputObject,
        [Object] $BodyParameter,
        [String] $ResponseHeadersVariable,
        [Hashtable] $AdditionalProperties,
        [Object] $AssignedPlans,
        [Object] $Branding,
        [String[]] $BusinessPhones,
        [Object] $CertificateBasedAuthConfiguration,
        [Object] $CertificateConnectorSetting,
        [String] $City,
        [String] $Country,
        [String] $CountryLetterCode,
        [DateTime] $CreatedDateTime,
        [String] $DefaultUsageLocation,
        [DateTime] $DeletedDateTime,
        [Object] $DirectorySizeQuota,
        [String] $DisplayName,
        [Object] $Extensions,
        [String] $Id,
        [SwitchParameter] $IsMultipleDataLocationsForServicesEnabled,
        [String[]] $MarketingNotificationEmails,
        [Object] $MobileDeviceManagementAuthority,
        [DateTime] $OnPremisesLastPasswordSyncDateTime,
        [DateTime] $OnPremisesLastSyncDateTime,
        [SwitchParameter] $OnPremisesSyncEnabled,
        [Object] $PartnerInformation,
        [String] $PartnerTenantType,
        [String] $PostalCode,
        [String] $PreferredLanguage,
        [Object] $PrivacyProfile,
        [Object] $ProvisionedPlans,
        [String[]] $SecurityComplianceNotificationMails,
        [String[]] $SecurityComplianceNotificationPhones,
        [Object] $Settings,
        [String] $State,
        [String] $Street,
        [String[]] $TechnicalNotificationMails,
        [String] $TenantType,
        [Object] $VerifiedDomains,
        [SwitchParameter] $Break,
        [IDictionary] $Headers,
        [Object[]] $HttpPipelineAppend,
        [Object[]] $HttpPipelinePrepend,
        [Uri] $Proxy,
        [PSCredential] $ProxyCredential,
        [SwitchParameter] $ProxyUseDefaultCredentials
    )

    if (-not (Get-Command -Name 'Update-MgBetaOrganization' -ErrorAction SilentlyContinue)) {
        throw '[KritTcm] Update-MgBetaOrganization not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run'
    }
    try {
        & 'Update-MgBetaOrganization' @PSBoundParameters
    } catch {
        Write-Error ('[KritTcm/Update-KritTcmMgBetaOrganization] ' + 'Update-MgBetaOrganization' + ' failed: ' + $_.Exception.Message)
        throw
    }
}