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

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

POWERSHELL TO ENABLE AZURE MFA FOR BULK USER USING BulkUpdateMFASampleFile CSV

POWERSHELL TO ENABLE AZURE MFA FOR BULK USER USING BulkUpdateMFASampleFile CSV This is just extension to the earlier script – POWERSHELL TO ENABLE AZURE MULTI-FACTOR AUTHENTICATION FOR BULK USER Azure provide option to update bulk user from Azure portal using sample CSV file available at https://account.activedirectory.windowsazure.com/UserManagement/BulkUpdateMfa/BulkUpdateMFASampleFile.csv . you just need to add user and new MFA state […]

Continue Reading

Powershell to enable Azure multi-factor authentication for bulk user

How to  enable Azure multi-factor authentication for bulk user using powershell? MFA helps secure user sign-ins for cloud services beyond just a single password. With MFA for Office 365, users are required to acknowledge a phone call, text message, or app notification on their smart phones after correctly entering their passwords. They can sign in […]

Continue Reading