{"id":11171,"date":"2015-09-29T16:49:00","date_gmt":"2015-09-29T16:49:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2015\/09\/29\/powershell-dsc-for-linux-version-1-1-is-now-available-and-new-linux-resources\/"},"modified":"2019-02-18T12:38:28","modified_gmt":"2019-02-18T19:38:28","slug":"powershell-dsc-for-linux-version-1-1-is-now-available-and-new-linux-resources","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/powershell-dsc-for-linux-version-1-1-is-now-available-and-new-linux-resources\/","title":{"rendered":"PowerShell DSC for Linux version 1.1 is Now Available! And New Linux Resources!"},"content":{"rendered":"<p><span style=\"font-family: Calibri;font-size: small\">We are pleased to announce the availability of PowerShell DSC for Linux version 1.1. You can download this release <\/span><a href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=49150\"><span style=\"color: #0563c1;font-family: Calibri;font-size: small\">here<\/span><\/a><span style=\"font-family: Calibri;font-size: small\">, or grab the <\/span><a href=\"https:\/\/github.com\/MSFTOSSMgmt\/WPSDSCLinux\"><span style=\"color: #0563c1;font-family: Calibri;font-size: small\">source code<\/span><\/a><span style=\"font-family: Calibri;font-size: small\"> here. This release implements the following new scenarios:<\/span><\/p>\n<ul>\n<li><strong><span><strong>Support for Azure Automation DSC<br \/><\/strong><\/span><\/strong><a href=\"https:\/\/azure.microsoft.com\/en-us\/documentation\/articles\/automation-dsc-overview\/\">Azure Automation DSC<\/a> builds on top of the fundamentals introduced in PowerShell DSC to provide an even easier configuration management experience. Azure Automation DSC brings the same management layer to <a href=\"https:\/\/technet.microsoft.com\/library\/dn249912.aspx\">PowerShell Desired State Configuration<\/a> as Azure Automation offers for PowerShell scripting today. Azure Automation DSC allows you to author and manage PowerShell Desired State Configurations, import DSC Resources, and generate DSC Node Configurations (MOF documents), all in the cloud. These DSC items will be placed on the Azure Automation <a href=\"https:\/\/technet.microsoft.com\/library\/dn249913.aspx\">DSC pull server<\/a> so that target nodes (such as physical and virtual machines) in the cloud or on-premises can pick them up, automatically conform to the desired state they specify, and report back on their compliance with the desired state to Azure Automation. DSC for Linux v1.1 now supports use of Azure Automation DSC as the Pull Server and Reporting Server for Linux machines.<\/li>\n<li><strong>Support for &ldquo;Separation of Configuration and Node IDs&rdquo;<br \/> <\/strong>Available in <a href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=48729\"><span style=\"color: #0563c1\">WMF5<\/span><\/a> April Preview and later, this feature allows for creation of named configurations that can be applied to many computers through a Pull Server. This eliminates the need to keep track of the unique agent IDs when using a Pull Server to distribute configuration to DSC-managed computers. DSC for Linux nodes are now registered with the Pull Server using a shared secret. For more information, please reference the <a href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=48729\"><span style=\"color: #0563c1\">WMF5 Release Notes<\/span><\/a>.<span style=\"font-family: Calibri;font-size: small\"><br \/><\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: Calibri;font-size: small\">Version 1.1 also includes all cumulative fixes in resources made to date. <\/span><\/p>\n<p><span style=\"font-family: Calibri;font-size: small\">For more information on this release, please review the <\/span><a href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=49150\"><span style=\"color: #0563c1;font-family: Calibri;font-size: small\">DSC for Linux v1.1. release notes<\/span><\/a><span style=\"font-family: Calibri;font-size: small\">.<\/span><\/p>\n<h2><strong><span style=\"font-family: Calibri;font-size: small\">New Linux Resources<\/span><\/strong><\/h2>\n<p><span style=\"font-family: Calibri;font-size: small\">The following new DSC for Linux resources are now available. These are available on the <\/span><a href=\"https:\/\/www.powershellgallery.com\/\"><span style=\"color: #0563c1;font-family: Calibri;font-size: small\">PowerShell gallery,<\/span><\/a><span style=\"font-family: Calibri;font-size: small\"> included in the <\/span><a href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=46919\"><span style=\"color: #0563c1;font-family: Calibri;font-size: small\">DSC for Linux<\/span><\/a><span style=\"font-family: Calibri;font-size: small\"> download package, and available as <\/span><a href=\"https:\/\/github.com\/MSFTOSSMgmt\/WPSDSCLinux\"><span style=\"color: #0563c1;font-family: Calibri;font-size: small\">source code<\/span><\/a><span style=\"font-family: Calibri;font-size: small\">. The additional modules can be distributed to the Linux agents through your on-premises Pull Server, Azure Automation DSC, or installed locally on the Linux computer with the InstallModule.py script. <\/span><\/p>\n<p><strong><span style=\"font-family: Calibri;font-size: small\">Module: nxComputerManagement<\/span><\/strong><\/p>\n<ul>\n<li>\n<p><strong>nxComputer<br \/> <\/strong>Manage the configured hostname, DNS domain name, and time zone for a Linux computer.<\/p>\n<\/li>\n<\/ul>\n<p><strong><span style=\"font-family: Calibri;font-size: small\">Module: nxNetworking<\/span><\/strong><\/p>\n<ul>\n<li>\n<p><strong>nxIPAddress<br \/> <\/strong>Manage the IPv4\/IPv6 configuration of Ethernet interfaces for a Linux computer<\/p>\n<\/li>\n<li>\n<p><strong>nxDNSServerAddress<br \/> <\/strong>Manage the DNS client settings for a Linux computer.<\/p>\n<\/li>\n<li>\n<p><strong>nxFirewall<br \/> <\/strong>Manage the firewall rule configuration for a Linux computer. Supports Iptables, Ip6tables, ufw, yast firewall, susefirewall2, and firewalld<\/p>\n<\/li>\n<\/ul>\n<p><span>Here&rsquo;s an example of configuring the networking settings for an Ubuntu Linux server:<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"623\">\n<p><code class=\"cplusplus\">Configuration DemoNetworking{<br \/> Import-DSCResource -Module nx<br \/> Import-DSCResource -Module nxNetworking<br \/> Node &ldquo;LinuxServer&rdquo;{<br \/><\/code><\/p>\n<p><code class=\"cplusplus\">nxIPAddress Eth1{<br \/>&nbsp;&nbsp;&nbsp; InterfaceName = \"eth1\"<br \/>&nbsp;&nbsp;&nbsp; IPAddress = \"192.168.12.101\"<br \/>&nbsp;&nbsp;&nbsp; PrefixLength = \"24\"<br \/>&nbsp;&nbsp;&nbsp; BootProtocol = \"static\"<br \/> }<\/p>\n<p> nxService FWD{<br \/>&nbsp;&nbsp; &nbsp;Name = \"firewalld\"<br \/>&nbsp;&nbsp;&nbsp; Enabled = $true<br \/>&nbsp;&nbsp;&nbsp; State = \"Running\"<br \/>&nbsp;&nbsp;&nbsp; Controller = \"systemd\"<br \/>}<br \/>&nbsp;<br \/> nxFirewall WsManIn {<br \/>&nbsp; &nbsp;Name = \"Allow wsman in\"<br \/>&nbsp;&nbsp; InterfaceName = \"eth0\"<br \/>&nbsp;&nbsp; FirewallType = \"firewalld\"<br \/>&nbsp;&nbsp; Ensure = \"Present\"<br \/>&nbsp;&nbsp; Access = \"Allow\"<br \/>&nbsp;&nbsp; Direction = \"Input\"<br \/>&nbsp;&nbsp; DestinationPort = \"5986\"<br \/>&nbsp;&nbsp; Position = \"Before-End\"<br \/>}<\/p>\n<p> nxFirewall FWConfig {<br \/>&nbsp; &nbsp;Name = \"Allow http in\"<br \/>&nbsp; &nbsp;InterfaceName = \"eth0\" <br \/>&nbsp;&nbsp; FirewallType = \"firewalld\"<br \/>&nbsp;&nbsp; Ensure = \"Present\"<br \/>&nbsp;&nbsp; Access = \"Allow\"<br \/>&nbsp;&nbsp; Direction = \"Input\"<br \/>&nbsp;&nbsp; DestinationPort = \"80\"<br \/>&nbsp;&nbsp; Position = \"Before-End\"<br \/>}<\/p>\n<p> }<br \/> }<\/code><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-family: Calibri;font-size: small\">&nbsp;<\/span><\/p>\n<p><strong><span style=\"font-family: Calibri;font-size: small\">&nbsp;<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are pleased to announce the availability of PowerShell DSC for Linux version 1.1. You can download this release here, or grab the source code here. This release implements the following new scenarios: Support for Azure Automation DSCAzure Automation DSC builds on top of the fundamentals introduced in PowerShell DSC to provide an even easier [&hellip;]<\/p>\n","protected":false},"author":605,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[142,150,212,248,348],"class_list":["post-11171","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-desired-state-configuration","tag-dsc","tag-linux","tag-powershell","tag-windows-powershell-desired-state-configuration"],"acf":[],"blog_post_summary":"<p>We are pleased to announce the availability of PowerShell DSC for Linux version 1.1. You can download this release here, or grab the source code here. This release implements the following new scenarios: Support for Azure Automation DSCAzure Automation DSC builds on top of the fundamentals introduced in PowerShell DSC to provide an even easier [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/11171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/605"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=11171"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/11171\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=11171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=11171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=11171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}