Skip to main content

Posts

Cool Feature! Virtual Machine Scale Set with spot and standard VMs (Spot Priority Mix) Hi All! Azure offers spot and standard mixed virtual machine scale sets feature generally available now. First, Let us refresh what is meant by spot ? Spot is nothing but azure offers some unused azure capacity VMs with uncertainity i.e for example, azure finds/has some VMs capacity unused which can be assigned/allocated to you based on your request with low cost than PAYG but azure can terminate/discontinue the spot allocated VM when it is requested by Pay-as-you-go-user. Here before, VMSS had only standard (PAYG) VM without spot but now we can get VMs with both spot and standard mixed. Please find the below steps and picture This feature works only in Flexible Orchestration Mode. So choose Flexible instead of Uniform. Check the "Run with Azure Spot discount" Click Next "Spot" Check the "Scale with VMs and Spot VMs" Mention the total number o
Wow! Monitor web apps running in azure VM and VMSS via app insights Hi All! Application insights monitors the telemetry of web applications, function app, APIM and etc., Consider a scenario that your organization has some web applications hosted in IIS of an azure VM and they want to monitor performance of those applications. Azure VM was not the eligible candidate to map with Application insights then how can we monitor app(s) running inside azure VM? Now azure offers the feature of monitoring azure vm's web applications through application insights generally available. Please follow the below steps and have a look into the picture You need to have a connection string of an existing application insights. If have, copy it. Go to the VM which has web apps running in IIS Click "Extension+applications" and then click Add Find Application insights agent for .NET and click next Paste the copied connection string of app insights and click Review+Cre
View powershell history and invoke Hi All! When you do administration activities, you may need to work around with multiple commands in powershell. It is bit difficul to remember all the commands we tried because some of them may be fetched from internet. Consider you tried more than 100 commands in current powershell session and may require to try the same large command. One of the way is you can press up arrow many times to see the previously tried command. we have another easy way is to see the history and invoke it by using its order number instead of whole command typing. Please look into the below example
Powershell Set Execution Policy ways Hi All! Execution policy acts as a controller which limits the script execution and loads confguration files in powershell. For example, I need not my powershell to run scripts which I downloaded from internet which does not have digital signature. To achieve it, I need to set the execution policy as RemoteSigned. Let's see the example how to see the current execution policy and change it from the below illustration. we have different types of execution policies in powershell AllSigned ByPass RemoteSigned Default Unrestricted Restricted Undefined
New Easy Powershell Editor Hi All! There are some editors for powershell scripting but we typically prefer editor based on our conveniences. It is good to know about some editors even though we are not using it. we use windows powershell or powershell ISE or VS Code or even notepad but some editors provide additional features like intellisense for ex: (pwsh ISE) when compared with notepad. In this post, we are going to see a new editor called PSEditor which offers below main features over other editors. Showing errors/syntax errors without executing script. Instead of whole script execution, we can execute the selected part. Auto formatting/alignment of script using ctrl+shift+R Please look into the below image and try at your end. Happy Learning and Enjoy!
Avoid YAML Validation error in azure devops pipeline Hi All! Consider a scenario that you committed a YML CI/CD file on the repository with some syntax, indentation and/or other error(s). so that pipeline failed. After you find some errors and rectified in the repository file and committed again but pipeline still gets failed because some errors are still there. Now you afraid that even if you fixed error in all the places, what happens if pipeline failed again because your project lead or manager set up build notification mail trigger for build success and fails. you need to answer them for build fail reason. Azure devops pipelines offers YAML validation feature after altered and before committed and before run pipeline. To utilize this feature, what we do is, Instead of modifying the file from repository, Do as below Go to the specific build click "Edit Pipeline" Modify/fix errors and click "validate" as shown in the picture below
Find performance of Running Docker container Hi All! Nowdays, Most of the organizations prefer application containerization (micro services) rather than monolithic. So that, entire application need not be modified or get affected Docker is one of the famous and widely used containerization tool Docker has many commands to build a image, run the image as container and much more. In this post, we are going to see about the performance like CPU usage of the running docker container. By using docker stats {containerid/containername} we can find/get some informations as below. we can pass containername instead of containerid in docker stats command. Both of the below works Format: docker stats {containername} -> Ex: docker stats blobctr Format: docker stats {containerid} -> Ex: docker stats fb1aa6a9682154ce491 We'll refresh many more docker commands in upcoming posts.