SYNOPSIS
Sets the status of a registered application in Microsoft Graph by setting its ‘isDisabled’ property.SYNTAX
ByApplicationID
ByDisplayName
DESCRIPTION
This function takes an Application ID or DisplayName as input and enables or disables the registered application by using Invoke-MgGraphRequest to set isDisabled to true or false/null.EXAMPLES
EXAMPLE 1
EXAMPLE 2
PARAMETERS
-ApplicationID
The unique identifier of the registered application to modify.-DisplayName
The display name of the registered application to modify.-Status
The status to set for the registered application. Valid values are ‘Enabled’ or ‘Disabled’.-GenerateCmdlets
If specified, the function will generate the cmdlets and save them to a file instead of executing them.CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.INPUTS
OUTPUTS
NOTES
To modify a service principal/enterprise app, use theSet-MgEnterpriseAppStatus function instead.