-
Notifications
You must be signed in to change notification settings - Fork 31
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
Import Azure-native.keyvault.AccessPolicy #3282
Comments
Thanks for reporting this @welkin18fe It looks like this likely source of this is: pulumi-azure-native/provider/pkg/resources/customresources/custom_keyvault_accesspolicy.go Lines 93 to 130 in 425fc2c
I think what we'll need to do is to allow the object id to be included at the end of the |
Fixes #3282 For import to work, we need to be able to identify which access policy we're addressing and therefore need the object id to be part of the id. This change makes the object id optional, and prefers to use the object id from the `id` if available, rather than parsing it from the properties.
What happened?
Hello, I'm trying to import multiple access policies using the import command available azure-native.keyvault.AccessPolicy, but it seems that something is missing. I tried with the object id like the Azure provider and principal name in case something is missing in the doc, but no luck.
Example
I removed the names and ids to simplify.
Using :
pulumi import azure-native:keyvault:AccessPolicy myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/accessPolicy
Using :
pulumi import azure-native:keyvault:AccessPolicy myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/accessPolicy/objectId/{objectId}
Using :
pulumi import azure-native:keyvault:AccessPolicy myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/accessPolicy/{objectId}
Output of
pulumi about
CLI
Version 3.115.2
Go Version go1.22.2
Go Compiler gc
Plugins
KIND NAME VERSION
resource aws 5.42.0
resource azure 5.43.0
resource azure-native 2.40.0
resource azuread 5.47.2
language dotnet unknown
resource mssql 0.0.8
resource random 4.13.2
Host
OS Microsoft Windows 11 Pro
Version 10.0.22631 Build 22631
Arch x86_64
This project is written in dotnet: executable='C:\Program Files\dotnet\dotnet.exe' version='8.0.204'
Additional context
Is there any workaround available?
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: