Skip to content

Commit

Permalink
Temporarily unconfiguring PaaSDiagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenba committed Aug 3, 2015
1 parent 195d4e0 commit 741f7af
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/NuGetGallery.Cloud/DeployToAzure.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -165,19 +165,12 @@ function ConfigureDiagnostics([string]$roleName)
} elseif ($extension -ne $null) {
Write-Host "Diagnostics already configured. Skipping."
} else {
Set-AzureServiceDiagnosticsExtension -ServiceName $OctopusAzureServiceName -Slot $OctopusAzureSlot -DiagnosticsConfigurationPath $config -StorageContext $storageContext -Role $roleName -Verbose -ErrorAction SilentlyContinue -ErrorVariable errorVariable
if (!($?)) {
if ($errorVariable.count -gt 0 -and $errorVariable[0].ToString().Contains("already exists")) {
Write-Host "Diagnostics already configured. Skipping."
} else {
Write-Host "Diagnostics error occurred. Details: $errorVariable"
}
}
Set-AzureServiceDiagnosticsExtension -ServiceName $OctopusAzureServiceName -Slot $OctopusAzureSlot -DiagnosticsConfigurationPath $config -StorageContext $storageContext -Role $roleName -Verbose
}

Write-Host "Configured diagnostics for role $roleName."
}

CreateOrUpdate
WaitForComplete
ConfigureDiagnostics -RoleName "NuGetGallery"
#ConfigureDiagnostics -RoleName "NuGetGallery"

0 comments on commit 741f7af

Please sign in to comment.