You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code for the KeyVault type in Azure.Provisioning includes a call to AddOutput. CDK resources should not automatically add outputs because you may not necessarily want to output the vaultUri in a given deployment.
publicKeyVault(IConstruct scope,ResourceGroup? parent =null,string name = "kv",stringversion="2023-02-01",AzureLocation? location =null){IConstruct scope2 =scope;base._002Ector(scope2,(Resource?)parent,name,(ResourceType)"Microsoft.KeyVault/vaults",version,(Func<string,KeyVaultData>)delegate(stringname){ResourceTyperesourceType="Microsoft.KeyVault/vaults";AzureLocationlocation2=location??((AzureLocation)(Environment.GetEnvironmentVariable("AZURE_LOCATION")??((string)AzureLocation.WestUS)));KeyVaultSkusku=newKeyVaultSku(KeyVaultSkuFamily.A,KeyVaultSkuName.Standard);IEnumerable<KeyVaultAccessPolicy>accessPolicies=((Environment.GetEnvironmentVariable("AZURE_PRINCIPAL_ID")!=null)?newList<KeyVaultAccessPolicy>{newKeyVaultAccessPolicy(scope2.Root.Properties.TenantId.Value,Environment.GetEnvironmentVariable("AZURE_PRINCIPAL_ID"),newIdentityAccessPermissions{Secrets={IdentityAccessSecretPermission.Get,IdentityAccessSecretPermission.List}})}:null);bool?enableRbacAuthorization=true;returnArmKeyVaultModelFactory.KeyVaultData(null,name,resourceType,null,null,location2,ArmKeyVaultModelFactory.KeyVaultProperties(default(Guid),sku,accessPolicies,null,null,null,null,null,null,null,enableRbacAuthorization));});// Remove this :)AddOutput((KeyVaultDatakv)=>kv.Properties.VaultUri,"vaultUri");// This is OK.if(scope2.Root.Properties.TenantId==Guid.Empty){AssignProperty((KeyVaultDatakv)=>kv.Properties.TenantId,"tenant().tenantId");}}
The text was updated successfully, but these errors were encountered:
jsquire
added
Client
This issue points to a problem in the data-plane of the library.
Provisioning
and removed
needs-triage
Workflow: This is a new issue that needs to be triaged to the appropriate team.
labels
Mar 4, 2024
The code for the
KeyVault
type inAzure.Provisioning
includes a call toAddOutput
. CDK resources should not automatically add outputs because you may not necessarily want to output the vaultUri in a given deployment.The text was updated successfully, but these errors were encountered: