Skip to main content

Posts

Read/Use keyvault secrets in ARM deployment Hi All As most of us know key vaukt is used for data protection where we can store keys, secrets and certificates. In some of the scenarios, we need to read the secret from key vault while we deploy ARM template. For an example, I want to use same password for my local user account of all the VMs I create. So we can store the secret in key vault and refer it ARM but what an additional setup we need to have in keyvault. so that ARM will be able to use the secret from our keyvault. Please look into the below image Good Day. We'll meet in next post.
Switch and build windows/Linux docker image Hi All Containers and Container orchestrators are occupying the IT development world nowadays to package / bundle the software. We need to choose containers based on windows or linux before build the docker image. Docker Destop is most familiar using one to build docker image. In this article we will see how to see switching from Linux to windows containers. Below is an example for docker linux image building. Below is an example for docker windows image building of the above same linux after we switched (Refer image 1 for switching).
Azure Blob - Convert blob access tier on Page and append blobs Hi All Azure storage account is one of the mostly used service by many people and it has page, append and block blob types on storage blob. To have blobs in "Hot" tier incur some more cost but it is prffered for frequently accessed. so if our blob is required but less access then we can change its access tier to keep it with low cost then at the time of need we can change it back to original type. we can set access tier only for block blobs. For remaining blob types, there is no direct way to set access tiers. so how can we achieve it? we need to change blob type to block blob and apply access tier for it then when we need original blob with appropriate, we need to typecast from the recent one we converted. In the below image, Initially I have an append blob called "1.JPG". when you see it, you could not see its access tier whereas bloc blob shows as "Hot" Now, Let's
Azure Devops - How to use classic pipeline variable group in YAML pipeline Hi All! When we need to use a group of variables in a pipeline, we can go for variable group instead of variables. The main usage of variable group is that can be used it across multiple pipelines in the same project. For example, I have a below variable group in my azure Devops. By default variable groups can be used across classic pipelines without any explicit permission granted but that variable group could not be used by YAML pipelines typically. So, How how can I use that variable group in my YAML pipeline? We can achieve it through "Pipeline permissions" option on top of variable group page. In the below image, I grant permission to my dotnet6app YAML pipeline to use variable group We can revoke if we don't need a YAML pipeline should not access variable group as below. Now, I want my all pipelines should use variable group. I don't want manual intervent
Azure Cloud shell - Switching to powershell from bash vice versa without losing session Hi All! Azure portal has a nice feature called Cloud Shell for scripting purposes to manage and administered via command Lines. Cloud Shell has both powershell and bash terminal. when we want to work with linux related, we can use Bash. Azure CLI commands work in both powershell and bash but most of the people prefers Bash. In a screen of azure portal / cloudshell, we can work with only one terminal at a time. For example, if you are already working on powershell and if you change to bash terminal, you will loss the upto the level of completed commands. There is one way to switch terminals without losing your work as below
Set colors in Linux (PuttY) Terminal Hi All! PuttY is one among the mostly used terminal for Linux and it has foreground white and background black by default. By using the below command, we can change the foreground color. I have tried the below in Redhat Linux. you people can try on different distributions as well. Let's meet in next post. 😊
'0' is false and '1' is true typically but it is different in Linux Hi All I'm happy to hear and get a request from one of my regular blog watcher that he asked me to post Linux related stuffs regularly. I'll try my level best. In most of the programming Languages and scripting languages numeric 0 refers false and 1 refers true but in linux it is different slightly / opposite in a scenario. Come Let's see that in following illustration. we're going to use the following test This command/utility is used to test some conditions. Here we're going to use it for checking file exists or not $? It returns the output of last run above command As per the below execution, If file exists output is 0 otherwise 1 (i.e 0=true and 1=false) we learnt a small different thing. will meet in next post.