Hi! I started with the tutorial <https://www.pulum...
# getting-started
t
Hi! I started with the tutorial https://www.pulumi.com/docs/get-started/azure/deploy-stack/ but I'm stuck. Somehow it can't retrieve the Azure CLI version? See output:
Copy code
Previewing update (dev)

View in Browser (Ctrl+O): <https://app.pulumi.com/xxxx>

     Type                                     Name            Plan       Info
 +   pulumi:pulumi:Stack                      quickstart-dev  create
     └─ azure-native:resources:ResourceGroup  resourceGroup              1 error

Diagnostics:
  azure-native:resources:ResourceGroup (resourceGroup):
    error: could not determine az version: unmarshaling the result of Azure CLI: invalid character 'a' looking for beginning of value
I'm running Azure CLI 2.47.0.
b
hi @thankful-father-64418 have you authorized access to the azure cli? more deets here in case its helpful https://www.pulumi.com/registry/packages/azure-native/installation-configuration/#authenticate-using-the-cli
t
hi @brainy-church-78120. Yes I did. I double checked a couple of times. I also reinstalled Pulumi, but still getting the same error. When I run
az version
myself I get the following output:
Copy code
azure-cli: 2.47.0
azure-cli-core: 2.47.0
azure-cli-telemetry: 1.0.8
extensions:
  application-insights: 0.1.19
  logic: 0.1.6
When I run with verbose it gives the following output:
Copy code
I0410 09:39:37.326829   31728 log.go:75] Provider[azure-native, 0xc0019df540].GetPluginInfo() executing
I0410 09:39:37.327338   31728 log.go:75] Provider[azure-native, 0xc0019df540].CheckConfig(urn:pulumi:dev::quickstart::pulumi:providers:azure-native::default_1_99_1) executing (#olds=0,#news=2)
I0410 09:39:37.327338   31728 log.go:75] Marshaling property for RPC[Provider[azure-native, 0xc0019df540].CheckConfig(urn:pulumi:dev::quickstart::pulumi:providers:azure-native::default_1_99_1).news]: location={westeurope}
I0410 09:39:37.327837   31728 log.go:75] Marshaling property for RPC[Provider[azure-native, 0xc0019df540].CheckConfig(urn:pulumi:dev::quickstart::pulumi:providers:azure-native::default_1_99_1).news]: version={1.99.1}
I0410 09:39:37.328838   31728 log.go:75] Unmarshaling property for RPC[Provider[azure-native, 0xc0019df540].CheckConfig(urn:pulumi:dev::quickstart::pulumi:providers:azure-native::default_1_99_1).inputs]: location={westeurope}
I0410 09:39:37.328838   31728 log.go:75] Unmarshaling property for RPC[Provider[azure-native, 0xc0019df540].CheckConfig(urn:pulumi:dev::quickstart::pulumi:providers:azure-native::default_1_99_1).inputs]: version={1.99.1}
I0410 09:39:37.328838   31728 log.go:75] Provider[azure-native, 0xc0019df540].CheckConfig(urn:pulumi:dev::quickstart::pulumi:providers:azure-native::default_1_99_1) success: inputs=#2 failures=#0
I0410 09:39:37.328838   31728 log.go:75] setProvider(urn:pulumi:dev::quickstart::pulumi:providers:azure-native::default_1_99_1::04da6b54-80e4-46f7-96ec-b56ff0331ba9)
I0410 09:39:37.329836   31728 log.go:75] Planner decided to create 'urn:pulumi:dev::quickstart::pulumi:providers:azure-native::default_1_99_1' (inputs=map[location:{westeurope} version:{1.99.1}])
I0410 09:39:37.330335   31728 log.go:75] Checking step create for urn:pulumi:dev::quickstart::pulumi:providers:azure-native::default_1_99_1
I0410 09:39:37.330335   31728 log.go:75] StepExecutor worker(-2): worker received chain for execution
I0410 09:39:37.330839   31728 log.go:75] StepExecutor worker(-2): worker waiting for incoming chains
I0410 09:39:37.330839   31728 log.go:75] StepExecutor worker(1): launching oneshot worker
I0410 09:39:37.330839   31728 log.go:75] StepExecutor worker(1): applying step create on urn:pulumi:dev::quickstart::pulumi:providers:azure-native::default_1_99_1 (preview true)
I0410 09:39:37.331339   31728 log.go:75] ProviderRegistry.Create(urn:pulumi:dev::quickstart::pulumi:providers:azure-native::default_1_99_1) executing (#news=2)
I0410 09:39:37.331339   31728 log.go:75] GetProvider(urn:pulumi:dev::quickstart::pulumi:providers:azure-native::default_1_99_1::04da6b54-80e4-46f7-96ec-b56ff0331ba9)
I0410 09:39:37.331339   31728 log.go:75] Provider[azure-native, 0xc0019df540].Configure() executing (#vars=2)
I0410 09:39:37.331837   31728 log.go:75] Marshaling property for RPC[Provider[azure-native, 0xc0019df540].Configure().inputs]: location={westeurope}
I0410 09:39:37.331837   31728 log.go:75] Marshaling property for RPC[Provider[azure-native, 0xc0019df540].Configure().inputs]: version={1.99.1}
I0410 09:39:37.331837   31728 log.go:75] setProvider(urn:pulumi:dev::quickstart::pulumi:providers:azure-native::default_1_99_1::)
I0410 09:39:37.332337   31728 log.go:75] StepExecutor worker(1): step create on urn:pulumi:dev::quickstart::pulumi:providers:azure-native::default_1_99_1 retired
I0410 09:39:37.332837   31728 log.go:75] registered default provider for package azure-native-1.99.1: urn:pulumi:dev::quickstart::pulumi:providers:azure-native::default_1_99_1
I0410 09:39:37.332837   31728 log.go:75] ResourceMonitor.RegisterResource received: t=azure-native:resources:ResourceGroup, name=resourceGroup, custom=true, #props=0, parent=urn:pulumi:dev::quickstart::pulumi:pulumi:Stack::quickstart-dev, protect=false, provider=urn:pul
umi:dev::quickstart::pulumi:providers:azure-native::default_1_99_1::04da6b54-80e4-46f7-96ec-b56ff0331ba9, deps=[], deleteBeforeReplace=<nil>, ignoreChanges=[], aliases=[{  azure-native:resources/v20151101:ResourceGroup   } {  azure-native:resources/v20160201:ResourceGro
up   } {  azure-native:resources/v20160701:ResourceGroup   } {  azure-native:resources/v20160901:ResourceGroup   } {  azure-native:resources/v20170510:ResourceGroup   } {  azure-native:resources/v20180201:ResourceGroup   } {  azure-native:resources/v20180501:ResourceGro
up   } {  azure-native:resources/v20190301:ResourceGroup   } {  azure-native:resources/v20190501:ResourceGroup   } {  azure-native:resources/v20190510:ResourceGroup   } {  azure-native:resources/v20190701:ResourceGroup   } {  azure-native:resources/v20190801:ResourceGro
up   } {  azure-native:resources/v20191001:ResourceGroup   } {  azure-native:resources/v20200601:ResourceGroup   } {  azure-native:resources/v20200801:ResourceGroup   } {  azure-native:resources/v20201001:ResourceGroup   } {  azure-native:resources/v20210101:ResourceGro
up   } {  azure-native:resources/v20210401:ResourceGroup   } {  azure-native:resources/v20220901:ResourceGroup   }], customTimeouts={0 0 0}, providers=map[], replaceOnChanges=[], retainOnDelete=false, deletedWith=
I0410 09:39:37.333336   31728 log.go:75] EvalSourceIterator produced a registration: t=azure-native:resources:ResourceGroup,name=resourceGroup,#props=0
I0410 09:39:37.333336   31728 log.go:75] deploymentExecutor.Execute(...): incoming event (nil? false, <nil>)
I0410 09:39:37.333836   31728 log.go:75] deploymentExecutor.handleSingleEvent(...): received RegisterResourceEvent
I0410 09:39:37.333836   31728 log.go:75] GetProvider(urn:pulumi:dev::quickstart::pulumi:providers:azure-native::default_1_99_1::04da6b54-80e4-46f7-96ec-b56ff0331ba9)
I0410 09:39:37.333836   31728 log.go:75] Provider[azure-native, 0xc0019df540].Check(urn:pulumi:dev::quickstart::azure-native:resources:ResourceGroup::resourceGroup) executing (#olds=0,#news=0
I0410 09:39:37.808647   31728 log.go:75] Provider[azure-native, 0xc0019df540].Configure() failed: err=could not determine az version: unmarshaling the result of Azure CLI: invalid character 'a' looking for beginning of value
I0410 09:39:37.809030   31728 log.go:75] deploymentExecutor.Execute(...): error handling event: could not determine az version: unmarshaling the result of Azure CLI: invalid character 'a' looking for beginning of value
I0410 09:39:37.809030   31728 log.go:75] eventSink::Error(<{%reset%}>could not determine az version: unmarshaling the result of Azure CLI: invalid character 'a' looking for beginning of value<{%reset%}>)
I0410 09:39:37.810529   31728 log.go:75] StepExecutor worker(-1): StepExecutor.waitForCompletion(): worker threads all exiteds to exit
I0410 09:39:37.811028   31728 log.go:75] deploymentExecutor.Execute(...): step executor has completed
 +   pulumi:pulumi:Stack                      quickstart-dev  create...  'dotnet build -nologo .' completed successfully
     └─ azure-native:resources:ResourceGroup  resourceGroup              error: could not determine az version: unmarshaling the result of Azure CLI: invalid character 'a' looking for beginning of value
I0410 09:39:37.822168   31728 log.go:75] langhost[dotnet].Run(pwd=C:\Users\RemyvanDuijkeren\OneDrive\Source\quickstart,program=.,...,dryrun=true) failed: err=error reading from server: read tcp 127.0.0.1:62595->127.0.0.1:62593: use of closed network connection
I0410 09:39:37.822677   31728 log.go:75] Explicitly ignoring and discarding error: rpc error: code = Canceled desc = grpc: the client connection is closing
I0410 09:39:37.842274   31728 log.go:75] Explicitly ignoring and discarding error: 1 error occurred:
        * TerminateProcess: Access is denied.

I0410 09:39:37.842274   31728 log.go:75] Error closing 'dotnet' language plugin during shutdown; ignoring: 1 error occurred:
        * TerminateProcess: Access is denied.
s
Are you running on Windows? If so, could you try running
pulumi
as an administrator and see if that helps?
t
I'm indeed on Windows. Under administrator it also doesn't work. I reinstalled pulumi a couple of times without any effect. Even an older version.
s
Can you file an issue in https://github.com/pulumi/pulumi?
t
s
Thank you!