@@ -17,15 +17,11 @@ public class HealthController : ControllerBase
17
17
{
18
18
private readonly DatabaseConnectionProvider _databaseConnectionProvider ;
19
19
private readonly AzureResourceManagerOptions _azureResourceManagerOptions ;
20
- private readonly AzureStorageOptions _azureStorageOptions ;
21
- private readonly IFileStore _fileStore ;
22
20
23
- public HealthController ( DatabaseConnectionProvider databaseConnectionProvider , IOptions < AzureResourceManagerOptions > azureResourceManagerOptions , IOptions < AzureStorageOptions > azureStorageOptions , IFileStore fileStore )
21
+ public HealthController ( DatabaseConnectionProvider databaseConnectionProvider , IOptions < AzureResourceManagerOptions > azureResourceManagerOptions )
24
22
{
25
23
_databaseConnectionProvider = databaseConnectionProvider ;
26
24
_azureResourceManagerOptions = azureResourceManagerOptions . Value ;
27
- _azureStorageOptions = azureStorageOptions . Value ;
28
- _fileStore = fileStore ;
29
25
}
30
26
31
27
[ HttpGet ]
@@ -48,13 +44,6 @@ public async Task<ActionResult> HealthCheckAsync()
48
44
return BadRequest ( "Exception thrown while trying to query database" ) ;
49
45
}
50
46
51
- var storageAccountOnline = await _fileStore . IsOnline ( _azureStorageOptions . ConnectionString ) ;
52
- if ( ! storageAccountOnline )
53
- {
54
- Console . Error . WriteLine ( "Health: Invalid storage account in StorageOptions!" ) ;
55
- return BadRequest ( "Invalid storage account in StorageOptions" ) ;
56
- }
57
-
58
47
// Verify that resource manager has access to our subscription
59
48
var credentials = new ClientSecretCredential ( _azureResourceManagerOptions . TenantId , _azureResourceManagerOptions . ClientId , _azureResourceManagerOptions . ClientSecret ) ;
60
49
var armClient = new ArmClient ( credentials ) ;
0 commit comments