Skip to content

json: cannot unmarshal object into Go struct field ServiceEndpointPolicyPropertiesFormat.contextualServiceEndpointPolicies of type string #519

Description

getting this error on some resources.
Could you please help/advise on how to resolve this?

current versions:

aztfexport version v0.14.1(f492475)  
Terraform v1.8.2

Pasting below log snippet

2024-04-24T15:03:40.912+0200 [ERROR] aztfexport: Importing azurerm_subnet_service_endpoint_storage_policy.res-67: exit status 1

Error: retrieving Subnet Service Endpoint Storage Policy "_e41f87a2_mi_REDACTED" (Resource Group "rg-redacted-qa"): network.ServiceEndpointPoliciesClient#Get: Failure responding to request: StatusCode=200 -- Original Error: Error occurred unmarshalling JSON - Error = 'json: cannot unmarshal object into Go struct field ServiceEndpointPolicyPropertiesFormat.contextualServiceEndpointPolicies of type string' JSON = '{
  "name": "_e41f87a2_mi_REDACTED",
  "id": "/subscriptions/REDACTED/resourceGroups/rg-redacted-qa/providers/Microsoft.Network/serviceEndpointPolicies/_e41f87a2_mi_REDACTED",
  "etag": "W/\"83bfed89-30f4-redacted\"",
  "type": "Microsoft.Network/serviceEndpointPolicies",
  "location": "norwayeast",
  "properties": {
    "provisioningState": "Succeeded",
    "resourceGuid": "4f9befbd-REDACTED",
    "serviceAlias": "/services/Azure/ManagedInstance",
    "serviceEndpointPolicyDefinitions": [],
    "contextualServiceEndpointPolicies": [
      {
        "id": "/subscriptions/REDACTED/resourceGroups/rg-redacted-qa/providers/Microsoft.Network/virtualNetworks/vnet-redactedqa/subnets/managedinstance/contextualServiceEndpointPolicies/ManagedInstanceContextualPolicy"
      }
    ]
  },
  "kind": "Internal"
}' 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions