orange-airplane-70350
10/30/2020, 3:32 AMazure-nextgen
to my existing program which already has azure
provider. And I get the following error:
pulumi:providers:azure-nextgen (default_3_12_1):
error: no resource plugin 'azure-nextgen-v3.12.1' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource azure-nextgen v3.12.1`
I wonder if somebody faced it already and knows some workaround."@pulumi/azure": "^3.0.0",
"@pulumi/azure-nextgen": "^0.2.3",
azure-nextgen
picks up version from azure
package"version": "3.12.1"
in the package-lock.jsonbillowy-army-68599
10/30/2020, 3:51 AMnode_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 PM