mfa¶
whzbox mfa azure prints a current MFA code for Azure console login.
Syntax¶
Arguments¶
| Argument | Required | Values | Description |
|---|---|---|---|
provider |
Yes | azure |
Sandbox provider kind. |
Behavior¶
- Requires an unexpired Azure sandbox in the local cache.
- Ensures the Whizlabs session is valid and may refresh or prompt for login.
- Requests a new code from Whizlabs.
- Does not save the code to the state file.
- Rejects other providers.
At the Microsoft MFA prompt, select Use a verification code before you enter the generated code. The default Approve sign in request prompt uses Authenticator number matching and does not accept this code.
Output¶
The command writes only the MFA code and a newline to stdout. The code is valid for about 30 seconds. The global --json flag does not change this output.
Exit behavior¶
0on success1when the Azure cache entry is missing or expired2when authentication fails3when Whizlabs cannot generate the code4if a login prompt is shown and the user aborts it5if login is required without an interactive terminal