This message was deleted.
# azure
s
This message was deleted.
o
I use typescript and the following dependencies:
Copy code
"@pulumi/azure": "^3.0.0",
"@pulumi/azure-nextgen": "^0.2.3",
it looks like
azure-nextgen
picks up version from
azure
package
it's
"version": "3.12.1"
in the package-lock.json
b
can you remove your
node_modules
and
package-lock.json
and try again?
o
tried that. it changed the version in the error 😀:
Copy code
error: no resource plugin 'azure-nextgen-v3.28.0'
t
This is odd. I did use both providers side-by-side but did not get issues. Any chance you could try to repro this in a new project that you could then share?
o
reproduced:
Copy code
import * as azure from "@pulumi/azure";
import * as storage from "@pulumi/azure-nextgen/storage/latest";

const group = new azure.core.ResourceGroup(
    "mygroup",
    {
        name: "rg",
        location: "SoutheastAsia"
    });

const sharedArgs = {
    resourceGroupName: group.name,
    location: group.location,
};
const sharedOptions = { parent: group }; // Shared opts breaks things

const storageAccount1 = new azure.storage.Account(
    "mystorage1",
    {
        ...sharedArgs,
        accountReplicationType: "LRS",
        accountTier: "Standard",
    },
    sharedOptions);

const storageAccount2 = new storage.StorageAccount(
    "mystorage2",
    {
        ...sharedArgs,
        accountName: "myuniquename2",
        sku: { name: "Standard_LRS" },
        kind: "StorageV2",
    },
    sharedOptions); // Replace `sharedOptions` with `{ parent: group }` and it works
t
Interesting! So, this is triggered by parenting to a resource from another provider. Could you open an issue for that?
o
sure! will do tomorrow