Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyVault for CDK #42349

Closed
5 tasks done
Tracked by #42348
mitchdenny opened this issue Mar 4, 2024 · 0 comments
Closed
5 tasks done
Tracked by #42348

KeyVault for CDK #42349

mitchdenny opened this issue Mar 4, 2024 · 0 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. Provisioning

Comments

@mitchdenny
Copy link
Contributor

mitchdenny commented Mar 4, 2024

Creating this as a tracking issue for problems we are seeing in the KeyVault API for CDK.

Give the following CDK code:

var keyVault = construct.AddKeyVault(name: "mykv");
var secret = new KeyVaultSecret(construct, name: "mysecret");

We get the following Bicep:

targetScope = 'resourceGroup'

@description('')
param location string = resourceGroup().location


resource keyVault_OlyAsQ0DX 'Microsoft.KeyVault/vaults@2023-02-01' = {
  name: 'mykv-temp'
  location: location
  properties: {
    tenantId: tenant().tenantId
    sku: {
      name: 'standard'
      family: 'A'
    }
    enableRbacAuthorization: true
  }
}

resource keyVaultSecret_dPFd3FfoI 'Microsoft.KeyVault/vaults/secrets@2023-02-01' = {
  parent: keyVault_OlyAsQ0DX
  name: 'mysecret'
  location: location
  properties: {
    value: '00000000-0000-0000-0000-000000000000'
  }
}

output vaultUri string = keyVault_OlyAsQ0DX.properties.vaultUri

Tasks

Preview Give feedback
  1. needs-triage
  2. Client Provisioning
  3. Client Provisioning
  4. Client Provisioning
  5. Client Provisioning
    JoshLove-msft
@mitchdenny mitchdenny added Client This issue points to a problem in the data-plane of the library. Provisioning labels Mar 4, 2024
@github-actions github-actions bot added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Mar 4, 2024
@jsquire jsquire removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Mar 4, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jun 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. Provisioning
Projects
None yet
Development

No branches or pull requests

3 participants