Skip to content

listenOn=Default(Value) value not exists; return empty array #56

@kaiaschulz

Description

@kaiaschulz

Hi,
a list for key vault-resources on the subscription-scope is responding with 2 values:

  1. The key vault
  2. An empty value object

Regarding to this, the AzAPICall is returning the value of the 1. key vault object, however the output is WARNING: [AzAPICall 1.4.1] DEBUGTASK: getKeyVault -> listenOn=Default(Value) value not exists; return empty array.

WARNING:   [AzAPICall 1.4.1] DEBUGTASK: getKeyVault -> unexpectedError: false
WARNING:   [AzAPICall 1.4.1] DEBUGTASK: getKeyVault -> apiStatusCode: '200' (OK)
WARNING:   [AzAPICall 1.4.1] DEBUGTASK: getKeyVault -> listenOn=Default(Value) value not exists; return empty array
WARNING:   [AzAPICall 1.4.1] DEBUGTASK: getKeyVault -> NextLink/skipToken/NextMarker: none

This is a bit confusing.

You should be able to reproduce it if you have a key vault-resource and using Content-listenOn property:

WARNING:   [AzAPICall 1.4.1] DEBUGTASK: getKeyVault -> unexpectedError: false
WARNING:   [AzAPICall 1.4.1] DEBUGTASK: getKeyVault -> apiStatusCode: '200' (OK)
WARNING:   [AzAPICall 1.4.1] DEBUGTASK: getKeyVault -> listenOn=Content (1)
WARNING:   [AzAPICall 1.4.1] DEBUGTASK: getKeyVault -> NextLink/skipToken/NextMarker: none

$getKeyVault

value
-----                                                                                                                                                                                                                                                                        
{@{id=/subscriptions/xxx/resourceGroups/yyy/providers/Microsoft.KeyVault/vaults/zzz; name=asdarw3rawdasd; type=Microsoft.KeyVault/vaults; location=northeuro…
{} 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions