Share via


Update-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration

Update the properties of a plannerTaskConfiguration object.

Syntax

UpdateExpanded (Default)

Update-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration
    -BusinessScenarioId <String>
    [-ResponseHeadersVariable <String>]
    [-AdditionalProperties <Hashtable>]
    [-EditPolicy <IMicrosoftGraphPlannerTaskPolicy>]
    [-Id <String>]
    [-Headers <IDictionary>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Update

Update-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration
    -BusinessScenarioId <String>
    -BodyParameter <IMicrosoftGraphPlannerTaskConfiguration>
    [-ResponseHeadersVariable <String>]
    [-Headers <IDictionary>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

UpdateViaIdentityExpanded

Update-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration
    -InputObject <IBusinessScenarioIdentity>
    [-ResponseHeadersVariable <String>]
    [-AdditionalProperties <Hashtable>]
    [-EditPolicy <IMicrosoftGraphPlannerTaskPolicy>]
    [-Id <String>]
    [-Headers <IDictionary>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

UpdateViaIdentity

Update-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration
    -InputObject <IBusinessScenarioIdentity>
    -BodyParameter <IMicrosoftGraphPlannerTaskConfiguration>
    [-ResponseHeadersVariable <String>]
    [-Headers <IDictionary>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Update the properties of a plannerTaskConfiguration object.

Permissions

Permission type Permissions (from least to most privileged)
Delegated (work or school account) BusinessScenarioConfig.ReadWrite.OwnedBy, BusinessScenarioConfig.ReadWrite.All,
Delegated (personal Microsoft account) Not supported
Application BusinessScenarioConfig.ReadWrite.OwnedBy,

Examples

Example 1: Code snippet


Import-Module Microsoft.Graph.Beta.BusinessScenario

$params = @{
	editPolicy = @{
		rules = @(
			@{
				userType = @{
					"@odata.type" = "#microsoft.graph.plannerRelationshipBasedUserType"
					selectionKind = "relationship"
					role = "defaultRules"
				}
				defaultRule = "block"
				propertyRule = @{
					ruleKind = "taskRule"
					references = @{
						defaultRules = @(
						"allow"
					)
					overrides = @(
					)
				}
				checkLists = @{
					defaultRules = @(
					"allow"
				)
				overrides = @(
				)
			}
			assignments = @{
				defaultRules = @(
				"allow"
			)
			overrides = @(
				@{
					name = "userCreated"
					rules = @(
					"allow"
				)
			}
			@{
				name = "applicationCreated"
				rules = @(
				"allow"
			)
		}
	)
}
appliedCategories = @{
	defaultRules = @(
	"allow"
)
overrides = @(
)
}
}
}
)
}
}

Update-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration -BusinessScenarioId $businessScenarioId -BodyParameter $params

This example shows how to use the Update-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration Cmdlet.

Parameters

-AdditionalProperties

Additional Parameters

Parameter properties

Type:Hashtable
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
UpdateViaIdentityExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-BodyParameter

plannerTaskConfiguration To construct, see NOTES section for BODYPARAMETER properties and create a hash table.

Parameter properties

Type:IMicrosoftGraphPlannerTaskConfiguration
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Update
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False
UpdateViaIdentity
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-BusinessScenarioId

The unique identifier of businessScenario

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Update
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EditPolicy

plannerTaskPolicy To construct, see NOTES section for EDITPOLICY properties and create a hash table.

Parameter properties

Type:IMicrosoftGraphPlannerTaskPolicy
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
UpdateViaIdentityExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Headers

Optional headers that will be added to the request.

Parameter properties

Type:IDictionary
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Id

The unique identifier for an entity. Read-only.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
UpdateViaIdentityExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

Parameter properties

Type:IBusinessScenarioIdentity
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateViaIdentityExpanded
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False
UpdateViaIdentity
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-ResponseHeadersVariable

Optional Response Headers Variable.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:RHV

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
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

Microsoft.Graph.Beta.PowerShell.Models.IBusinessScenarioIdentity

Microsoft.Graph.Beta.PowerShell.Models.IMicrosoftGraphPlannerTaskConfiguration

System.Collections.IDictionary

Outputs

Microsoft.Graph.Beta.PowerShell.Models.IMicrosoftGraphPlannerTaskConfiguration

Notes

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

BODYPARAMETER <IMicrosoftGraphPlannerTaskConfiguration>: plannerTaskConfiguration

  • [(Any) <Object>]: This indicates any property can be added to this object.
  • [Id <String>]: The unique identifier for an entity. Read-only.
  • [EditPolicy <IMicrosoftGraphPlannerTaskPolicy>]: plannerTaskPolicy
    • [(Any) <Object>]: This indicates any property can be added to this object.
    • [Rules <IMicrosoftGraphPlannerTaskRoleBasedRule- []>]: The rules that should be enforced on the tasks when they're being changed outside of the scenario, based on the role of the caller.
      • [DefaultRule <String>]: Default rule that applies when a property or action-specific rule is not provided. Possible values are: Allow, Block
      • [PropertyRule <IMicrosoftGraphPlannerTaskPropertyRule>]: plannerTaskPropertyRule
        • [(Any) <Object>]: This indicates any property can be added to this object.
        • [RuleKind <String>]: plannerRuleKind
        • [AppliedCategories <IMicrosoftGraphPlannerFieldRules>]: plannerFieldRules
          • [(Any) <Object>]: This indicates any property can be added to this object.
          • [DefaultRules <String- []>]: The default rules that apply if no override matches to the current data.
          • [Overrides <IMicrosoftGraphPlannerRuleOverride- []>]: Overrides that specify different rules for specific data associated with the field.
            • [Name <String>]: Name of the override. Allowed override values will be dependent on the property affected by the rule.
            • [Rules <String- []>]: Overridden rules. These are used as rules for the override instead of the default rules.
        • [ApprovalAttachment <IMicrosoftGraphPlannerFieldRules>]: plannerFieldRules
        • [Assignments <IMicrosoftGraphPlannerFieldRules>]: plannerFieldRules
        • [CheckLists <IMicrosoftGraphPlannerFieldRules>]: plannerFieldRules
        • [CompletionRequirements <String- []>]: Rules and restrictions for completion requirements of the task. Accepted values are allow, add, remove, edit, and block.
        • [Delete <String- []>]: Rules and restrictions for deleting the task. Accepted values are allow and block.
        • [DueDate <String- []>]: Rules and restrictions for changing the due date of the task. Accepted values are allow and block.
        • [Forms <IMicrosoftGraphPlannerFieldRules>]: plannerFieldRules
        • [Move <String- []>]: Rules and restrictions for moving the task between buckets or plans. Accepted values are allow, moveBetweenPlans, moveBetweenBuckets, and block.
        • [Notes <String- []>]: Rules and restrictions for changing the notes of the task. Accepted values are allow and block.
        • [Order <String- []>]: Rules and restrictions for changing the order of the task. Accepted values are allow and block.
        • [PercentComplete <String- []>]: Rules and restrictions for changing the completion percentage of the task. Accepted values are allow, setToComplete, overrideRequirements, setToNotStarted, setToInProgress, and block.
        • [PreviewType <String- []>]: Rules and restrictions for changing the preview type of the task. Accepted values are allow and block.
        • [Priority <String- []>]: Rules and restrictions for changing the priority of the task. Accepted values are allow and block.
        • [References <IMicrosoftGraphPlannerFieldRules>]: plannerFieldRules
        • [StartDate <String- []>]: Rules and restrictions for changing the start date of the task. Accepted values are allow and block.
        • [Title <String- []>]: Rules and restrictions for changing the title of the task. Accepted values are allow and block.
      • [Role <IMicrosoftGraphPlannerTaskConfigurationRoleBase>]: plannerTaskConfigurationRoleBase
        • [(Any) <Object>]: This indicates any property can be added to this object.
        • [RoleKind <String>]: plannerUserRoleKind

EDITPOLICY <IMicrosoftGraphPlannerTaskPolicy>: plannerTaskPolicy

  • [(Any) <Object>]: This indicates any property can be added to this object.
  • [Rules <IMicrosoftGraphPlannerTaskRoleBasedRule- []>]: The rules that should be enforced on the tasks when they're being changed outside of the scenario, based on the role of the caller.
    • [DefaultRule <String>]: Default rule that applies when a property or action-specific rule is not provided. Possible values are: Allow, Block
    • [PropertyRule <IMicrosoftGraphPlannerTaskPropertyRule>]: plannerTaskPropertyRule
      • [(Any) <Object>]: This indicates any property can be added to this object.
      • [RuleKind <String>]: plannerRuleKind
      • [AppliedCategories <IMicrosoftGraphPlannerFieldRules>]: plannerFieldRules
        • [(Any) <Object>]: This indicates any property can be added to this object.
        • [DefaultRules <String- []>]: The default rules that apply if no override matches to the current data.
        • [Overrides <IMicrosoftGraphPlannerRuleOverride- []>]: Overrides that specify different rules for specific data associated with the field.
          • [Name <String>]: Name of the override. Allowed override values will be dependent on the property affected by the rule.
          • [Rules <String- []>]: Overridden rules. These are used as rules for the override instead of the default rules.
      • [ApprovalAttachment <IMicrosoftGraphPlannerFieldRules>]: plannerFieldRules
      • [Assignments <IMicrosoftGraphPlannerFieldRules>]: plannerFieldRules
      • [CheckLists <IMicrosoftGraphPlannerFieldRules>]: plannerFieldRules
      • [CompletionRequirements <String- []>]: Rules and restrictions for completion requirements of the task. Accepted values are allow, add, remove, edit, and block.
      • [Delete <String- []>]: Rules and restrictions for deleting the task. Accepted values are allow and block.
      • [DueDate <String- []>]: Rules and restrictions for changing the due date of the task. Accepted values are allow and block.
      • [Forms <IMicrosoftGraphPlannerFieldRules>]: plannerFieldRules
      • [Move <String- []>]: Rules and restrictions for moving the task between buckets or plans. Accepted values are allow, moveBetweenPlans, moveBetweenBuckets, and block.
      • [Notes <String- []>]: Rules and restrictions for changing the notes of the task. Accepted values are allow and block.
      • [Order <String- []>]: Rules and restrictions for changing the order of the task. Accepted values are allow and block.
      • [PercentComplete <String- []>]: Rules and restrictions for changing the completion percentage of the task. Accepted values are allow, setToComplete, overrideRequirements, setToNotStarted, setToInProgress, and block.
      • [PreviewType <String- []>]: Rules and restrictions for changing the preview type of the task. Accepted values are allow and block.
      • [Priority <String- []>]: Rules and restrictions for changing the priority of the task. Accepted values are allow and block.
      • [References <IMicrosoftGraphPlannerFieldRules>]: plannerFieldRules
      • [StartDate <String- []>]: Rules and restrictions for changing the start date of the task. Accepted values are allow and block.
      • [Title <String- []>]: Rules and restrictions for changing the title of the task. Accepted values are allow and block.
    • [Role <IMicrosoftGraphPlannerTaskConfigurationRoleBase>]: plannerTaskConfigurationRoleBase
      • [(Any) <Object>]: This indicates any property can be added to this object.
      • [RoleKind <String>]: plannerUserRoleKind

INPUTOBJECT <IBusinessScenarioIdentity>: Identity Parameter

  • [BusinessScenarioId <String>]: The unique identifier of businessScenario
  • [BusinessScenarioTaskId <String>]: The unique identifier of businessScenarioTask
  • [PlannerPlanConfigurationLocalizationId <String>]: The unique identifier of plannerPlanConfigurationLocalization
  • [UniqueName <String>]: Alternate key of businessScenario