Skip to main content

fetch_account_key

Function fetch_account_key 

Source
pub fn fetch_account_key(
    account: &str,
    identity: &AzureAuth,
    env: &Environment<'_>,
) -> Result<String, String>
Expand description

The first access key of account, as the Portal fetches them for someone with Owner or Contributor and no data role: Resource Graph for the account’s ID and whether it allows shared keys, then listKeys with a management token from identity.