azure-cli

Create Azure Key Vault Secrets with Azure CLI drops caret ^ character in value

假装没事ソ 提交于 2021-01-07 06:33:15
问题 I am trying to create a new Azure Key Vault secret using the Azure Cli v2.9.0 (we use this version in our pipelines and upgrading would be difficult at the moment.) via the command below, az keyvault secret set --vault-name $myKeyVaultName -n $mySecretName --value "abc^def" The command is accepted and a new secret is created but it drops the caret (^) from the string and results in a secret value of abcdef instead of the intended abc^def. During my testing I have seen the below message from

Create Azure Key Vault Secrets with Azure CLI drops caret ^ character in value

感情迁移 提交于 2021-01-07 06:32:53
问题 I am trying to create a new Azure Key Vault secret using the Azure Cli v2.9.0 (we use this version in our pipelines and upgrading would be difficult at the moment.) via the command below, az keyvault secret set --vault-name $myKeyVaultName -n $mySecretName --value "abc^def" The command is accepted and a new secret is created but it drops the caret (^) from the string and results in a secret value of abcdef instead of the intended abc^def. During my testing I have seen the below message from

How to populate a CosmosDB collection by command line?

只谈情不闲聊 提交于 2020-07-23 03:59:11
问题 I am developing a set of Scripts for Azure and I would like to know how to populate a CosmosDB collection with az . Currently, I know how to create a Database and Collection but how to initialize the Database? az cosmosdb create \ --resource-group $RESOURCE_GROUP \ --name $COSMOS_DB_ACCOUNT az cosmosdb database create \ --resource-group-name $RESOURCE_GROUP \ --name $COSMOS_DB_ACCOUNT \ --db-name $COSMOS_DB_NAME az cosmosdb collection create \ --resource-group-name $RESOURCE_GROUP \ --name