Skip to content

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

Merged
merged 5 commits into from
Apr 17, 2018

Conversation

dragav
Copy link
Contributor

@dragav dragav commented Apr 16, 2018

Description

Allowing the specification of key size on creation.

Checklist

@@ -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)
Copy link
Contributor

@maddieclayton maddieclayton Apr 16, 2018

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@maddieclayton maddieclayton left a 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
Copy link
Contributor

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.

Copy link
Contributor Author

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; }
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@maddieclayton
Copy link
Contributor

@maddieclayton maddieclayton merged commit c7557fd into Azure:keyvault_preview Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants