Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update-AzStorageAccountADObjectPassword: Exception calling "ShouldProcess" with "3" argument(s): "Object reference not set to an instance of an object." #152

Open
maddewac opened this issue Jul 14, 2023 · 2 comments

Comments

@maddewac
Copy link

Using v0.2.7
Running in PowerShell 7.3.6

Join-AzStorageAccountForAuth `
    -ResourceGroupName $resourceGroupName `
    -StorageAccountName $storageAccountName `
    -Domain $domain  `
    -DomainAccountType "ComputerAccount"  `
    -OrganizationalUnitDistinguishedName $ouDistinguishedName `
    -OverwriteExistingADObject `
    -EncryptionType "AES256" `
    -SamAccountName $samAccountName `
    -Verbose `
    -ErrorAction Stop
Update-AzStorageAccountADObjectPassword: Exception calling "ShouldProcess" with "3" argument(s): "Object reference not set to an instance of an object."
    + CategoryInfo          : NotSpecified: (Update-A...an object.":String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
    + PSComputerName        : localhost
@a8ree
Copy link

a8ree commented Jul 18, 2023

I'm getting something similar when trying to execute this via a pipeline

16:00:38 Info | System.Management.Automation.MethodInvocationException: Exception calling "ShouldProcess" with "3" argument(s): "Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available." ---> System.Management.Automation.PSInvalidOperationException: Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available.
16:00:38 Info | at Microsoft.PowerShell.ConsoleHostUserInterface.HandleThrowOnReadAndPrompt()
16:00:38 Info | at Microsoft.PowerShell.ConsoleHostUserInterface.PromptForChoice(String caption, String message, Collection`1 choices, Int32 defaultChoice)

I've noticed that a dialogue is shown when run interactively

@madde-g are you running interactively???

I'm not sure how I can get this to automatically accept

image

@maddewac
Copy link
Author

@a8ree I am not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants