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

The term 'Add-LogMessage' is not recognized as a name of a cmdlet #1680

Closed
5 tasks done
cptanalatriste opened this issue Dec 1, 2023 · 1 comment · Fixed by #1681
Closed
5 tasks done

The term 'Add-LogMessage' is not recognized as a name of a cmdlet #1680

cptanalatriste opened this issue Dec 1, 2023 · 1 comment · Fixed by #1681
Labels
bug Problem when deploying a Data Safe Haven.

Comments

@cptanalatriste
Copy link
Contributor

cptanalatriste commented Dec 1, 2023

✅ Checklist

  • I have searched open and closed issues for duplicates.
  • This is a problem observed when deploying a Data Safe Haven.
  • I can reproduce this with the latest version.
  • I have read through the documentation.
  • This isn't an open-ended question (open a discussion if it is).

💻 System information

  • Operating System: MacOS
  • Data Safe Haven version: v4.1.0

🌵 Powershell module versions

PS /Users/cgavidia-calderon/Documents/GitHub/data-safe-haven/deployment> ./CheckRequirements.ps1                                                                                       
2023-12-01 17:11:15 [SUCCESS]: [✔] Powershell version: 7.3.6
2023-12-01 17:11:15 [SUCCESS]: [✔] Poshstache module version: 0.1.10
2023-12-01 17:11:15 [SUCCESS]: [✔] Microsoft.Graph.Identity.DirectoryManagement module version: 1.21.0
2023-12-01 17:11:15 [SUCCESS]: [✔] Az.PrivateDns module version: 1.0.3
2023-12-01 17:11:15 [SUCCESS]: [✔] Az.Network module version: 5.3.0
2023-12-01 17:11:15 [SUCCESS]: [✔] Az.Compute module version: 5.3.0
2023-12-01 17:11:15 [SUCCESS]: [✔] Az.Resources module version: 6.5.1
2023-12-01 17:11:15 [SUCCESS]: [✔] Az.OperationalInsights module version: 3.1.0
2023-12-01 17:11:15 [SUCCESS]: [✔] Powershell-Yaml module version: 0.4.2
2023-12-01 17:11:15 [SUCCESS]: [✔] Microsoft.Graph.Applications module version: 1.21.0
2023-12-01 17:11:15 [SUCCESS]: [✔] Microsoft.Graph.Users module version: 1.21.0
2023-12-01 17:11:15 [SUCCESS]: [✔] Az.Automation module version: 1.9.0
2023-12-01 17:11:15 [SUCCESS]: [✔] Az.RecoveryServices module version: 5.4.1
2023-12-01 17:11:15 [SUCCESS]: [✔] Microsoft.Graph.Authentication module version: 1.21.0
2023-12-01 17:11:15 [SUCCESS]: [✔] Az.Dns module version: 1.1.2
2023-12-01 17:11:15 [SUCCESS]: [✔] Az.Monitor module version: 4.2.0
2023-12-01 17:11:15 [SUCCESS]: [✔] Az.KeyVault module version: 4.9.1
2023-12-01 17:11:15 [SUCCESS]: [✔] Az.DataProtection module version: 0.4.0
2023-12-01 17:11:15 [SUCCESS]: [✔] Az.Storage module version: 4.7.0
2023-12-01 17:11:16 [SUCCESS]: [✔] Az.Accounts module version: 2.13.0
2023-12-01 17:11:16 [SUCCESS]: [✔] Az.MonitoringSolutions module version: 0.1.0

🚫 Describe the problem

When running ./Update_SRE_Guacamole_Dashboard.ps1, I see the error on the title. Although the command does what's expected from it. Here's the output:

PS /Users/cgavidia-calderon/Documents/GitHub/data-safe-haven/deployment/secure_research_environment/setup> ./Update_SRE_Guacamole_Dashboard.ps1

cmdlet Update_SRE_Guacamole_Dashboard.ps1 at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
shmId: prod4
sreId: dsgjmat
Add-LogMessage: /Users/cgavidia-calderon/Documents/GitHub/data-safe-haven/deployment/secure_research_environment/setup/Update_SRE_Guacamole_Dashboard.ps1:29:1
Line |
  29 |  Add-LogMessage -Level Info "Retrieving list of SRD VMs..."
     |  ~~~~~~~~~~~~~~
     | The term 'Add-LogMessage' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included,
     | verify that the path is correct and try again.
Add-LogMessage: /Users/cgavidia-calderon/Documents/GitHub/data-safe-haven/deployment/secure_research_environment/setup/Update_SRE_Guacamole_Dashboard.ps1:56:1
Line |
  56 |  Add-LogMessage -Level Info "Updating Guacamole with $(@($VMs).Count)  …
     |  ~~~~~~~~~~~~~~
     | The term 'Add-LogMessage' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included,
     | verify that the path is correct and try again.
2023-12-01 17:08:03 [SUCCESS]: [✔] Remote script execution succeeded

Code          : ProvisioningState/succeeded
Level         : Info
DisplayStatus : Provisioning succeeded
Message       : Enable succeeded: 
                [stdout]
                Running LDAP synchronisation...
                Updating database...
                Finished database synchronisation
                
                [stderr]
                
Time          : 

🌳 Log messages

NA

♻️ To reproduce

Run the ./Update_SRE_Guacamole_Dashboard.ps1 command.

@cptanalatriste cptanalatriste added the bug Problem when deploying a Data Safe Haven. label Dec 1, 2023
@cptanalatriste
Copy link
Contributor Author

cc. @craddm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Problem when deploying a Data Safe Haven.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant