Skip to main content

Machineaccountcreaterequestinput

Properties

NameTypeDescriptionNotes
SubtypeIdStringSubtype ID for which machine account create is enabled and user have the entitlement to create the machine account.[required]
FormIdStringForm ID selected by user for the machine account create request.[optional]
OwnerIdentityIdStringOwner Identity ID. This identity will be assigned as an owner of the created machine account.[required]
MachineIdentityIdStringMachine identity to correlate with the created machine account. If not provided, a new machine identity will be created.[optional]
EnvironmentStringEnvironment type to use for the machine account.[optional]
DescriptionStringDescription for the machine account.[optional]
UserInput[SystemCollectionsHashtable]https://learn.microsoft.com/en-us/dotnet/api/system.collections.hashtable?view=net-9.0Fields of the form linked to the subtype in approval settings.[optional]
EntitlementIds[]StringList of entitlement IDs to provision for created machine account.[optional]

Examples

  • Prepare the resource
$Machineaccountcreaterequestinput = Initialize-Machineaccountcreaterequestinput  -SubtypeId 6d28b7c1-620c-49c6-b6d5-cbf81eb4b5fa `
-FormId f5dd23fe-3414-42b7-bb1c-869400ad7a10 `
-OwnerIdentityId 18104e7e499b4e23882d6323344ab6bc `
-MachineIdentityId 6d28b7c1-620c-49c6-b6d5-cbf81eb4b5fa `
-Environment Dev `
-Description Requesting machine account for tracking the inventory. `
-UserInput {"target":"AD Source","description":"Inventory tracking"} `
-EntitlementIds ["6d28b7c1620c49c6b6d5cbf81eb4b5fa","2c91808a7624751a01762f19d67c220e"]
  • Convert the resource to JSON
$Machineaccountcreaterequestinput | ConvertTo-JSON

[Back to top]