-
Notifications
You must be signed in to change notification settings - Fork 4k
KeyVault: adding support for specifying key size on creation #5963
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: adding support for specifying key size on creation #5963
Conversation
@@ -26,8 +26,7 @@ public class PSKeyVaultKeyAttributes | |||
public PSKeyVaultKeyAttributes() | |||
{ } | |||
|
|||
internal PSKeyVaultKeyAttributes(bool? enabled, DateTime? expires, DateTime? notBefore, string keyType, | |||
string[] keyOps, Hashtable tags) | |||
internal PSKeyVaultKeyAttributes(bool? enabled, DateTime? expires, DateTime? notBefore, string keyType, string[] keyOps, Hashtable tags) |
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.
Did you mean to change this to include the size?
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.
No, this is intentional. The size remains strictly a creation-time parameter, and is not captured in any client-side data type. This matches the behavior of the SDK, REST API and the service, respectively.
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.
Two small comments.
@@ -83,6 +95,19 @@ Accept pipeline input: False | |||
Accept wildcard characters: False | |||
``` | |||
|
|||
### -InRemovedState | |||
Permanently remove the previously deleted managed storage account.```yaml |
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.
Move this onto a new line.
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.
Thanks, fixed. Not sure why platyPs generates this on the same line.
/// </summary> | ||
[Parameter(Mandatory = false, | ||
HelpMessage = "Permanently remove the previously deleted managed storage account.")] | ||
public SwitchParameter InRemovedState { get; set; } |
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.
Are you planning to do this for ManagedStorageSasDefinition as well?
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.
No, sas definitions are considered aspects of a composite entity (the managed storage account), and thus can't be deleted/purged independently of the parent object - that is, the service itself enforces this behavior.
…Remove-StorageAccount
Description
Allowing the specification of key size on creation.
Checklist
CONTRIBUTING.md
platyPS
module