Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

PowerShell – Azure – Get Certificate List

Posted on April 8, 2016April 8, 2016 By David Kittell

Working in Azure creating VMs with certificates it’s helpful to know what you have.

function Get-AzureCertificates
	{
		$i = 1
        $array= @()

        foreach ( $item in (Get-AzureService | Select ServiceName) )
			{
				$Certs = Get-AzureCertificate -ServiceName $item.ServiceName 
				foreach($Cert in $Certs)
					{
						$Object = New-Object System.Object
                        $Object | Add-Member -Type NoteProperty -name "ServiceName" -Value  $item.ServiceName
						$Object | Add-Member -Type NoteProperty -name "Thumbprint" -Value   $Cert.Thumbprint
						$Object | Add-Member -Type NoteProperty -name "ThumbprintAlgorithm" -Value   $Cert.ThumbprintAlgorithm
						$Object | Add-Member -Type NoteProperty -name "URL" -Value   $Cert.Url
						$array += $Object
					}
			}
		$array
    }

Get-AzureCertificates | FT -AutoSize -Wrap

# To Remove Certificate
# Remove-AzureCertificate -ServiceName <ServiceName> -ThumbprintAlgorithm <ThumbprintAlgorithm> -Thumbprint <Thumbprint>
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Azure Code PowerShell azurecertificateservice

Post navigation

Previous post
Next post

Related Posts

WordPress Database Information

Posted on September 14, 2015February 12, 2016

I plan to work more on this as it is rather nasty but as a work in progress notepad if you will this is the spot for now. — Not a pretty approach but this will help you get a listing of all active plugins DROP TABLE IF EXISTS wp_active_plugins;…

Read More

ListUserGroup

Posted on February 21, 2013October 26, 2015

public static string ListUserGroup(int userID) { string UsersGroups = ""; if (userID != 0) { Ektron.Cms.API.Common CommonApi = new Ektron.Cms.API.Common(); Ektron.Cms.API.User.User UserAPI = new Ektron.Cms.API.User.User(); Ektron.Cms.GroupData GroupData = new Ektron.Cms.GroupData(); //Number of Provider(" + System.Convert.ToString(UserAPI.GetUserGroupByName("Provider").GroupId) + ") Users: " + System.Convert.ToString(UserAPI.GetUserGroupByName("Provider").UserCount); Ektron.Cms.GroupData[] gData = UserAPI.GetGroupsUserIsIn(UserAPI.UserId, "GroupID"); foreach (Ektron.Cms.GroupData g in…

Read More

Drop Function If Exists

Posted on August 6, 2013October 26, 2015

IF OBJECT_ID(N’dbo.RegexReplace’) IS NOT NULL DROP FUNCTION dbo.RegexReplace GO Source: https://www.simple-talk.com/sql/t-sql-programming/tsql-regular-expression-workbench/ Originally Posted on August 6, 2013Last Updated on October 26, 2015 All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes