https://pulumi.com logo
#typescript
Title
# typescript
e

echoing-activity-32278

12/16/2021, 7:33 AM
Hi. How can I enable azure features? I tried this:
Copy code
const subscriptionFeatureRegistration =
  new azure.features.SubscriptionFeatureRegistration(
    `${clusterName}-features`,
    {
      featureName: "EnablePodIdentityPreview",
      properties: {state: "Registered"},
      providerNamespace: "Microsoft.ContainerService",
    }
  );
But it erred with:
Copy code
azure-native:features:SubscriptionFeatureRegistration (example-app2-qa-features):
    error: cannot create already existing resource '/subscriptions/xxxxxxyyyyyyzzzzzzz/providers/Microsoft.Features/featureProviders/Microsoft.ContainerService/subscriptionFeatureRegistrations/EnablePodIdentityPreview'