Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save stuartpreston/bd4c06d1712b7890ff7f to your computer and use it in GitHub Desktop.
Save stuartpreston/bd4c06d1712b7890ff7f to your computer and use it in GitHub Desktop.
[Powershell] Retrieve certificate and store as .pfx from Microsoft Azure .publishsettings file
(Select-Xml -Path .\downloaded.publishsettings -XPath '//PublishData/PublishProfile/Subscription[@Name="YOURSUBSCRIPTIONNAME"]/@ManagementCertificate').Node.Value.ToString() | Out-File .\mgmtcert.pfx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment