Powershell DSC error – No matching MSFT_DNSClientServerAddress objects found by CIM query for instances of the ROOT/StandardCimv2/MSFT_DNSClientServerAddress class on the CIM server

Powershell DSC error – No matching MSFT_DNSClientServerAddress objects found by CIM query for instances of the ROOT/StandardCimv2/MSFT_DNSClientServerAddress class on the CIM server   Background –  I was trying to deploy azure dsc extension to add ADDS role on new azure vm using ARM template (extension resource under compute resource). Extension – active-directory-new-domain-ha-2-dc and AD Error –  { “status”: “Failed”, “error”: […]

Continue Reading

Powershell DSC error – Cannot bind argument to parameter ‘ResourceKey’ because it is an empty string.

Powershell DSC error – Cannot bind argument to parameter ‘ResourceKey’ because it is an empty string.   Background –  I was trying to deploy azure dsc extension to add ADDS role on new azure vm using ARM template (extension resource under compute resource).   Error –  code”: “ResourceDeploymentFailure”, “message”: “The resource operation completed with terminal […]

Continue Reading

Azure https trigger powershell functions is showing disabled – (disabled) functionName

Azure https trigger powershell functions is showing disabled – (disabled) functionName Solution – : The disabled metadata property is in function.json which is suppose to determines whether a function is enabled or disabled.  to enable the azure function you need to mobify the value in function.json under the disabled function Below are simple steps to do so :- From […]

Continue Reading

Error – To allow this website to provide information personalized for you, will you allow it to put a small file (called a cookie) on your computer?

Error – To allow this website to provide information personalized for you, will youallow it to put a small file (called a cookie) on your computer?” Problem -> Whenever we use powershell  “Invoke-WebRequest” command to access website with cookies then its gives warning as below: powershell> Invoke-WebRequest http://microsoft.com Warning: “To Allow this website to provide information personalized for […]

Continue Reading

Azure ARM json parsing error: Additional text encountered after finished reading JSON content

Azure ARM json parsing error: Additional text encountered after finished reading JSON content Error: Test-AzureRmResourceGroupDeployment : Cannot retrieve the dynamic parameters for the cmdlet. Additional text encountered after finished reading JSON content: }. Path ”, line 184, position 1. At line:1 char:1 Solution:-> 1>make sure that you dont have any additional brackets in your code. the […]

Continue Reading

how to point resources from another resource group in azure ARM template

how to point azure resources from another resource group in azure ARM template If you want to use any existing azure resource in ARM template which is in different resource group  then yes that is possible and its quite simple. Why?  – well this is required in may cases but as an example (shown in […]

Continue Reading

Create Azure service fabric cluster with ARM template and powershell

Create Azure service fabric cluster with ARM template and powershell This step-by-step guide walks you through setting up a secure Azure Service Fabric cluster with scale set, storage accounts, load balancer in Azure by using Azure Resource Manager. note – Key vault , Reverse proxy and vm scale set auto scaling is not included in […]

Continue Reading

powershell script to create self signed certificate

powershell script to create self signed certificate Problem -> Sometime while performing any application test or configuring test environment it is difficult to buy certificate so better option is to use self sigh certificate. There are multiple ways to generate self sign certificate, Prior to PowerShell 4.0, you needed to download MakeCert.exe or another utility to […]

Continue Reading

How to delete all resources from Azure resource group with specific tag

Powershell  to delete all resources from Azure resource group with specific tag Problem ->  If we want to cleanup all resource for cost saving and if the all resources have some tag set then we can remove all resources automatically using powershell Solution 1 – delete all resources with specific tag across subscription $tagname = […]

Continue Reading