Skip to content

Add deprecation messages and fixes for KeyVault #5798

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 9 commits into from
Mar 30, 2018
Merged

Add deprecation messages and fixes for KeyVault #5798

merged 9 commits into from
Mar 30, 2018

Conversation

maddieclayton
Copy link
Contributor

@maddieclayton maddieclayton commented Mar 23, 2018

Description

#2243
Deprecation for breaking changes described here: #5496

Checklist

Copy link
Member

@cormacpayne cormacpayne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maddieclayton need to update the upcoming-breaking-changes.md file, otherwise LGTM

dragav
dragav previously approved these changes Mar 27, 2018
@@ -117,6 +117,11 @@ public static string GetDisplayNameForADObject(string objectId, ActiveDirectoryC
displayName = servicePrincipal.DisplayName;
upnOrSpn = servicePrincipal.ServicePrincipalNames.FirstOrDefault();
}
else if (obj.Type.Equals("group", StringComparison.InvariantCultureIgnoreCase))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maddieclayton we should add a change log entry if we want this fix to go out to users before Build

- The -Parameter parameter has become optional and no longer has a position.

**Set-AzureKeyVaultCertificateIssuer**
- The -IssuerProvider has become mandatory.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maddieclayton nit: "the -IssueProvider parameter has become mandatory"

- The -Certificate parameter has become mandatory.

**Set-AzureKeyVaultManagedStorageSasDefinition**
- The -Parameter parameter has become optional and no longer has a position.
Copy link
Member

@cormacpayne cormacpayne Mar 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maddieclayton nit: we shouldn't need to call out the parameter is now optional, just the positional change

- The output of this cmdlet has changed from CertificateBundle to PSKeyVaultCertificate.

**Undo-AzureRmKeyVaultRemoval**
- ResourceGroupName has been removed from the InputObject parameter set, and is instead obtained from the ResourceId.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maddieclayton nit: "...and is instead obtained from the InputObject parameter's ResourceId property"

@maddieclayton
Copy link
Contributor Author

cormacpayne
cormacpayne previously approved these changes Mar 27, 2018
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

### InputObjectByDeletedVault
```
Remove-AzureRmKeyVault [-InputObject] <PSKeyVault> [-Location] <String> [-InRemovedState] [-Force] [-AsJob]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parameter is required for recovering a deleted vault.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I have just removed this Parameter for the -Input object parameter set because you can actually obtain the location from the PSVault object. It remains in the interactive parameter set above.

@dragav
Copy link
Contributor

dragav commented Mar 29, 2018

I should add that the changes look good to me with the exception of removing the Location parameter from the vault recovery cmdlet.

@maddieclayton
Copy link
Contributor Author

@cormacpayne cormacpayne merged commit 37c0241 into Azure:preview Mar 30, 2018
@maddieclayton maddieclayton deleted the KeyVaultdep branch March 30, 2018 21:11
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