MachineAccountBulkUpdateRequest
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Ids | []String | IDs of the machine accounts to update. Provide between 1 and 100 IDs. | [required] |
| JsonPatch | []JsonPatchOperation | JSON Patch operations to apply to every machine account in ids. Each operation must target one of these top-level fields: description, subtype, environment, machineIdentity, ownerIdentity, owners, or manuallyEdited. owners is accepted only when expanded machine account ownership is enabled for the tenant, and may only be replaced at /owners, /owners/primary, or /owners/secondary. Do not patch ownerIdentity and owners in the same request. | [required] |
Examples
- Prepare the resource
$MachineAccountBulkUpdateRequest = Initialize-MachineAccountBulkUpdateRequest -Ids ["ef38f94347e94562b5bb8424a56397d8","2c9180835d2e5168015d32f890ca1581"] `
-JsonPatch [{"op":"replace","path":"/environment","value":"PROD"}]
- Convert the resource to JSON
$MachineAccountBulkUpdateRequest | ConvertTo-JSON