# vNiklas DemoTime for SC SP1 SpringMeeting # App Controller # Niklas Åkerlund/ 20130404 #region Import Module and connect import-module appcontroller $cred = Get-Credential Get-SCACServer -ServerName "https://appco2012.lumademo.local" -Credential $cred #endregion #region Commands och Get-Help Get-Command -Module appcontroller (Get-Command -Module appcontroller).count #endregion #region Add Clouds Add-SCACCloudSystem -VMM -Name VMM2012 -ServerName vmm2012.lumademo.local -Port 8100 Add-SCACAzureSubscription -Name lumaAzure -Id "subscription-id" -ManagementCertificatePath C:\temp\certazure.pfx -ManagementCertificatePassword (ConvertTo-SecureString -AsPlainText "yourpasswordincert" -Force) #endregion #region ManageAzureVMs $lumano = Get-SCACServiceDeployment -Cloud $cloud | where Name -eq LumaNO Suspend-SCACServiceDeployment -ServiceDeployment $lumano Resume-SCACServiceDeployment -ServiceDeployment $lumano #endregion #region Cleanup Remove-SCACAzureSubscription -Subscription (Get-SCACCloud) Remove-SCACCloudSystem -CloudSystem (Get-SCACCloudSystem | where Name -eq VMM2012) #endregion