Skip to content

Deploy-FinOpsHub PowerShell Deployment Requires Azure Bicep in PATH #1185

Description

@AErmie

🐛 Problem

When attempting to deploy the FinOps Hub using PowerShell, an error is thrown if Azure Bicep is not in the PATH.

Error

 Cannot retrieve the dynamic parameters for the cmdlet. Cannot find Bicep. Please add Bicep to your PATH or visit https://aka.ms/bicep-install to install Bicep.

👣 Repro steps

  1. Run PowerShell v7
  2. Install module Az.Accounts
  3. Install module Az.Resources
  4. Install module FinOpsToolkit
  5. Run the Deploy-FinOpsHub PowerShell command

🤔 Expected

Deployment of the FinOps Hub should complete without error. If Azure Bicep is required to execute the PowerShell commands, it should be mentioned in the documentation.

📷 Screenshots

Image

Note

The screenshot shows that I'm trying to install v0.6 of the FinOps Toolkit, due to multiple issues with 0.7.

ℹ️ Additional context

Installed PowerShell Modules

PS C:\Users\adine> Get-Module -ListAvailable Az.Accounts

    Directory: C:\Users\adine\Documents\PowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     4.0.0                 Az.Accounts                         Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosave…}

PS C:\Users\adine> Get-Module -ListAvailable Az.Resources

    Directory: C:\Users\adine\Documents\PowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     7.7.0                 Az.Resources                        Core,Desk {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment…}

PS C:\Users\adine> Get-Module -ListAvailable FinOpsToolkit

    Directory: C:\Users\adine\Documents\PowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     0.6                   FinOpsToolkit                       Desk      {Add-FinOpsHubScope, Add-FinOpsServicePrincipal, Deploy-FinOpsHub, Get-FinOpsCostExport…}

🙋‍♀️ Ask for the community

We could use your help:

  1. Please vote this issue up (👍) to prioritize it.
  2. Leave comments to help us solidify the vision.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions