Skip to content

Refactor away use of az CLI #15

@greggroth

Description

@greggroth

The az bash CLI is an implicit requirement to get the master key here:

if ($SubscriptionId) {
$masterKey = az cosmosdb keys list --name $Database --query primaryMasterKey --output tsv --resource-group $ResourceGroup --subscription $SubscriptionId
}
else {
$masterKey = az cosmosdb keys list --name $Database --query primaryMasterKey --output tsv --resource-group $ResourceGroup
}

it would be better if this was refactored to use Get-AzCosmosDBAccountKey so the bash CLI isn't required

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions