def METHOD_NAME(path):
    print('Starting Azure metadata file update')
    config = {}
    os.system(AZU_AUTH_CMD)
    with open(path) as config_file:
        config = yaml.load(config_file, yaml.SafeLoader)
    try:
        x86_image = get_azu_image_for_cmd(AZU_X86_CMD)
        if x86_image is None:
            print('Failed to fetch latest x86 image')
        arm_image = get_azu_image_for_cmd(AZU_ARM_CMD)
        if arm_image is None:
            print('Failed to get latest arm image')
        for region in config['regions']:
            if arm_image is not None:
                config['regions'][region]['arm_image'] = arm_image
            if x86_image is not None:
                config['regions'][region]['image'] = x86_image
        print('Azure Metadata file updated successfully')
    except Exception as e:
        print('Failed to update azure metadata file')
        print(e)
    finally:
        with open(path, "w") as file:
            file.write(YB_LISCENCE)
            file.write(yaml.dump(config, Dumper=yaml.SafeDumper))