AKS icon indicating copy to clipboard operation
AKS copied to clipboard

Add ability to unregister preview features

Open torumakabe opened this issue 7 years ago • 15 comments

What happened: After registration MultiAgentPoolPreview feature, unsupported tools such as Terraform fails. Also some features are disabled on Azure Portal. I would like to unregister the preview feature.

What you expected to happen: Although there is a note of caution about the risk of preview on the doc, the issue have a high impact because it is subscription-wide problem. I hope Azure provide preview unregistration option through CLI/Portal/etc.

How to reproduce it (as minimally and precisely as possible): Azure CLI/Portal do not provide unregistration feature, so I tried to do it with REST API with armclient, but it seems unsupported with regard to MultiAgentpoolPreview. Not sure about the other preview features.

$ armclient post /subscriptions/mysubscription/providers/Microsoft.Features/providers/Microsoft.ContainerService/features/MultiAgentpoolPreview/unregister?api-version=2015-12-01
{
  "error": {
    "code": "FeatureUnregistrationUnsupported",
    "message": "The feature 'MultiAgentpoolPreview' being unregistered must be an Application Owned Feature."
  }
}

Environment:

  • Kubernetes version (use kubectl version): 1.13.5
  • Others: Related issue https://github.com/Azure/azure-cli/issues/8941

torumakabe avatar May 20 '19 02:05 torumakabe

Currently we are working with the ARM team for the deregister work. It is not currently supported.

jnoller avatar May 21 '19 15:05 jnoller

@jnoller I got it. Thanks!

torumakabe avatar May 22 '19 00:05 torumakabe

Reopening as de-registration is still in plan

jnoller avatar May 22 '19 14:05 jnoller

@jnoller .. To be clear, is there absolutely no way today to un-register those preview features ? That would be a bummer!

kim0 avatar Jun 18 '19 21:06 kim0

Correct

jnoller avatar Jun 19 '19 15:06 jnoller

Would unregistering the ContainerService Provider and re-registering provide a workaround to this issue?

masonhuemmer avatar Jun 20 '19 22:06 masonhuemmer

Afaik not.

neumanndaniel avatar Jun 24 '19 14:06 neumanndaniel

We've spoken with the ARM team who has acknowledged this ask and is working towards an ETA. FYI @KrisBash

jluk avatar Aug 09 '19 04:08 jluk

Do we have an ETA on this?

fhryo-msft avatar Nov 20 '19 01:11 fhryo-msft

@KrisBash any ETA on this?

jluk avatar Dec 07 '19 00:12 jluk

Adding @ifeoluwaokunoren who has been delivering this to provide an update.

jluk avatar Mar 11 '20 15:03 jluk

@ifeoluwaokunoren any update on where this is? I see it is in 'public preview' but I'm not clear what is in public preview. I think this is the documentation for the REST api: https://docs.microsoft.com/en-us/rest/api/resources/features/unregister

I haven't see anything on azure cli support.

scottstout avatar Apr 02 '20 03:04 scottstout

The current estimate for ARM support of unregister in azure cli is planned for the month of May, ongoing.

jluk avatar May 01 '20 21:05 jluk

The open PR is here, tracking for S171 release on 6/23

https://github.com/Azure/azure-cli/pull/13487

jluk avatar Jun 05 '20 20:06 jluk

This has been released and is now supported from Azure CLI version 2.8.0. Closing as a result.

➜  ~ az feature -h
 
Group
    az feature : Manage resource provider features.
 
Commands:
    list       : List preview features.
    register   : Register a preview feature.
    show       : Gets the preview feature with the specified name.
  unregister : Unregister a preview feature.

jluk avatar Jun 23 '20 19:06 jluk