white-architect-1595
01/05/2023, 3:32 PMvar clientConfig = Output.Create(GetClientConfig.InvokeAsync());
var tenantID = clientConfig.Apply(x => //tenant ID: The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
{
var data = x.TenantId;
return Output.Create(data);
});
Then in my keyvault definition I say TenantId = tenantID
When I run pulumi up I get the following error
error: Running program 'C:\Users\xxxx\Source\Repos\xxxxx\bin\Debug\netx.0\xxxx.dll' failed with an unhandled exception:
Grpc.Core.RpcException: Status(StatusCode="Unknown", Detail="invocation of azure-native:authorization:getClientConfig returned an error: getting authenticated object ID: parsing json result from the Azure CLI: waiting for the Azure CLI: exit status 1: ERROR: Continuous access evaluation resulted in claims challenge with result: InteractionRequired and code: LocationConditionEvaluationSatisfied")
at async Task<InvokeResponse> Pulumi.GrpcMonitor.InvokeAsync(ResourceInvokeRequest request)
at async Task<SerializationResult> Pulumi.Deployment.InvokeRawAsync(string token, SerializationResult argsSerializationResult, InvokeOptions options) x 2
at async Task<T> Pulumi.Deployment.InvokeAsync<T>(string token, InvokeArgs args, InvokeOptions options, bool convertResult)
at async Task<OutputData<T>> Pulumi.Output<T>+<>c__DisplayClass12_0.<Create>g__GetData|0(?)+GetData(?)
at async Task<OutputData<U>> Pulumi.Output<T>.ApplyHelperAsync<U>(Task<OutputData<T>> dataTask, Func<T, Output<U>> func)
melodic-tomato-39005
01/05/2023, 4:31 PMaz login
before?icy-doctor-13719
01/05/2023, 4:37 PMvar provider = new Pulumi.AzureNative.Provider("provider", new Pulumi.AzureNative.ProviderArgs()
{
SubscriptionId = p.subscriptionId,
ClientId = p.servicePrincipalId,
ClientSecret = p.servicePrincipalSecret,
TenantId = p.tenantId,
PartnerId = p.partnerId
});
// Azure Resource Group
var rg = new Pulumi.AzureNative.Resources.ResourceGroup("rg", new()
{
ResourceGroupName = $"rg-{p.projectName}-{p.env}",
Location = p.location,
Tags = { { "env", p.env } }
}, new CustomResourceOptions() { Provider = provider });
white-architect-1595
01/05/2023, 4:40 PMicy-doctor-13719
01/05/2023, 4:44 PMwhite-architect-1595
01/05/2023, 4:56 PMicy-doctor-13719
01/05/2023, 4:56 PMwhite-architect-1595
01/05/2023, 4:57 PMicy-doctor-13719
01/05/2023, 4:57 PMwhite-architect-1595
01/05/2023, 4:57 PMicy-doctor-13719
01/05/2023, 4:57 PMwhite-architect-1595
01/05/2023, 4:58 PMicy-doctor-13719
01/05/2023, 5:05 PMwhite-architect-1595
01/05/2023, 5:08 PMicy-doctor-13719
01/05/2023, 5:09 PMvar provider = new Pulumi.AzureNative.Provider("provider", new Pulumi.AzureNative.ProviderArgs()
{
SubscriptionId = p.subscriptionId,
ClientId = p.servicePrincipalId,
ClientSecret = p.servicePrincipalSecret,
TenantId = config.Get("tenantId"),
PartnerId = p.partnerId
});
white-architect-1595
01/05/2023, 5:13 PMicy-doctor-13719
01/05/2023, 5:14 PMwhite-architect-1595
01/05/2023, 5:15 PMmysterious-australia-14256
01/20/2023, 11:19 AM