kitchen-azurerm
kitchen-azurerm copied to clipboard
kitchen-azurerm fails to parse $HOME/.azure/credentials file encoded with UTF with BOM
Version:
kitchen-azurerm (1.6.0)
Environment:
Chef Workstation version: 21.4.365 Chef Infra Client version: 16.12.3 Chef InSpec version: 4.29.3 Chef CLI version: 4.0.0 Chef Habitat version: 1.6.288 Test Kitchen version: 2.11.2 Cookstyle version: 7.10.0 Windows 10
Scenario:
I've called kitchen create
to have VM created in azure
Steps to Reproduce:
Change your $HOME/.azure/credentials files to have encoding set to UTF with BOM
Expected Result:
I've expected command kitchen create
to succeed
Actual Result:
kitchen create
command failed due to the inability to parse $HOME/.azure/credentials file
You can see in the screenshot that BOM is not ignored when line with subscriptionId is being interpreted and is seen as blank characters in the output.