Skip to main content

Mfaduoconfig

Properties

NameTypeDescriptionNotes
MfaMethodStringMfa method name[optional]
EnabledBooleanIf MFA method is enabled.[optional] [default to $false]
VarHostStringThe server host name or IP address of the MFA provider.[optional]
AccessKeyStringThe secret key for authenticating requests to the MFA provider.[optional]
IdentityAttributeStringOptional. The name of the attribute for mapping IdentityNow identity to the MFA provider.[optional]
ConfigProperties[map[string]AnyType]https://learn.microsoft.com/en-us/powershell/scripting/lang-spec/chapter-04?view=powershell-7.4A map with additional config properties for the given MFA method - duo-web.[optional]

Examples

  • Prepare the resource
$Mfaduoconfig = Initialize-Mfaduoconfig  -MfaMethod duo-web `
-Enabled true `
-VarHost example.com `
-AccessKey qw123Y3QlA5UqocYpdU3rEkzrK2D497y `
-IdentityAttribute email `
-ConfigProperties {"skey":"qwERttyZx1CdlQye2Vwtbsjr3HKddy4BAiCXjc5x","ikey":"Q123WE45R6TY7890ZXCV"}
  • Convert the resource to JSON
$Mfaduoconfig | ConvertTo-JSON

[Back to top]