pub struct ArmClient { /* private fields */ }Expand description
Azure Resource Manager client for subscription/service discovery
Implementations§
Source§impl ArmClient
impl ArmClient
Sourcepub fn new() -> Result<Self, ClientError>
pub fn new() -> Result<Self, ClientError>
Create a new ARM client using Azure CLI credentials
Sourcepub async fn list_subscriptions(&self) -> Result<Vec<Subscription>, ClientError>
pub async fn list_subscriptions(&self) -> Result<Vec<Subscription>, ClientError>
List subscriptions the user has access to
Sourcepub async fn list_search_services(
&self,
subscription_id: &str,
) -> Result<Vec<SearchService>, ClientError>
pub async fn list_search_services( &self, subscription_id: &str, ) -> Result<Vec<SearchService>, ClientError>
List Azure AI Search services in a subscription
Sourcepub async fn find_resource_group(
&self,
subscription_id: &str,
service_name: &str,
) -> Result<String, ClientError>
pub async fn find_resource_group( &self, subscription_id: &str, service_name: &str, ) -> Result<String, ClientError>
Find the resource group of a search service by scanning the subscription.
Returns the resource group name extracted from the service’s ARM resource ID.
Sourcepub async fn list_ai_services_accounts(
&self,
subscription_id: &str,
) -> Result<Vec<AiServicesAccount>, ClientError>
pub async fn list_ai_services_accounts( &self, subscription_id: &str, ) -> Result<Vec<AiServicesAccount>, ClientError>
List Azure AI Services accounts in a subscription (filtered to kind=AIServices)
Sourcepub async fn list_foundry_projects(
&self,
account: &AiServicesAccount,
subscription_id: &str,
) -> Result<Vec<FoundryProject>, ClientError>
pub async fn list_foundry_projects( &self, account: &AiServicesAccount, subscription_id: &str, ) -> Result<Vec<FoundryProject>, ClientError>
List Microsoft Foundry projects under a specific AI Services account.
Projects are sub-resources at:
Microsoft.CognitiveServices/accounts/{accountName}/projects
The account_id should be the full ARM resource ID of the account,
from which we extract the resource group.
Sourcepub async fn list_storage_accounts(
&self,
subscription_id: &str,
resource_group: &str,
) -> Result<Vec<StorageAccount>, ClientError>
pub async fn list_storage_accounts( &self, subscription_id: &str, resource_group: &str, ) -> Result<Vec<StorageAccount>, ClientError>
List storage accounts in a resource group.
Sourcepub async fn get_storage_account_key(
&self,
subscription_id: &str,
resource_group: &str,
account_name: &str,
) -> Result<String, ClientError>
pub async fn get_storage_account_key( &self, subscription_id: &str, resource_group: &str, account_name: &str, ) -> Result<String, ClientError>
Get the primary access key for a storage account.
Sourcepub async fn get_storage_connection_string(
&self,
subscription_id: &str,
resource_group: &str,
account_name: &str,
) -> Result<String, ClientError>
pub async fn get_storage_connection_string( &self, subscription_id: &str, resource_group: &str, account_name: &str, ) -> Result<String, ClientError>
Build a full connection string for a storage account.