You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the Remove-FinOpsHub PowerShell command, you are prompted with the following:
PS C:\Users\adine>Remove-FinOpsHub-Name "finops-hub-forge"
Confirm
Are you sure you want to perform this action?
Performing the operation "DeleteFinOpsHub" on target "finops-hub-forge".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A
However, even if you enter "A" for "Yes to all", it ignores this, and prompts for confirmation for every single resource.
👣 Repro steps
Install required PowerShell modules
Deploy a FinOps Hub resource
Run Remove-FinOpsHub -Name "HUB_NAME" and enter A on the initial prompt
🤔 Expected
The expectation is that we will not be prompted for every single resource deletion, if we've indicated "Yes to All"
📷 Screenshots
Note
Ignore the error about not being able to delete the NSG because it's in use. Although, ideally the Remove-FinOpsHub command should identify this, and de-associate it, so that it can be deleted as part of Hub removal.
ℹ️ 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…}
🐛 Problem
When running the
Remove-FinOpsHubPowerShell command, you are prompted with the following:However, even if you enter "A" for "Yes to all", it ignores this, and prompts for confirmation for every single resource.
👣 Repro steps
Remove-FinOpsHub -Name "HUB_NAME"and enterAon the initial prompt🤔 Expected
The expectation is that we will not be prompted for every single resource deletion, if we've indicated "Yes to All"
📷 Screenshots
Note
Ignore the error about not being able to delete the NSG because it's in use. Although, ideally the
Remove-FinOpsHubcommand should identify this, and de-associate it, so that it can be deleted as part of Hub removal.ℹ️ Additional context
Installed PowerShell Modules
🙋♀️ Ask for the community
We could use your help: