cloudforet-io / plugin-azure-inven-collector

Plugins for MS Azure Cloud Services
Apache License 2.0
8 stars 8 forks source link

Application Gateway error with assigned managed identity #73

Closed ImMin5 closed 1 year ago

ImMin5 commented 1 year ago

Description

Occur error when collecting Application Gateways if user assigned managed identity to application gateway.

I think this is problem of modeling.

[list_instances] /subscriptions/4********-*****-*****-*****-*************93/resourceGroups/azure-rg/providers/Microsoft.Network/applicationGateways/app-gateway-01 {"identity": {"user_assigned_identities": ["Couldn't interpret '{'/subscriptions/4********-*****-*****-*****-*************93/resourcegroups/azure-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managed-identity-01: <azure.mgmt.network.models._models.Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties object at 0x7f0587861eb0>}' as string."]}}
ImMin5 commented 1 year ago

I have successfully reproduced the error with this documentation. https://learn.microsoft.com/en-us/cli/azure/network/application-gateway/identity?view=azure-cli-latest&tryIt=true&source=docs#code-try-1