Hello Team; I'm using pulumi with go, I'm a bit co...
# general
w
Hello Team; I'm using pulumi with go, I'm a bit confused what provider to use for azure , I see there is a new recommended "pulumi-azure-native-sdk" so I'm using the following in my imports "github.com/pulumi/pulumi-azure-native-sdk/*/v2" I was trying to read users so I thought the aad/v2 or aadiam/v2 should be used, but found out there is "github.com/pulumi/pulumi-azuread/sdk/v6/go/azuread" I'm trying to call azuread.GetUsers to get an existing user to grant access to KV I'm creating, please advise which packages to use as GetUsers functionality is missing @ https://github.com/pulumi/pulumi-azure-native-sdk/tree/workloads/v2.86.0/aad , I'm running the pipeline from GH with OIDC granted to SP with Contributor permission, so it should be able to read AAD. when using "github.com/pulumi/pulumi-azuread/sdk/v6/go/azuread" I'm getting
Copy code
pulumi:providers:azuread (default_6_2_0):
      error: rpc error: code = Unknown desc = failed to load Azure credentials.
      Details: could not configure AzureCli Authorizer: tenant ID was not specified and the default tenant ID could not be determined: obtaining tenant ID: obtaining account details: running Azure CLI: exit status 1: ERROR: Please run 'az login' to setup account.

      	Please make sure you have signed in via 'az login' or configured another authentication method.
So I guess this provider does not support OIDC. please advise, Thanks.
m
You would typically use “github.com/pulumi/pulumi-azure-native-sdk/*/v2” together with github.com/pulumi/pulumi-azuread/sdk/v6/go/azuread”. The former is for the resources Azure exposes via ARM (Resource Manager), the latter for Entra (formerly Active Directory).
Regarding the
tenenatId
error, this page documents how to set up the provider.