https://pulumi.com logo
#getting-started
Title
# getting-started
g

gentle-gold-64302

03/03/2021, 7:29 PM
Hi all šŸ™‚ I am trying out azure native package but got this error when running pulumi up preview: failed to discover plugin requirements: illegal semver returned by language host: azurenative@vazure-native 0.7.1: Invalid character(s) found in major number "azure-native\n0". I am using dotnet and azure. can anyone help me with this issue? trying to find fixes or workaround.
b

billowy-army-68599

03/03/2021, 7:30 PM
@broad-dog-22463 did we break the version stuff when we changed this?
b

broad-dog-22463

03/03/2021, 7:30 PM
I can look now
@gentle-gold-64302 what language are you using?
ah dotnet
apologies here
checking now
looks good on my side:
Copy code
~/code/test-azre-dotnet                                                                                                                                                                                                                                                     ā‰
ā–¶ pulumi new azure-csharp
This command will walk you through creating a new Pulumi project.

Enter a value or leave blank to accept the (default), and press <ENTER>.
Press ^C at any time to quit.

project name: (test-azre-dotnet)
project description: (A minimal Azure Native C# Pulumi program)
Created project 'test-azre-dotnet'

Please enter your desired stack name.
To create a stack in an organization, use the format <org-name>/<stack-name> (e.g. `acmecorp/dev`).
stack name: (dev)
Created stack 'dev'

azure-native:location: The Azure location to use: (WestUS)
Saved config

Installing dependencies...

running 'dotnet build -nologo .'
  Determining projects to restore...

  Restored /Users/stack72/code/test-azre-dotnet/test-azre-dotnet.csproj (in 6.8 sec).

/Users/stack72/code/test-azre-dotnet/MyStack.cs(12,33): warning CS0618: 'ResourceGroup' is obsolete: 'The 'latest' version is deprecated. Please migrate to the resource in the top-level module: 'azure-native:resources:ResourceGroup'.' [/Users/stack72/code/test-azre-dotnet/test-azre-dotnet.csproj]

/Users/stack72/code/test-azre-dotnet/MyStack.cs(15,34): warning CS0618: 'StorageAccount' is obsolete: 'The 'latest' version is deprecated. Please migrate to the resource in the top-level module: 'azure-native:storage:StorageAccount'.' [/Users/stack72/code/test-azre-dotnet/test-azre-dotnet.csproj]
/Users/stack72/code/test-azre-dotnet/MyStack.cs(35,33): warning CS0618: 'ListStorageAccountKeys' is obsolete: 'The 'latest' version is deprecated. Please migrate to the function in the top-level module: 'azure-native:storage:listStorageAccountKeys'.' [/Users/stack72/code/test-azre-dotnet/test-azre-dotnet.csproj]

  test-azre-dotnet -> /Users/stack72/code/test-azre-dotnet/bin/Debug/netcoreapp3.1/test-azre-dotnet.dll


Build succeeded.


/Users/stack72/code/test-azre-dotnet/MyStack.cs(12,33): warning CS0618: 'ResourceGroup' is obsolete: 'The 'latest' version is deprecated. Please migrate to the resource in the top-level module: 'azure-native:resources:ResourceGroup'.' [/Users/stack72/code/test-azre-dotnet/test-azre-dotnet.csproj]
/Users/stack72/code/test-azre-dotnet/MyStack.cs(15,34): warning CS0618: 'StorageAccount' is obsolete: 'The 'latest' version is deprecated. Please migrate to the resource in the top-level module: 'azure-native:storage:StorageAccount'.' [/Users/stack72/code/test-azre-dotnet/test-azre-dotnet.csproj]
/Users/stack72/code/test-azre-dotnet/MyStack.cs(35,33): warning CS0618: 'ListStorageAccountKeys' is obsolete: 'The 'latest' version is deprecated. Please migrate to the function in the top-level module: 'azure-native:storage:listStorageAccountKeys'.' [/Users/stack72/code/test-azre-dotnet/test-azre-dotnet.csproj]
    3 Warning(s)

    0 Error(s)

Time Elapsed 00:00:09.79

'dotnet build -nologo .' completed successfully
[resource plugin azure-native-0.7.1] installing
Downloading plugin: 22.51 MiB / 22.51 MiB [=========================] 100.00% 1s
Finished installing dependencies

Your new project is ready to go! ✨

To perform an initial deployment, run 'pulumi up'

ā–¶ pulumi up
Previewing update (dev)

View Live: <https://app.pulumi.com/stack72/test-azre-dotnet/dev/previews/50938caa-0dd9-4311-9e2e-b36de1159ec4>

     Type                                            Name                  Plan
 +   pulumi:pulumi:Stack                             test-azre-dotnet-dev  create
 +   ā”œā”€ azure-native:resources/latest:ResourceGroup  resourceGroup         create
 +   └─ azure-native:storage/latest:StorageAccount   sa                    create

Resources:
    + 3 to create

Do you want to perform this update?  [Use arrows to move, enter to select, type to filter]
  yes
> no
  details
can you give us some recreation steps @gentle-gold-64302
@sparse-park-68967 FYI
šŸ‘ 1
g

gentle-gold-64302

03/03/2021, 7:41 PM
I ll try to create a new project from fresh and test it out. thanks!
šŸ‘ 1
Hi Paul, after many trials I still stuck at this error following the exact steps from your powershell script. Is there anything concerning that I need to update environment wise?
@broad-dog-22463
I think it is because my local pulumi version is quite old. After an update to the newest pulumi version the problem is solved. Thank you for the help guys šŸ™‚
b

billowy-army-68599

03/04/2021, 4:29 PM
glad you got it fixed!
7 Views