Update the members and exclusions relationships of a deploymentAudience.
Adding an azureADDevice to the members or exclusions collections of a deployment audience automatically creates a Microsoft Entra device object, if it doesn't already exist.
If the same updatableAsset gets included in the exclusions and members collections of a deploymentAudience, the deployment doesn't apply to that asset.
If all updatableAsset objects are the same type, you can also use the method updateAudienceById to update the deploymentAudience.
Update the members and exclusions relationships of a deploymentAudience.
Adding an azureADDevice to the members or exclusions collections of a deployment audience automatically creates a Microsoft Entra device object, if it doesn't already exist.
If the same updatableAsset gets included in the exclusions and members collections of a deploymentAudience, the deployment doesn't apply to that asset.
If all updatableAsset objects are the same type, you can also use the method updateAudienceById to update the deploymentAudience.
Examples
Example 1: Using the Update-MgBetaWindowsUpdatesDeploymentAudience Cmdlet
This example shows how to use the Update-MgBetaWindowsUpdatesDeploymentAudience Cmdlet.
To learn about permissions for this resource, see the permissions reference.
Parameters
-AddExclusions
To construct, see NOTES section for ADDEXCLUSIONS properties and create a hash table.
Runs the command in a mode that only reports what would happen without performing the actions.
Parameter properties
Type:
System.Management.Automation.SwitchParameter
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.
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.
ADDEXCLUSIONS <IMicrosoftGraphWindowsUpdatesUpdatableAsset[]>: .
[Id <String>]: The unique identifier for an entity.
Read-only.
ADDMEMBERS <IMicrosoftGraphWindowsUpdatesUpdatableAsset[]>: .
[Id <String>]: The unique identifier for an entity.
Read-only.
BODYPARAMETER <IPathsGxoqhAdminWindowsUpdatesDeploymentsDeploymentIdAudienceMicrosoftGraphWindowsupdatesUpdateaudiencePostRequestbodyContentApplicationJsonSchema>: .
[(Any) <Object>]: This indicates any property can be added to this object.
[AddExclusions <IMicrosoftGraphWindowsUpdatesUpdatableAsset[]>]:
[Id <String>]: The unique identifier for an entity.
Read-only.
[AddMembers <IMicrosoftGraphWindowsUpdatesUpdatableAsset[]>]:
[RemoveExclusions <IMicrosoftGraphWindowsUpdatesUpdatableAsset[]>]:
[RemoveMembers <IMicrosoftGraphWindowsUpdatesUpdatableAsset[]>]:
INPUTOBJECT <IWindowsUpdatesIdentity>: Identity Parameter
[ApplicableContentCatalogEntryId <String>]: The unique identifier of applicableContent
[ApplicableContentDeviceMatchDeviceId <String>]: The unique identifier of applicableContentDeviceMatch
[CatalogEntryId <String>]: The unique identifier of catalogEntry
[CatalogId <String>]: Usage: catalogID='{catalogID}'
[ComplianceChangeId <String>]: The unique identifier of complianceChange
[DaysInPast <Int32?>]: Usage: daysInPast={daysInPast}
[DeploymentId <String>]: The unique identifier of deployment
[EditionId <String>]: The unique identifier of edition
[KbNumber <Int32?>]: Usage: kbNumber={kbNumber}
[KnownIssueId <String>]: The unique identifier of knownIssue
[PolicyApprovalId <String>]: The unique identifier of policyApproval
[PolicyId <String>]: The unique identifier of policy
[ProductId <String>]: The unique identifier of product
[ProductRevisionId <String>]: The unique identifier of productRevision
[ResourceConnectionId <String>]: The unique identifier of resourceConnection
[RingId <String>]: The unique identifier of ring
[UpdatableAssetId <String>]: The unique identifier of updatableAsset
[UpdatePolicyId <String>]: The unique identifier of updatePolicy
REMOVEEXCLUSIONS <IMicrosoftGraphWindowsUpdatesUpdatableAsset[]>: .
[Id <String>]: The unique identifier for an entity.
Read-only.
REMOVEMEMBERS <IMicrosoftGraphWindowsUpdatesUpdatableAsset[]>: .
[Id <String>]: The unique identifier for an entity.
Read-only.