Azure / azure-service-operator

Azure Service Operator allows you to create Azure resources using kubectl
https://azure.github.io/azure-service-operator/
MIT License
776 stars 201 forks source link

Feature: support Microsoft.Network/serviceEndpointPolicies #4199

Open vronnG opened 3 months ago

vronnG commented 3 months ago

Support Microsoft.Network/serviceEndpointPolicies

asoctl import azure-resource /subscriptions/XXXXXXX/resourceGroups/rg-networking-xxxxxx-westus3/providers/Microsoft.Network/serviceEndpointPolicies/xxx-test --output aso.yaml
11:23:43 ERR Failed error="unable to determine GVK of resource: unable to determine resource type from ID /subscriptions/xxxxxxxxxx/resourceGroups/rrg-networking-xxxxxx-westus3/providers/Microsoft.Network/serviceEndpointPolicies/xxx-test" kind= name=xxx-test
theunrepentantgeek commented 1 month ago

Currently ASO supports Microsoft.Network/serviceEndpointPolicies as embedded details within a VirtualNetworksSubnet, but not as an independent resource.

We could possibly change this, but it would be a breaking change to existing ASO users with VirtualNetworksSubnet resources in their clusters.

You should be able to import them with asoctl by importing the VirtualNetworkSubnet containing the policy.