-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
#ApplicationGateway Introduce SecureString to cmdlets. #4898
Conversation
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.
Some initial comments
|
||
public PSApplicationGatewaySslCertificate NewObject() | ||
{ | ||
var sslCertificate = new PSApplicationGatewaySslCertificate(); | ||
|
||
sslCertificate.Name = this.Name; | ||
sslCertificate.Data = Convert.ToBase64String(File.ReadAllBytes(CertificateFile)); | ||
sslCertificate.Data = Convert.ToBase64String(File.ReadAllBytes(this.CertificateFile)); | ||
#pragma warning disable 0618 |
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.
You can get rid of the pragma warnings here because it was suppressing the Obsolete warning. Please also get rid of the pragma warnings in Set-AzureRmApplicationGatewaySslCertificate.
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.
okay
@@ -38,4 +38,19 @@ | |||
https://github.com/Azure/azure-powershell/blob/dev/documentation/breaking-changes/breaking-change-template.md | |||
--> | |||
|
|||
## Current Breaking Changes |
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.
Please revert all changes here - we will automatically move upcoming breaking changes to current breaking changes when we release.
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.
Okay, good to know.
@@ -25,18 +25,4 @@ | |||
https://github.com/Azure/azure-powershell/blob/dev/documentation/breaking-changes/breaking-change-template.md | |||
--> | |||
|
|||
# Upcoming Breaking Changes |
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.
Same comment
@maddieclayton Wasn't aware that there is a StaticAnalysis exceptions file for Breaking Changes as well. Good to know, thanks for the comment :) |
I added the entries to the |
@jobatzil Please fix the merge conflict and push again. |
Description
Change type of
-Password
parameter of ApplciationGatewaySslCertitificate cmdlets toSecureString
.This checklist is used to make sure that common guidelines for a pull request are followed. You can find a more complete discussion of PowerShell cmdlet best practices here.
General Guidelines
Testing Guidelines
Cmdlet Signature Guidelines
ShouldProcess
and haveSupportShouldProcess=true
specified in the cmdlet attribute. You can find more information onShouldProcess
here.OutputType
attribute if any output is produced - if the cmdlet produces no output, it should implement aPassThru
parameter.Cmdlet Parameter Guidelines