-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Switch Key Vault sub resources to use Key Vault ID instead of URL #2820
Conversation
Tests:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left a few comments inline but this is looking good - if we can apply this fix to the other Key Vault resource/data sources this should be otherwise good to merge 👍
@@ -30,10 +30,21 @@ func resourceArmKeyVaultSecret() *schema.Resource { | |||
ValidateFunc: azure.ValidateKeyVaultChildName, | |||
}, | |||
|
|||
"vault_id": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(as above) would this make more sense as key_vault_id
?
Co-Authored-By: katbyte <[email protected]>
Co-Authored-By: katbyte <[email protected]>
ds tests:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM minus the follow up comment
return []*schema.ResourceData{d}, fmt.Errorf("Error Unable to list Key Vaults for Key Vault Child import: %v", err) | ||
} | ||
|
||
for list.NotDone() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just following up on this thread. Do we need to do anything with this?
cfeb4ac
to
f849240
Compare
It seems that error:
|
Verification helper functions are searching for KeyVault in the current context when KeyVault can be placed completely in other subscription which allowed to access if subscriptions are under the same tenant. Deprecation of If we precise |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
This will allow us to easily check if the key vault exists before doing a update/read/delete on it causing a NXDOMAIN error (as the domain used for the API call vanishes when the key vault is deleted)
fixes #2396