Skip to content

Adding new dsc extension status cmdlet #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from Feb 6, 2015
Merged

Adding new dsc extension status cmdlet #102

merged 20 commits into from Feb 6, 2015

Conversation

vors
Copy link
Contributor

@vors vors commented Jan 20, 2015

Changes for the new cmdlet - Get-AzureVMDSCExtensionStatus that gets the DSC Extension status for all the vm's deployed in a cloud service or for a particular vm in the service.

@azurecla
Copy link

Hi @vors, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!


It looks like you're working at Microsoft (sevoroby). If you're full-time, we DON'T require a contribution license agreement.



If you are a vendor, or work for Microsoft Open Technologies, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

GetDeploymentOperationNewSM = GetOperationNewSM(CurrentDeploymentNewSM.RequestId);
WriteVerboseWithTimestamp(Resources.GetDeploymentCompletedOperation);
}
catch (CloudException ex)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer CloudException

@markcowl
Copy link
Member

@vors Need to update the new cmdlet for the changes in the latest common library (for example CloudException -> HttpOperationException)

@vors vors mentioned this pull request Jan 27, 2015
@azurecla
Copy link

@vors, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, AZPRBOT;

@stankovski
Copy link
Member

@vors - we are planning to discontinue mstest runner in the near future. Please update your tests to use XUnit

/// Get-AzureVMDscExtensionStatus -ServiceName service -Name VM-name
/// Get-AzureVMDscExtensionStatus -VM vm
/// </summary>
[Cmdlet(VerbsCommon.Get, VirtualMachineDscStatusCmdletNoun, DefaultParameterSetName = GetStatusByServiceAndVmNameParamSet), OutputType(typeof(VirtualMachineDscExtensionStatusContext))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrap long lines for readability


if (roleInstance != null && roleInstance.ResourceExtensionStatusList != null)
{
foreach (var resourceExtensionStatus in roleInstance.ResourceExtensionStatusList.Where(resourceExtensionStatus => resourceExtensionStatus.HandlerName.Equals(VirtualMachineDscExtensionCmdletBase.ExtensionPublishedNamespace + "." + VirtualMachineDscExtensionCmdletBase.ExtensionPublishedName, StringComparison.InvariantCultureIgnoreCase)).Where(resourceExtensionStatus => resourceExtensionStatus.ExtensionSettingStatus != null))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

440+ characters on a line is excessive. Split appropriately.

markcowl added a commit that referenced this pull request Feb 6, 2015
Adding new dsc extension status cmdlet
@markcowl markcowl merged commit 3dd3adf into Azure:dev Feb 6, 2015
@eshaparmar eshaparmar deleted the dscstatus branch February 6, 2015 23:00
akromm-zz pushed a commit to akromm-zz/azure-powershell that referenced this pull request Apr 18, 2015
TrafficManager2 cmdlets for build
ogail pushed a commit that referenced this pull request Aug 19, 2015
AzureRT referenced this pull request in AzureRT/azure-powershell Sep 28, 2015
Fix AzureRT test settings
hovsepm pushed a commit that referenced this pull request Feb 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants