Add-AzureADMSLifecyclePolicyGroup
Adds a group to a lifecycle policy
Syntax
Default (Default)
Add-AzureADMSLifecyclePolicyGroup
-Id <String>
-GroupId <String>
[<CommonParameters>]
Description
The Add-AzureADMSLifecyclePolicyGroup cmdlet adds a group to a lifecycle policy in Azure Active Directory
Examples
Example 1
PS C:\>Add-AzureADMSLifecyclePolicyGroup -Id "b4c908b0-3595-4add-91b4-c5400b31b57b" -groupId "cffd97bd-6b91-4c4e-b553-6918a320211c"
This command adds a group to the lifecycle policy.
Parameters
-GroupId
Specifies the ID of a group in Azure Active Directory.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Id
Specifies the ID of the lifecycle policy object in Azure Active Directory.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
String
Outputs
Object
Notes
See the migration guide for Add-AzureADMSLifecyclePolicyGroup to the Microsoft Graph PowerShell.