azure

Can I access multiple azure accounts with azure-cli from the same machine at same time?

牧云@^-^@ 提交于 2021-02-16 08:45:50
问题 We actually have multiple azure accounts (for some valid reason) and I want to be able to run azure-cli commands for different accounts at the same time from the same machine. The problem with that is, once I login to one azure account with azure login , token will be stored in ~/.azure directory so I am not sure if I can login into another account exactly at the same time on that machine. Is there any way to tell azure-cli not to store token in local profile so that I can use azure-cli to

Can I access multiple azure accounts with azure-cli from the same machine at same time?

六月ゝ 毕业季﹏ 提交于 2021-02-16 08:45:08
问题 We actually have multiple azure accounts (for some valid reason) and I want to be able to run azure-cli commands for different accounts at the same time from the same machine. The problem with that is, once I login to one azure account with azure login , token will be stored in ~/.azure directory so I am not sure if I can login into another account exactly at the same time on that machine. Is there any way to tell azure-cli not to store token in local profile so that I can use azure-cli to

IoT Hub message routing with DeviceLifecycleEvents source does not work

好久不见. 提交于 2021-02-16 05:32:30
问题 I am already using an IoT Hub and have configured message routing to route TwinChangeEvents to an Event Hub. An Azure function with an EventHubTrigger processes the messages. This works perfectly fine. Now, I wanted to configure message routing to route DeviceLifecycleEvents to another Event Hub. Again, another Azure function with an EventHubTrigger should process the messages. However, the function is not triggered when I connect or disconnect devices. When I change the data source of the

Azure Lifecycle Management - Regions

ぃ、小莉子 提交于 2021-02-11 18:20:32
问题 I've got an storage account in 'North Europe' and now I want to use the lifecycle management to move the cold blobs to archive tier. But I everytime I try I get the following failure: Failed to add a lifecycle management rule for storage account 'myStorrageAccount'. Error: ManagementPolicy rule MoveBackupToArchiv is invalid. Invalid value for parameter : baseBlob, tierToArchive is not supported in this region currently. I checked all my data in the container and every file is on cold storage.

Azure Lifecycle Management - Regions

陌路散爱 提交于 2021-02-11 18:18:18
问题 I've got an storage account in 'North Europe' and now I want to use the lifecycle management to move the cold blobs to archive tier. But I everytime I try I get the following failure: Failed to add a lifecycle management rule for storage account 'myStorrageAccount'. Error: ManagementPolicy rule MoveBackupToArchiv is invalid. Invalid value for parameter : baseBlob, tierToArchive is not supported in this region currently. I checked all my data in the container and every file is on cold storage.

Can we have multiple readers(reading records through pagination) in a single batch job

巧了我就是萌 提交于 2021-02-11 17:52:25
问题 I have a spring batch job to be written . where : I need to read say 10k records through pagination(fetching 1000 rec at a time) (from azure SQL db) I need to use 1000 records at a time and then use one column of these records(say some id) to read corresponsing records from another cosmos db table. How do I implement 2 readers in this case as I need to read 1000 records at a time and again fetch records from cosmos db for those 1000 records first and process that. 回答1: There is a common

Encrypting image data before uploading to azure blob storage

放肆的年华 提交于 2021-02-11 17:45:30
问题 I have the following code that uploads an image to Azure blob storage. I would like to encrypt the image data before uploading to the blob. I already have a helper class for encrypting and decrypting that I can use by calling AESEncryption.Encrypt("plainText", "key", salt"); I'm just trying to figure out how tom integrate my encryption method into the code. Also, I'm guessing that once it's encrypted instead of calling blob.UploadFromFile() I will be calling blob.UploadFromByteArray(). public

Azure Resource Group Sharing

馋奶兔 提交于 2021-02-11 17:00:45
问题 I was wondering if someone could help. Is it possible to share resource groups between azure subscriptions; A little bit of background, I have two subscriptions in azure under one tenant, I am after setting up a VPN between each of the subscriptions, however I am yet to find a solution that doesn't involve sharing a resource group to allow connections. With this in mind, is it possible to share resource groups between subscriptions or does it have to be in the same subscription? If this is

Deploying Azure Webjobs from Jenkins pipeline

筅森魡賤 提交于 2021-02-11 17:00:04
问题 Please guide me to setup the procedure how to deploy the azure web jobs from Jenkins Pipeline. I have gone through the google of searching the documentation but couldn't able to make it. 回答1: After many tests I did it by adding the OutputPath parameter in the deploy script and deleting the folder before. The script looks like this: dir('Publish'){ deleteDir() } bat "\"${tool 'Your MS Build'}\" Path_To_Project.csproj /p:Configuration=Release /p:DeployOnBuild=true /p:AllowUntrustedCertificate

Azure Resource Group Sharing

£可爱£侵袭症+ 提交于 2021-02-11 17:00:02
问题 I was wondering if someone could help. Is it possible to share resource groups between azure subscriptions; A little bit of background, I have two subscriptions in azure under one tenant, I am after setting up a VPN between each of the subscriptions, however I am yet to find a solution that doesn't involve sharing a resource group to allow connections. With this in mind, is it possible to share resource groups between subscriptions or does it have to be in the same subscription? If this is