Skip to content

#10518-webapp: Support the new appservice Managed certificates #13441

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 16 commits into from
Jan 6, 2021
Merged

#10518-webapp: Support the new appservice Managed certificates #13441

merged 16 commits into from
Jan 6, 2021

Conversation

Kotasudhakarreddy
Copy link
Contributor

#10518

Description

Appservice released the new preview feature at Ignite 2019 https://azure.github.io/AppService/2019/11/04/Announcing-Managed-Certificates.html
We need first class command support for this feature using PowerShell
Design Review- https://github.com/Azure/azure-powershell-cmdlet-review-pr/issues/663

Created new cmdlets:
-New-AzWebAppManagedCertificate
-Remove-AzWebAppManagedCertificate
Testing:
1.New-AzWebAppManagedCertificate -ResourceGroupName Default-Web-WestUS -WebAppName "ContosoSite" -HostName "www.ContosoSite.net" - To create a new managed certificate
2. Remove-AzWebAppManagedCertificate -ResourceGroupName Default-Web-WestUS -WebAppName "ContosoSite" -HostName "www.ContosoSite.net" -Thumbprint "E3A38EBA60CAA1C162785A2E1C44A15AD450199C3" - To remove the managed certificate

Checklist

  • I have read the Submitting Changes section of CONTRIBUTING.md
  • The title of the PR is clear and informative
  • The appropriate ChangeLog.md file(s) has been updated:
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header -- no new version header should be added
  • The PR does not introduce breaking changes
  • If applicable, the changes made in the PR have proper test coverage
  • For public API changes to cmdlets:
    • a cmdlet design review was approved for the changes in this repository (Microsoft internal only)
    • the markdown help files have been regenerated using the commands listed here

@isra-fel isra-fel self-assigned this Nov 6, 2020
@Kotasudhakarreddy
Copy link
Contributor Author

@panchagnula - For your review. Working on build failure.

@Kotasudhakarreddy
Copy link
Contributor Author

@ThejaChoudary - FYI.

Copy link
Contributor

@panchagnula panchagnula left a comment

Choose a reason for hiding this comment

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

A few comments to address.

@msJinLei
Copy link
Contributor

  Processing complete for analyzer: Breaking Change Analyzer
  D:\a\1\s\artifacts//StaticAnalysisResults\SignatureIssues.csv Errors
  "AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation"
  "D:\a\1\s\artifacts\Debug\Az.Websites\Microsoft.Azure.PowerShell.Cmdlets.Websites.dll","Microsoft.Azure.Commands.WebApps.Cmdlets.Certificates.NewAzWebAppManagedCertificate","New-AzWebAppManagedCertificate","1","8100","New-AzWebAppManagedCertificate Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"
  "D:\a\1\s\artifacts\Debug\Az.Websites\Microsoft.Azure.PowerShell.Cmdlets.Websites.dll","Microsoft.Azure.Commands.WebApps.Cmdlets.Certificates.RemoveAzWebAppManagedCertificate","Remove-AzWebAppManagedCertificate","1","8100","Remove-AzWebAppManagedCertificate Does not support ShouldProcess but the cmdlet verb Remove indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"
  
  
  D:\a\1\s\artifacts//StaticAnalysisResults\SignatureIssues.csv:
  "AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation"
  "D:\a\1\s\artifacts\Debug\Az.Websites\Microsoft.Azure.PowerShell.Cmdlets.Websites.dll","Microsoft.Azure.Commands.WebApps.Cmdlets.Certificates.NewAzWebAppManagedCertificate","New-AzWebAppManagedCertificate","1","8100","New-AzWebAppManagedCertificate Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"
  

Please implement shouldprocess for NewAzWebAppManagedCertificate and RemoveAzWebAppManagedCertificate

@Kotasudhakarreddy
Copy link
Contributor Author

@ThejaChoudary FYI.

msJinLei
msJinLei previously approved these changes Nov 17, 2020
@msJinLei
Copy link
Contributor

msJinLei commented Nov 17, 2020

LGTM. Wait for other reviewers's approval

@msJinLei msJinLei added App Services aka WebSites Service Attention This issue is responsible by Azure service team. labels Nov 26, 2020
@msJinLei
Copy link
Contributor

msJinLei commented Dec 1, 2020

@Kotasudhakarreddy please remove service attention label after review out of azure powershell team is finished

@Kotasudhakarreddy
Copy link
Contributor Author

@Kotasudhakarreddy please remove service attention label after review out of azure powershell team is finished

Sure @msJinLei

@Kotasudhakarreddy Kotasudhakarreddy removed the Service Attention This issue is responsible by Azure service team. label Dec 1, 2020
@msJinLei
Copy link
Contributor

msJinLei commented Dec 2, 2020

@Kotasudhakarreddy please remove service attention label after review out of azure powershell team is finished

Sure @msJinLei

But still see @panchagnula request a change. Is the review of @panchagnula finished?

@msJinLei
Copy link
Contributor

msJinLei commented Dec 4, 2020

@Kotasudhakarreddy please remove service attention label after review out of azure powershell team is finished

Sure @msJinLei

But still see @panchagnula request a change. Is the review of @panchagnula finished?

kindly ping @panchagnula and @Kotasudhakarreddy

@panchagnula
Copy link
Contributor

@Kotasudhakarreddy please remove service attention label after review out of azure powershell team is finished

Sure @msJinLei

But still see @panchagnula request a change. Is the review of @panchagnula finished?

kindly ping @panchagnula and @Kotasudhakarreddy

@msJinLei I had asked Kota to make one more change on this so yes - not ready for merging yet. Thanks!

panchagnula
panchagnula previously approved these changes Jan 5, 2021
Copy link
Contributor

@panchagnula panchagnula left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you for adding support to this.

@isra-fel isra-fel merged commit 4b578ee into Azure:master Jan 6, 2021
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.

5 participants