sparse-intern-71089
10/30/2020, 3:32 AMorange-airplane-70350
10/30/2020, 3:33 AM"@pulumi/azure": "^3.0.0",
"@pulumi/azure-nextgen": "^0.2.3",
orange-airplane-70350
10/30/2020, 3:34 AMazure-nextgen
picks up version from azure
packageorange-airplane-70350
10/30/2020, 3:34 AM"version": "3.12.1"
in the package-lock.jsonbillowy-army-68599
node_modules
and package-lock.json
and try again?orange-airplane-70350
10/30/2020, 5:37 AMerror: no resource plugin 'azure-nextgen-v3.28.0'
tall-librarian-49374
10/30/2020, 7:11 AMorange-airplane-70350
10/30/2020, 3:13 PMimport * 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
tall-librarian-49374
10/30/2020, 3:15 PMorange-airplane-70350
10/30/2020, 3:16 PMorange-airplane-70350
10/31/2020, 12:16 PM