Public/Graph/New-KritTcmMgApplication.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper New-MgApplication (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: New-MgApplication Category: Graph Module: M365DSCGraphShim Params: 63 #> function New-KritTcmMgApplication { [CmdletBinding()] param( [Object] $BodyParameter, [String] $ResponseHeadersVariable, [Object] $AddIns, [Hashtable] $AdditionalProperties, [Object] $Api, [String] $AppId, [Object] $AppManagementPolicies, [Object] $AppRoles, [String] $ApplicationTemplateId, [Object] $AuthenticationBehaviors, [Object] $Certification, [String] $CreatedByAppId, [DateTime] $CreatedDateTime, [Object] $CreatedOnBehalfOf, [String] $DefaultRedirectUri, [DateTime] $DeletedDateTime, [String] $Description, [String] $DisabledByMicrosoftStatus, [String] $DisplayName, [Object] $ExtensionProperties, [Object] $FederatedIdentityCredentials, [String] $GroupMembershipClaims, [Object] $HomeRealmDiscoveryPolicies, [String] $Id, [String[]] $IdentifierUris, [Object] $Info, [SwitchParameter] $IsDeviceOnlyAuthSupported, [SwitchParameter] $IsDisabled, [SwitchParameter] $IsFallbackPublicClient, [Object] $KeyCredentials, [String] $LogoInputFile, [String[]] $ManagerApplications, [String] $NativeAuthenticationApisEnabled, [String] $Notes, [SwitchParameter] $Oauth2RequirePostResponse, [Object] $OptionalClaims, [Object] $Owners, [Object] $ParentalControlSettings, [Object] $PasswordCredentials, [Object] $PublicClient, [String] $PublisherDomain, [Object] $RequestSignatureVerification, [Object] $RequiredResourceAccess, [String] $SamlMetadataUrl, [String] $ServiceManagementReference, [Object] $ServicePrincipalLockConfiguration, [String] $SignInAudience, [Object] $Spa, [Object] $Synchronization, [String[]] $Tags, [String] $TokenEncryptionKeyId, [Object] $TokenIssuancePolicies, [Object] $TokenLifetimePolicies, [String] $UniqueName, [Object] $VerifiedPublisher, [Object] $Web, [SwitchParameter] $Break, [IDictionary] $Headers, [Object[]] $HttpPipelineAppend, [Object[]] $HttpPipelinePrepend, [Uri] $Proxy, [PSCredential] $ProxyCredential, [SwitchParameter] $ProxyUseDefaultCredentials ) if (-not (Get-Command -Name 'New-MgApplication' -ErrorAction SilentlyContinue)) { throw '[KritTcm] New-MgApplication not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'New-MgApplication' @PSBoundParameters } catch { Write-Error ('[KritTcm/New-KritTcmMgApplication] ' + 'New-MgApplication' + ' failed: ' + $_.Exception.Message) throw } } |