<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.3">Jekyll</generator><link href="http://www.pigeonnuggets.com/feed.xml" rel="self" type="application/atom+xml" /><link href="http://www.pigeonnuggets.com/" rel="alternate" type="text/html" /><updated>2023-08-21T13:18:05+00:00</updated><id>http://www.pigeonnuggets.com/feed.xml</id><title type="html">Pigeon Nuggets</title><subtitle>Piegon Nuggets is the technical blog of Adrian Begg with a focus on &quot;cloudy&quot; topics. VMWare Certified Professional (VCP-DV 5/6/6.5), VMWare vExpert 2017-19, VMWare Cloud Provider Specialist competency for 2019.</subtitle><entry><title type="html">Cloud Director service - Part 2 : Configuring custom DNS and Certificates</title><link href="http://www.pigeonnuggets.com/blog/Cloud-Director-service-Part-2/" rel="alternate" type="text/html" title="Cloud Director service - Part 2 : Configuring custom DNS and Certificates" /><published>2020-07-09T18:00:00+00:00</published><updated>2020-07-09T18:00:00+00:00</updated><id>http://www.pigeonnuggets.com/blog/Cloud-Director-service-Part-2</id><content type="html" xml:base="http://www.pigeonnuggets.com/blog/Cloud-Director-service-Part-2/">&lt;p&gt;&lt;sub&gt;&lt;em&gt;Length: 589 words | Estimated Reading Time: 3 minutes&lt;/em&gt;&lt;/sub&gt;&lt;/p&gt;

&lt;p&gt;Today I want to share a quick post on configuring a custom DNS and certificates for a Cloud Director instance. This is typically the step after the initial instance deployment and SDDC association. For this example I will demonstrate the process using the Cloud Director GUI and also via PowerShell with a certificate generated using &lt;a href=&quot;https://certbot.eff.org/&quot;&gt;CertBot&lt;/a&gt; because its free and it works.&lt;/p&gt;

&lt;p&gt;It is important to note that the public DNS records (for the Console Proxy and API/UI) must be resolvable and fully propagated globally before you begin this step or the task will fail to execute due to a verification failure.&lt;/p&gt;

&lt;h2 id=&quot;step-1-get-the-dns-address-for-the-instance&quot;&gt;Step 1. Get the DNS address for the Instance&lt;/h2&gt;
&lt;p&gt;Logon to the &lt;a href=&quot;https://console.cloud.vmware.com/&quot;&gt;VMware Cloud Services portal&lt;/a&gt; and from the Organization hosting your Cloud Director service, select the VMware Cloud Director tile and under the instance menu select the “Open VCD” button.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/vcds-dns-1.png&quot; alt=&quot;alt text&quot; title=&quot;Cloud Director service tile&quot; style=&quot;margin-right: 20px;margin-top: 0px;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/vcds-dns-2.png&quot; alt=&quot;alt text&quot; title=&quot;Cloud Director instance menu&quot; style=&quot;margin-right: 20px;margin-top: 0px;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Logon to the instance using the System Administrator credentials and select Public Addresses from the Administration menu and record the API/Portal DNS records and the Console Proxy address.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/vcds-dns-3.png&quot; alt=&quot;alt text&quot; title=&quot;Cloud Director instance DNS Record&quot; style=&quot;margin-right: 20px;margin-top: 0px;&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;step-2-create-a-cname-record-in-your-dns&quot;&gt;Step 2. Create a CNAME record in your DNS&lt;/h2&gt;
&lt;p&gt;Logon to your public DNS servers/providers DNS portal and create a new CNAME record (eg. clouddirector.pigeonnuggets.com) pointing to the DNS record of the Web Portal/API and a second record for the Console Proxy (eg. clouddirector-console.pigeonnuggets.com)
&lt;img src=&quot;/assets/vcds-dns-4.png&quot; alt=&quot;alt text&quot; title=&quot;Create DNS record.&quot; style=&quot;float: right;margin-right: 20px;margin-top: 0px;&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;step-3-prepare-and-format-the-tls-certificates&quot;&gt;Step 3. Prepare and format the TLS Certificates&lt;/h2&gt;
&lt;p&gt;For this example I will use a wildcard certificate generated using &lt;a href=&quot;https://certbot.eff.org/&quot;&gt;CertBot&lt;/a&gt; however in Production you should use your enterprise trusted certificate authority  to generate a SAN certificate for the service. For a PoC the below process can be used:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Install Certbot&lt;/li&gt;
  &lt;li&gt;Execute “certbot certonly –manual”&lt;/li&gt;
  &lt;li&gt;Specify the domain “*.domain.tld” and when prompted create a TXT record _acme-challenge in the DNS zone&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src=&quot;/assets/vcds-dns-5.png&quot; alt=&quot;alt text&quot; title=&quot;Create Certbot Wildcard certificate.&quot; style=&quot;float: right;margin-right: 20px;margin-top: 0px;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Prepare certificate file (including Root CA, Intermediates and the Certificate) and the Private Key in PEM format (Base64 encoded DER certificate).&lt;/p&gt;

&lt;h2 id=&quot;step-4-install-the-certificate-and-set-custom-dns&quot;&gt;Step 4. Install the Certificate and set Custom DNS&lt;/h2&gt;
&lt;p&gt;Logon to the &lt;a href=&quot;https://console.cloud.vmware.com/&quot;&gt;VMware Cloud Services portal&lt;/a&gt; and from the Organization hosting your Cloud Director service, select the VMware Cloud Director tile and under the instance menu select the “Actions &amp;gt; Associate Custom Domain” and when prompted provide the custom DNS records created in Step 2 and the Certificates created in Step 3.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/vcds-dns-6.png&quot; alt=&quot;alt text&quot; title=&quot;Create Certbot Wildcard certificate.&quot; style=&quot;margin-right: 20px;margin-top: 0px;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/vcds-dns-7.png&quot; alt=&quot;alt text&quot; title=&quot;Create Certbot Wildcard certificate.&quot; style=&quot;margin-right: 20px;margin-top: 0px;&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;step-4-alternative-install-the-certificate-and-set-custom-dns-but-using-powershell&quot;&gt;Step 4. (Alternative) Install the Certificate and set Custom DNS (But using PowerShell)&lt;/h3&gt;
&lt;p&gt;You can also perform the Associate Custom Domain using the VMware.CDS.Community PowerShell module.&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Install-Module -Name VMware.CDS.Community -Scope CurrentUser
Import-Module VMware.CDS.Community
Connect-VCDService -CSPAPIToken &quot;Your token goes here&quot;

[Hashtable] $CloudDirectorEnvironment = @{
    InstanceName = &quot;CloudDirector-TestInstance-01&quot;
    InstanceFQDN = &quot;clouddirector.pigeonnuggets.com&quot;
    ConsoleProxyFQDN = &quot;clouddirector-console.pigeonnuggets.com&quot;
    CertificatePEM = (Get-Content [[Fully Qualified Path to Full Certificate Chain]].pem -Raw)
    CertificateKeyPEM = (Get-Content [[Fully Qualified Path to Certificate Key]].pem -Raw)
}

Set-VCDSDomain @CloudDirectorEnvironment
Disconnect-VCDService
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h2 id=&quot;step-5-test-it-worked&quot;&gt;Step 5. Test it worked&lt;/h2&gt;
&lt;p&gt;Now navigate to your custom domain and check that everything works, you should see your certificate being presented and the DNS resolving to your Cloud Director instance.
&lt;img src=&quot;/assets/vcds-dns-8.png&quot; alt=&quot;alt text&quot; title=&quot;Create Certbot Wildcard certificate.&quot; style=&quot;float: right;margin-right: 20px;margin-top: 0px;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Next it’s time to customize and configure everything else. Any questions or feedback please reach out to me on Twitter (@AdrianBegg) or on the VCPP/vExpert or VMWare Code Public Slack.&lt;/p&gt;</content><author><name>Adrian Begg</name></author><category term="Cloud Director" /><category term="vcpp" /><category term="CDS" /><category term="CloudDirector" /><summary type="html">Today I want to share a quick post on configuring a custom DNS and certificates for a Cloud Director instance. This is typically the step after the initial instance deployment and SDDC association. For this example I will demonstrate the process using the Cloud Director GUI and also via PowerShell with a certificate generated using CertBot because its free and it works.</summary></entry><entry><title type="html">Cloud Director service - Part 1 : VMware.CDS.Community PowerShell module</title><link href="http://www.pigeonnuggets.com/blog/Cloud-Director-service-VMware.CDS.Community-PowerShell-module/" rel="alternate" type="text/html" title="Cloud Director service - Part 1 : VMware.CDS.Community PowerShell module" /><published>2020-07-07T18:00:00+00:00</published><updated>2020-07-07T18:00:00+00:00</updated><id>http://www.pigeonnuggets.com/blog/Cloud-Director-service-VMware.CDS.Community-PowerShell-module</id><content type="html" xml:base="http://www.pigeonnuggets.com/blog/Cloud-Director-service-VMware.CDS.Community-PowerShell-module/">&lt;p&gt;&lt;sub&gt;&lt;em&gt;Length: 1261 words | Estimated Reading Time: 7 minutes&lt;/em&gt;&lt;/sub&gt;&lt;/p&gt;

&lt;p&gt;Today I want to share a quick post on a PowerShell module I published to facilitate code based deployments of VMware Cloud Director instances using VMWare’s recently announced Cloud Director service. I was lucky as an external partner to be involved during the Early Access period of the product development and an early requirement for testing was to develop a repeatable, consistent approach to deploying instances to allow quick stand up and tear down of the environment and lay the foundations for operationalizing a future offering. As my Go skills are currently lacking (and I dislike Python) I opted to hack together a module for PowerShell to cover the basic functions.&lt;/p&gt;

&lt;h1 id=&quot;what-is-cloud-director-service-&quot;&gt;What is Cloud Director service ?&lt;/h1&gt;
&lt;p&gt;Cloud Director service is a SaaS for VMware Cloud Director running on AWS’s Global Infrastructure which is currently in Early Access. It allows VMWare Cloud on AWS (VMC) SDDCs to be consumed as Provider VDCs by a Cloud Director installation also running on AWS’s Global Infrastructure managed by VMware. It allows VMware Cloud Service Providers to spin up VMware Cloud Director (and Provider VDCs backed by VMC) quickly, wherever (hopefully eventually) VMC is available. Have a customer requirement to have a presence in us-east-2 but don’t have a datacenter ? There are a heap of other use cases but agile geo-expansion and being able to offer VMC to smaller customers (that might not have the workload density to move to a full VMC SDDC) are the top of my list.&lt;/p&gt;

&lt;p&gt;Pretty cool stuff in my opinion, with the right tooling you can easily stand up everything you need for a fully configured, customized and ready for customer consumption Cloud Director instance easily within a single working day anywhere the VMC and CDS service are available in a consistent, automated manner.&lt;/p&gt;

&lt;p&gt;In order to use the service your Organization will need to be a VMWare MSP and have the service enabled on your organization. For more information on the process (and the product itself) please see &lt;a href=&quot;https://cloud.vmware.com/cloud-provider-hub/cloud-director-service&quot;&gt;VMware Cloud Director service microsite&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;getting-started&quot;&gt;Getting Started&lt;/h2&gt;
&lt;p&gt;In the below example I will walk through creating a new instance in the us-west-2 Early Access environment (the only available region at the time of writing), associating a VMC SDDC. This assumes that you have already setup a VMC SDDC which will be used as the Resource vCenter for the instance.&lt;/p&gt;

&lt;p&gt;The GitLab project for the module is hosted &lt;a href=&quot;https://github.com/AdrianBegg/VMware.CDS.Community&quot;&gt;here on GitLab&lt;/a&gt;&lt;/p&gt;

&lt;h3 id=&quot;step-1&quot;&gt;Step 1.&lt;/h3&gt;
&lt;p&gt;Install the module either from GitLab or directly from the PowerShell Gallery:&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Install-Module -Name VMware.CDS.Community -Scope CurrentUser
Import-Module VMware.CDS.Community
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;step-2&quot;&gt;Step 2.&lt;/h3&gt;
&lt;p&gt;Logon to VMware Cloud Services and under the Provider Internal Organization that will host the resources generate an API token (My Account &amp;gt; API Tokens &amp;gt; Generate Token) with the VMware Cloud Director role “Cloud Director Administrator”&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/vcds-pwsh-1.png&quot; alt=&quot;alt text&quot; title=&quot;Generate an API Token&quot; style=&quot;float: right;margin-right: 20px;margin-top: 0px;&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;step-3&quot;&gt;Step 3.&lt;/h3&gt;
&lt;p&gt;Connect to the VMware Cloud Service Hub using the Connect-VCDService cmdlet and the API token from Step 2. - this will establish a session and store the session within a Global variable “$VCDService”&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Connect-VCDService -CSPAPIToken &quot;Your token goes here&quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h3 id=&quot;step-4&quot;&gt;Step 4.&lt;/h3&gt;
&lt;p&gt;Create a set of HashTables which will be used to configure the initial instance deployment.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# The CDS Environment to deploy the instance.
[Hashtable] $CloudDirectorEnvironment = @{
    Name = &quot;Early Access Environment&quot;
    Location = &quot;us-west-2&quot;
}

# The Template options
[Hashtable] $CloudDirectorTemplate = @{
    Name = &quot;VCloud Director 10.1.0&quot;
}

# The Cloud Director instance options
[Hashtable] $CloudDirectorInstance = @{
    Name = &quot;CloudDirector-TestInstance-01&quot;
    AdministratorPassword = &quot;P@ssword!123&quot;
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h3 id=&quot;step-5&quot;&gt;Step 5.&lt;/h3&gt;
&lt;p&gt;Create the new instance (takes about 10 - 15 minutes) to complete.&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# Get the Environment and Template Parameters
$CDSEnvironment = Get-VCDSEnvironments @CloudDirectorEnvironment
$CloudDirectorTemplate.Add(&quot;EnvironmentId&quot;,$CDSEnvironment.id)
$CloudDirectorInstance.Add(&quot;EnvironmentId&quot;,$CDSEnvironment.id)

$Template = Get-VCDSTemplates @CloudDirectorTemplate
$CloudDirectorInstance.Add(&quot;TemplateId&quot;,$Template.id)

# Make a call to create a new Cloud Director instance and return the CDS Task object
$TaskInstanceCreate = New-VCDSInstance @CloudDirectorInstance

# Watch the Task and Wait for it to complete
if(!(Watch-VCDSTaskCompleted -Task $TaskInstanceCreate -Timeout 1800)){
    throw &quot;An error occurred creating the instance $($InstanceConfig.Instance.InstanceName) please check the console and try the operation again.&quot;
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;You should also see the new instance in the Cloud Director service portal and the workflows executing. The process typically takes around 15 minutes, the instances actually come online within minutes but there is a delay waiting for the public DNS records to propagate.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/vcds-pwsh-2.png&quot; alt=&quot;alt text&quot; title=&quot;New Cloud Director instance workflow&quot; style=&quot;float: right;margin-right: 20px;margin-top: 0px;&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;step-6&quot;&gt;Step 6.&lt;/h3&gt;
&lt;p&gt;After the instance creation task complete the next step is to Associate a VMC SDDC with the instance which will be used as the Resource vCenter hosting the Cloud Director workloads. This can be any SDDC within the 150ms RT latency boundary of the Cloud Director service (e.g. us-west-2, us-west-1, us-east-1, us-east-2, eu-west-2). You will need to provide the VMC Organization UUID hosting the SDDC, the SDDC Name and an API token with access to the Organization&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# Get the Instance properties of the Cloud Director instance created in previous step
$Instance = Get-VCDSInstances -Name $CloudDirectorInstance.Name -EnvironmentId $CloudDirectorInstance.EnvironmentId

# The SDDC Configuration
[Hashtable] $SDDCInstance = @{
    VMCAPIToken = &quot;SDDC Organisation API token goes here&quot;
    VMCOrganisationUUID = &quot;SDDC Organisation UUID goes here&quot;
    SDDCName = &quot;SDDC Name goes here&quot;
    EnvironmentId = $CloudDirectorInstance.EnvironmentId
    InstanceId = $Instance.id
}

# Register the SDDC and Disconnect
$RegistrationTask = Register-VCDSSDDC @SDDCInstance

Disconnect-VCDService
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;functional-coverage&quot;&gt;Functional Coverage&lt;/h2&gt;
&lt;p&gt;The following cmdlets are available in the current release.&lt;/p&gt;
&lt;h3 id=&quot;session&quot;&gt;Session:&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Connect-VCDService : Establishes a new connection to the VMware Cloud Director service using an API Token from the VMware Console Services Portal&lt;/li&gt;
  &lt;li&gt;Disconnect-VCDService : This cmdlet removes the currently connected VMware Cloud Director service connection.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;environment&quot;&gt;Environment&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Get-VCDSEnvironments : Returns a collection of Cloud Director Service environments for the default CSP environment on the currently available under the currently connected VMware Console Services Portal account.&lt;/li&gt;
  &lt;li&gt;Get-VCDSTemplates : Returns the available templates for the provided Cloud Director Service environment.&lt;/li&gt;
  &lt;li&gt;Get-VCDSInstances : Returns the Cloud Director Service instances currently running under the currently connected VMware Console Services Portal account.&lt;/li&gt;
  &lt;li&gt;New-VCDSInstance : Creates a new instance of Cloud Director Service under the currently connected VMware Console Services Portal account.&lt;/li&gt;
  &lt;li&gt;Remove-VCDSInstance : Deletes an instance of Cloud Director Service under the currently connected VMware Console Services Portal account.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;operations&quot;&gt;Operations:&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;New-VCDSSupportBundle : Generates a Cloud Director support bundle&lt;/li&gt;
  &lt;li&gt;Register-VCDSSDDC : Associate an VMC SDDC with a VMware Cloud Director service instance.&lt;/li&gt;
  &lt;li&gt;Set-VCDSDomain : Configures a Custom DNS name and X.509 SSL certificates for a Cloud Director service instance and Console Proxy endpoints.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;administration&quot;&gt;Administration:&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Get-VCDSTasks : Returns a collection of Tasks from the connected Cloud Director Service environment.&lt;/li&gt;
  &lt;li&gt;Watch-VCDSTaskCompleted : A helper function to monitor a running task and returns True when the task completes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All of the cmdlets in the module should have well described PowerShell help available. For detailed help including examples please use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Get-help &amp;lt;cmdlet&amp;gt; -Detailed&lt;/code&gt; (e.g. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Get-help New-VCDSInstance -Detailed&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;In terms of the future I will attempt to maintain the module as needed however community contributions are very welcome. I personally hope that VMware continues to extend the VMware Cloud terraform provider and adds support for Cloud Director service as this is definitely where all of my future investment in IaC based deployments is heading.&lt;/p&gt;

&lt;p&gt;I expect that the VMware Cloud Director service will be announced for General Availability soon; I hope that this module may be useful for people interested in the product. Any questions or feedback please reach out to me on Twitter (@AdrianBegg) or on the VCPP/vExpert or VMWare Code Public Slack.&lt;/p&gt;</content><author><name>Adrian Begg</name></author><category term="Cloud Director" /><category term="vcpp" /><category term="CDS" /><category term="CloudDirector" /><summary type="html">Today I want to share a quick post on a PowerShell module I published to facilitate code based deployments of VMware Cloud Director instances using VMWare’s recently announced Cloud Director service. I was lucky as an external partner to be involved during the Early Access period of the product development and an early requirement for testing was to develop a repeatable, consistent approach to deploying instances to allow quick stand up and tear down of the environment and lay the foundations for operationalizing a future offering. As my Go skills are currently lacking (and I dislike Python) I opted to hack together a module for PowerShell to cover the basic functions.</summary></entry><entry><title type="html">VMware.vCAV.Community - A vCloud Availability PowerShell Module</title><link href="http://www.pigeonnuggets.com/blog/VMWare.vCAV.Community-PowerShell-Module/" rel="alternate" type="text/html" title="VMware.vCAV.Community - A vCloud Availability PowerShell Module" /><published>2019-10-20T18:35:24+00:00</published><updated>2019-10-20T18:35:24+00:00</updated><id>http://www.pigeonnuggets.com/blog/VMWare.vCAV.Community-PowerShell-Module</id><content type="html" xml:base="http://www.pigeonnuggets.com/blog/VMWare.vCAV.Community-PowerShell-Module/">&lt;p&gt;&lt;sub&gt;&lt;em&gt;Length: 306 words | Estimated Reading Time: 1 minutes&lt;/em&gt;&lt;/sub&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/vCAVPowerShell.png&quot; alt=&quot;alt text&quot; title=&quot;VMware.vCAV.Community&quot; style=&quot;float: left;margin-right: 20px;margin-top: 0px;&quot; /&gt;
vCloud Availability is a supplemental product for vCloud Director that allows hypervisor Replication of workloads and failover from vSphere on-premises and between vCloud Director installations. I have been working with the product team at VMware for over a year and they have done a really good job of integrating feedback from all Service Providers and really working to make the product better.&lt;/p&gt;

&lt;p&gt;For a little of a year now (since vCloud Availability Cloud-to-Cloud v1.5) I have been very slowly developing a “unofficial” PowerShell module for vCloud Availability. The motivation really was initially to and to enable me to automate compliance and monitoring and to facilitate repeatable deployments. Over time its grown into a bit of a beast and now I think its ready for some general consumption. (Be warned ! It still needs work)&lt;/p&gt;

&lt;p&gt;I hope that others in the vExpert &amp;amp; VCPP community can use the module to make life a little easier and contributions and feedback are welcome. My focus going forward will be enhancement of the “Replication Management” functions and add more support for vCenter based functions as time permits.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The project is hosted on &lt;a href=&quot;https://github.com/AdrianBegg/VMware.vCAV.Community&quot;&gt;GitHub @ https://github.com/AdrianBegg/VMware.vCAV.Community&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2 id=&quot;installation&quot;&gt;Installation&lt;/h2&gt;
&lt;p&gt;Install VMware.vCAV.Community module from the PowerShell Gallery:&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Install-Module -Name VMware.vCAV.Community -Scope CurrentUser
Import-Module VMware.vCAV.Community
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Connect to the vCloud Availability Service using a supported authentication method&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Connect-vCAVService -Server &quot;vcav.pigeonnnuggets.com&quot; -AuthProvider vCDLogin
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;documentation&quot;&gt;Documentation&lt;/h2&gt;
&lt;p&gt;All of the cmdlets in the module should have well described PowerShell help available. For a list of cmdlets available use the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Get-Command *vCAV*&lt;/code&gt; command after the module has been imported or installed. For detailed help including examples please use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Get-help &amp;lt;cmdlet&amp;gt; -Detailed&lt;/code&gt; (e.g. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Get-help Get-vCAVReplications -Detailed&lt;/code&gt;). If you have any questions about usage please don’t hesitate to contact me on Twitter or the VCPP/vExpert/VMWare Code Slack.&lt;/p&gt;</content><author><name>Adrian Begg</name></author><category term="vCloud Availability" /><category term="vcpp" /><category term="vCAV" /><category term="vCloud" /><summary type="html">vCloud Availability is a supplemental product for vCloud Director that allows hypervisor Replication of workloads and failover from vSphere on-premises and between vCloud Director installations. I have been working with the product team at VMware for over a year and they have done a really good job of integrating feedback from all Service Providers and really working to make the product better.</summary></entry><entry><title type="html">Forwarding vCloud Availability logs to a remote syslog daemon</title><link href="http://www.pigeonnuggets.com/blog/Forwarding-vCAV-Logs-Syslog/" rel="alternate" type="text/html" title="Forwarding vCloud Availability logs to a remote syslog daemon" /><published>2019-07-16T14:35:24+00:00</published><updated>2019-07-16T14:35:24+00:00</updated><id>http://www.pigeonnuggets.com/blog/Forwarding-vCAV-Logs-Syslog</id><content type="html" xml:base="http://www.pigeonnuggets.com/blog/Forwarding-vCAV-Logs-Syslog/">&lt;p&gt;&lt;sub&gt;&lt;em&gt;Length: 382 words | Estimated Reading Time: 2 minutes&lt;/em&gt;&lt;/sub&gt;&lt;/p&gt;

&lt;p&gt;By default, in vCloud Availability 3.X there is no mechanism via the API/GUI to configure a remote syslog for forwarding the application logs which could be an issue if you require this for compliance reasons or to simplify troubleshooting. With some guidance from the VMWare Project Presto team I was able to successfully get the H4 service logs forwarded with relative ease using the following.&lt;/p&gt;

&lt;p&gt;vCloud Availability uses &lt;a href=&quot;https://logback.qos.ch/&quot;&gt;Logback&lt;/a&gt; for service logging and the the &lt;strong&gt;logback.xml&lt;/strong&gt; configuration file needs to be changed for each of the services for full service coverage. The logs can still be written to the local logging files however you can send copies to a remote syslog server for data warehousing.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Appliance&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Service&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Configuration Path&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Recommended Suffix Pattern&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;vCAV Manager&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;cloud.service&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;/opt/vmware/h4/cloud/config/logback.xml&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;[C4] [%X{operationID}] [%thread] %-40.40logger{39} : %msg&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;vCAV Manager&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;manager.service&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;/opt/vmware/h4/manager/config/logback.xml&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;[H4-Manager] [%X{operationID}] [%thread] %-40.40logger{39} : %msg&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;vCAV Replicator&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;replicator.service&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;/opt/vmware/h4/replicator/config/logback.xml&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;[H4-Replicator] [%X{operationID}] [%thread] %-40.40logger{39} : %msg&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;vCAV Tunnel&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;tunnel.service&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;/opt/vmware/h4/tunnel/config/logback.xml&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;[H4-Tunnel] [%X{operationID}] [%thread] %-40.40logger{39} : %msg&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&lt;strong&gt;Step 1.&lt;/strong&gt; Logon to the vCAV appliance (e.g. vCAV Manager) and edit the relevant logback.xml using vi (# vi /opt/vmware/h4/cloud/config/logback.xml) and add the following directly under the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;configation&amp;gt;&lt;/code&gt; element editing the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;syslogHost&amp;gt;&lt;/code&gt; to match the IP of the Remote Syslog Daemon and the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;suffixPattern&amp;gt;&lt;/code&gt; to match the recommended suffix pattern for the service:&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&amp;lt;appender name=&quot;SYSLOG&quot; class=&quot;ch.qos.logback.classic.net.SyslogAppender&quot;&amp;gt;
     &amp;lt;syslogHost&amp;gt;192.168.88.10&amp;lt;/syslogHost&amp;gt;
     &amp;lt;port&amp;gt;514&amp;lt;/port&amp;gt;
     &amp;lt;facility&amp;gt;LOCAL7&amp;lt;/facility&amp;gt;
     &amp;lt;suffixPattern&amp;gt;[C4] [%X{operationID}] [%thread] %-40.40logger{39} : %msg&amp;lt;/suffixPattern&amp;gt;
&amp;lt;/appender&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Step 2.&lt;/strong&gt; Locate the element &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;root level=&quot;INFO&quot;&amp;gt;&lt;/code&gt; in the logback.xml file and add &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;appender-ref ref=&quot;SYSLOG&quot; /&amp;gt;&lt;/code&gt; element below the “FILE” appender.&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&amp;lt;root level=&quot;INFO&quot;&amp;gt;
   &amp;lt;appender-ref ref=&quot;FILE&quot; /&amp;gt;
   &amp;lt;appender-ref ref=&quot;SYSLOG&quot; /&amp;gt;
&amp;lt;/root&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Step 3.&lt;/strong&gt; The file should appears similar to the below example, save the file and restart the service using the systemctl restart cmd : &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;#systemctl restart cloud.service&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/vCAV-EnableSyslog-C4-logbackxml.png&quot; alt=&quot;Example logback.xml for the cloud.service sending default logging to syslogd @ 192.168.88.10&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4.&lt;/strong&gt; Repeat the process for each of the services and verify on your syslog server that events are being received.&lt;/p&gt;

&lt;p&gt;In addition to the application logs the Photon appliance kernel and system logs can also be sent to a remote syslog server by editing the rsyslogd configuration.&lt;/p&gt;</content><author><name>Adrian Begg</name></author><category term="vCloud Availability" /><category term="vcpp" /><category term="vCAV" /><category term="vCloud" /><summary type="html">By default, in vCloud Availability 3.X there is no mechanism via the API/GUI to configure a remote syslog for forwarding the application logs which could be an issue if you require this for compliance reasons or to simplify troubleshooting. With some guidance from the VMWare Project Presto team I was able to successfully get the H4 service logs forwarded with relative ease using the following.</summary></entry></feed>