protected override void OnProcessRecord() { PSCreateResourceGroupParameters parameters = new PSCreateResourceGroupParameters { ResourceGroupName = Name, Location = Location, Force = Force.IsPresent, Tag = Tag, ConfirmAction = ConfirmAction }; WriteObject(ResourceManagerSdkClient.CreatePSResourceGroup(parameters)); }
public override void ExecuteCmdlet() { PSCreateResourceGroupParameters parameters = new PSCreateResourceGroupParameters { ResourceGroupName = Name, Location = Location, Force = Force.IsPresent, Tag = Tag, ConfirmAction = ConfirmAction }; WriteObject(ResourceManagerSdkClient.CreatePSResourceGroup(parameters)); }