Class AzureResourceManagerService
- Namespace
 - FoundationaLLM.Common.Services.Azure
 
- Assembly
 - FoundationaLLM.Common.dll
 
Provides services to interact with the Azure Resource Manager (ARM) infrastructure.
public class AzureResourceManagerService : IAzureResourceManagerService
  - Inheritance
 - 
      
      AzureResourceManagerService
 
- Implements
 
- Inherited Members
 
- Extension Methods
 
Constructors
AzureResourceManagerService(ILogger<AzureResourceManagerService>)
Provides services to interact with the Azure Resource Manager (ARM) infrastructure.
public AzureResourceManagerService(ILogger<AzureResourceManagerService> logger)
  Parameters
loggerILogger<AzureResourceManagerService>The logger used for logging.
Methods
CreateEventGridNamespaceTopicSubscription(string, string, string, List<string>, CancellationToken)
Creates a new Azure Event Grid namespace topic subscription.
public Task<bool> CreateEventGridNamespaceTopicSubscription(string namespaceResourceId, string topicName, string topicSubscriptionName, List<string> includedEventTypes, CancellationToken cancellationToken)
  Parameters
namespaceResourceIdstringThe Azure resource identifier of the Azure Event Grid namespace.
topicNamestringThe name of the topic for which the subscription should be created.
topicSubscriptionNamestringThe name of the subscription to be created.
includedEventTypesList<string>The list of event types to include in the subscription as part of the filters configuration.
cancellationTokenCancellationTokenThe CancellationToken signaling the request to cancel the operation.
Returns
DeleteEventGridNamespaceTopicSubscription(string, string, string, CancellationToken)
Deletes an Azure Event Grid namespace topic subscription.
public Task DeleteEventGridNamespaceTopicSubscription(string namespaceResourceId, string topicName, string topicSubscriptionName, CancellationToken cancellationToken)
  Parameters
namespaceResourceIdstringThe Azure resource identifier of the Azure Event Grid namespace.
topicNamestringThe name of the topic for which the subscription should be deleted.
topicSubscriptionNamestringThe name of the subscription to be deleted.
cancellationTokenCancellationTokenThe CancellationToken signaling the request to cancel the operation.
Returns
GetOpenAIAccountProperties(string)
Retrieves the properties of an Azure OpenAI account.
public Task<AzureOpenAIAccount> GetOpenAIAccountProperties(string openAIAccountResourceId)
  Parameters
openAIAccountResourceIdstringThe Azure resource identifier of the Azure OpenAI account.
Returns
- Task<AzureOpenAIAccount>
 An AzureOpenAIAccount object with the properties of the account, including model deployments.