pulumi-azure: Cannot register providers: Microsoft.TimeSeriesInsights

Describe what happened

Since yesterday we have been having issues with all of our pipelines throwing the error

Cannot register providers: Microsoft.TimeSeriesInsights

Seems its been deprecated and removed by Azure, Similar issue can be viewed over on the Terraform issues https://github.com/hashicorp/terraform-provider-azurerm/issues/27466

We have tried upgrading Pulumi Azure to the latest version which should use mirror the fix seen on the Terraform issue by using the Azure Resource provider >= v3.90, however it does not fix the problem for us, it still attempts to register Microsoft.TimeSeriesInsights

Sample program

Any kind of pulumi preview/refresh/update against a pulumi stack using azurerm resource provider <= v3.89 will throw the error

Log output

Original Error: Cannot register providers: Microsoft.TimeSeriesInsights. Errors were: Cannot register provider Microsoft.TimeSeriesInsights with Azure Resource Manager: unexpected status 400 with error: DisallowedProvider: The operation is not permitted for namespace ‘Microsoft.TimeSeriesInsights’. List of permitted provider namespaces is xxxxxxx

Affected Resource(s)

Provider Microsoft.TimeSeriesInsights

Output of pulumi about

CLI Version 3.76.0 Go Version go1.20.6 Go Compiler gc

Plugins NAME VERSION azure 6.0.0 azuread 5.53.4 kubernetes 4.18.1 nodejs unknown random 4.16.5

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you’ve opened one already).

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 16 (8 by maintainers)

Most upvoted comments

Here’s a complete sequence of commands that I just tried out. To start with, since it’s not possible anymore to create a new project on 5.64, I created a minimal project with one resource group on 5.65. Then, I hand-edited the stack, replacing all occurrences of 5.65 and 5_65 with 5.64/5_64.

Then:

> yarn add @pulumi/azure@5.64.0
[...]
info All dependencies
└─ @pulumi/azure@5.64.0
✨  Done in 4.33s.


> pulumi up -s dev
Previewing update (dev):
     Type                         Name                    Plan     Info
     pulumi:pulumi:Stack          azure-2439-upgrade-dev
     └─ azure:core:ResourceGroup  resourceGroup                    1 error

Diagnostics:
  azure:core:ResourceGroup (resourceGroup):
    error: 1 error occurred:
    	* Error ensuring Resource Providers are registered.
  [...]
    Original Error: Cannot register providers: Microsoft.TimeSeriesInsights. [...]


> pulumi stack export
{
    "version": 3,
    "deployment": {
        [...]
        "resources": [
            {
                "urn": "urn:pulumi:dev::azure-2439-upgrade::pulumi:providers:azure::default_5_64_0",
                "custom": true,
                "id": "104e1cbe-e119-488b-96fc-bd7327e93bc7",
                "type": "pulumi:providers:azure",
                "inputs": {
                    "__internal": {},
                    "version": "5.64.0"
                },
                "outputs": {
                    "version": "5.64.0"
                },
                "created": "2024-09-24T15:47:53.337195Z",
                "modified": "2024-09-24T15:47:53.337195Z"
            },
            [...]
        ]
    }
}


> yarn add @pulumi/azure@5.65.0
[...]
info All dependencies
└─ @pulumi/azure@5.65.0
✨  Done in 1.41s.


> pulumi up -s dev
Previewing update (dev):
     Type                 Name                    Plan
     pulumi:pulumi:Stack  azure-2439-upgrade-dev

Resources:
    2 unchanged

Do you want to perform this update? yes
Updating (dev):
     Type                 Name                    Status
     pulumi:pulumi:Stack  azure-2439-upgrade-dev

Resources:
    2 unchanged

Duration: 8s


> pulumi stack export
{
    "version": 3,
    "deployment": {
        [...]
        "resources": [
            {
                "urn": "urn:pulumi:dev::azure-2439-upgrade::pulumi:providers:azure::default_5_65_0",
                "custom": true,
                "id": "0f9a7296-782a-4d32-9ec9-8537b940fb2b",
                "type": "pulumi:providers:azure",
                "inputs": {
                    "__internal": {},
                    "version": "5.65.0"
                },
                "outputs": {
                    "version": "5.65.0"
                },
                "created": "2024-09-24T15:53:58.537993Z",
                "modified": "2024-09-24T15:53:58.537993Z"
            },
            [...]
       ]
    }
}

@amsreinhardt Your Redis error looks incomplete? What is the command that you are running? We are fairly sure that this error comes only from old provider versions - what you see is likely that the old provider version is still executed from resources that are in your state file. You either need to upgrade them with a pulumi up command without refresh or delete operations, or edit your state file as explained above.