Followers

Azure DevOps - PowerShell Desired State Configuration - Extension - Resources

Azure DevOps - PowerShell Desired State Configuration - Extension - Resources   Create a Windows VM and open port 80 in the Azure portal.  C...

Azure DevOps - PowerShell Desired State Configuration - Extension - Resources

 Create a Windows VM and open port 80 in the Azure portal.

 Create a file named WebRole.ps1 and add the following contents

  1. Configuration DScConfiguration {
  2. Node $AllNodes.Where{$_.Role -eq "WebServer"}.NodeName
  3. {
  4. WindowsFeature IISInstall {
  5. Ensure = 'Present'
  6. Name = 'Web-Server'
  7. }
  8.  
  9. }}

 You need to zip this file

 Create a data configuration file as InstallWebconfig.psd1 and add the following contents

  1. @{
  2. AllNodes = @(
  3.  
  4. @{
  5. NodeName = "localhost"
  6. Role = "WebServer"
  7. }
  8. )
  9. }

Upload these files to a storage account.

In the VM select Extensions + applications and Add PowerShell Desired Configuration with the below details.



Click on Review + Create

Once the extension is added then you can browse the default IIS Page on the browser with VM public IP Address.

COMMENTS

Name

Ansible,6,AWS,1,Azure DevOps,1,Containerization with docker,2,DevOps,2,Docker Quiz,1,Docker Swarm,1,DockerCompose,1,ELK,2,git,2,Jira,1,Kubernetes,1,Kubernetes Quiz,5,SAST DAST Security Testing,1,SonarQube,3,Splunk,2,vagrant kubernetes,1,YAML Basics,1,
ltr
item
DevOpsWorld: Azure DevOps - PowerShell Desired State Configuration - Extension - Resources
Azure DevOps - PowerShell Desired State Configuration - Extension - Resources
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE3t831i-QxTRiMvL047OmG9BOYlajijxda3metDRC5pXfLly6expFBQnTePgzf8SLjAkbZtyC5mAgcl4yRV3q4FGajmETVe2XMOojx6QsY0h3Ti89rn3f4K1bmFlRqdAWXFcatYqaxpBJFmvktcGUxFMEwdGOBIANTUxxMDW89bGSAfTU6oX5Gud4/w494-h316/ImportAzureRepos-2.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE3t831i-QxTRiMvL047OmG9BOYlajijxda3metDRC5pXfLly6expFBQnTePgzf8SLjAkbZtyC5mAgcl4yRV3q4FGajmETVe2XMOojx6QsY0h3Ti89rn3f4K1bmFlRqdAWXFcatYqaxpBJFmvktcGUxFMEwdGOBIANTUxxMDW89bGSAfTU6oX5Gud4/s72-w494-c-h316/ImportAzureRepos-2.jpg
DevOpsWorld
https://www.devopsworld.co.in/2022/06/azure-devops-powershell-desired-state.html
https://www.devopsworld.co.in/
https://www.devopsworld.co.in/
https://www.devopsworld.co.in/2022/06/azure-devops-powershell-desired-state.html
true
5997357714110665304
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content