Skip to content

Commit

Permalink
Update run.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
srozemuller committed May 30, 2024
1 parent b51daef commit 411028c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Security-BreakGlassCertRenewer/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ $informationPreference = 'Continue'
# Write an information log with the current time.
Write-Output "PowerShell timer trigger function ran! TIME: $currentTime"
# Connect to Azure using the system assigned identity
# Disconnect first to make sure we use fresh credentials
Disconnect-AzAccount
Connect-AzAccount -Identity

$ProgressPreference = "SilentlyContinue"
Expand Down Expand Up @@ -35,7 +33,7 @@ catch {
try {
Write-Information "Searching for certificates in key vault" -InformationAction Continue
$breakglassCertificateUrl = "{0}/certificates/{1}?api-version=7.4&maxresults=25&_=1714746115235" -f $env:KEYVAULT_URL, $env:BREAKGLASS_CERTNAME
# $results = Invoke-RestMethod -Uri $breakglassCertificateUrl -Headers $keyvaultHeaders -Method Get
$results = Invoke-RestMethod -Uri $breakglassCertificateUrl -Headers $keyvaultHeaders -Method Get
}
catch {
Throw "Unable to request certificates, $_"
Expand Down

0 comments on commit 411028c

Please sign in to comment.