kitchen-azurerm icon indicating copy to clipboard operation
kitchen-azurerm copied to clipboard

kitchen-azurerm fails to parse $HOME/.azure/credentials file encoded with UTF with BOM

Open grzegorz-wolszczak opened this issue 3 years ago • 0 comments

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

chef_kitchen_azure_driver_credentails_file_encoded_with_utf_with_bom_parsing_failure

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.

grzegorz-wolszczak avatar Aug 13 '21 10:08 grzegorz-wolszczak