Skip to content

Commit

Permalink
{cognitiveservices} Fix #23056: Add more samples for user owned stora… (
Browse files Browse the repository at this point in the history
#23754)

* {cognitiveservices} Fix #23056: Add more samples for user owned storage and user owned key vault for encryption 

Fix #23056

* {cognitiveservices} Fix #23056: Fixing build errors

* {cognitiveservices} Fix #23056: Fix build errors

* {cognitiveservices} Fix #23056: Fix build errors

* {cognitiveservices} Fix #23056: Fix build errors
  • Loading branch information
RakeshMohanMSFT authored Sep 2, 2022
1 parent b1c7966 commit 12c08fa
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/azure-cli/azure/cli/command_modules/cognitiveservices/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,25 @@
- name: Manage Azure Cognitive Services accounts. (autogenerated)
text: az cognitiveservices account create --kind Face --location WestEurope --name myresource --resource-group myResourceGroup --sku S0 --subscription MySubscription --yes
crafted: true
- name: Create a Text Analytics Cognitive Services account in West Europe without confirmation required and use customer owned storage.
text: |
az cognitiveservices account create -n myresource -g myResourceGroup --assign-identity --kind TextAnalytics --sku S -l WestEurope --yes
--storage '[
{
"resourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount"
}
]'
- name: Create a Text Analytics Cognitive Services account in West Europe without confirmation required and user Customer-managed encryption.
text: |
az cognitiveservices account create -n myresource -g myResourceGroup --assign-identity --kind TextAnalytics --sku S -l WestEurope --yes
--encryption '{
"keySource": "Microsoft.KeyVault",
"keyVaultProperties": {
"keyName": "KeyName",
"keyVersion": "secretVersion",
"keyVaultUri": "https://issue23056kv.vault.azure.net/"
}
}'
"""

helps['cognitiveservices account delete'] = """
Expand Down

0 comments on commit 12c08fa

Please sign in to comment.