< Back

New-MVPContribution

Sat Jan 18, 2020 4:53 pm

NAME New-MVPContribution



SYNOPSIS

Invoke the PostContribution REST API





SYNTAX

New-MVPContribution [[-StartDate] <String>] [[-Title] <String>] [[-Description] <String>] [[-ReferenceUrl]

<String>] [[-AnnualQuantity] <String>] [[-SecondAnnualQuantity] <String>] [[-AnnualReach] <String>] [[-Visibility]

<String>] [<CommonParameters>]





DESCRIPTION

Creates a new Contribution item





PARAMETERS

-StartDate <String>

Specifies the Date of the activity



Required? false

Position? 1

Default value (Get-Date -Format 'yyyy/MM/dd')

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Title <String>

Specifies the Title of the activity



Required? false

Position? 2

Default value Test from mvpapi.azure-api.net

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Description <String>

Specifies the Description of the activity



Required? false

Position? 3

Default value Description sample

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ReferenceUrl <String>

Specifies the Url of the activity



Required? false

Position? 4

Default value https://github.com/lazywinadmin/MVP

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-AnnualQuantity <String>

Specifies the Annual quantity.

Default is 1



Required? false

Position? 5

Default value 1

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-SecondAnnualQuantity <String>

Specifies the Second Annual quantity.

Default is 0



Required? false

Position? 6

Default value 0

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-AnnualReach <String>

Specifies the Annual Reach

Default is 0



Required? false

Position? 7

Default value 0

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Visibility <String>

Specifies the audience that will be able to see your activity

Values: 'EveryOne','Microsoft','MVP Community','Microsoft Only'

Default = 'Microsoft'



Required? false

Position? 8

Default value Microsoft

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





https://github.com/lazywinadmin/MVP



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$Splat = @{



startdate ='2018/10/10'

Title='Test from mvpapi.azure-api.net'

Description = 'Description sample'

ReferenceUrl='https://github.com/lazywinadmin/MVP'

AnnualQuantity='1'

SecondAnnualQuantity='0'

AnnualReach = '0'

Visibility = 'EveryOne' # Get-MVPContributionVisibility

ContributionType = 'Blog Site Posts' # Get-MVPContributionType

ContributionTechnology = 'PowerShell' # Get-MVPContributionArea

AdditionalTechnologies = 'ARM & DevOps on Azure (Chef, Puppet, Salt, Ansible, Dev/Test Lab)' #

Get-MVPContributionArea

}

New-MVPContribution @splat



This will create a new MVP Contribution using the current session opened by Set-MVPConfiguration











RELATED LINKS