external help file | Module Name | online version | schema |
---|---|---|---|
Microsoft.WinGet.RestSource-help.xml |
microsoft.WinGet.RestSource |
2.0.0 |
Submits a Manifest to the Windows Package Manager REST source.
Add-WinGetManifest [-FunctionName] <String> [-Path] <String> [-SubscriptionName <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Submits a Manifest to the Windows Package Manager REST source.
Running this function will first connect to the Azure Tenant that hosts the Windows Package Manager REST source.
The function will then collect the required URL before retrieving the contents of the Manifest for submission.
Add-WinGetManifest -FunctionName "contosorestsource" -Path "C:\AppManifests\Microsoft.PowerToys\PowerToys.json"
Connects to Azure, then runs the Azure Function "contosorestsource" REST APIs to add the specified Manifest (*.json) to the Windows Package Manager REST source.
Add-WinGetManifest -FunctionName "contosorestsource" -Path "C:\AppManifests\Microsoft.PowerToys\"
Connects to Azure, then runs the Azure Function "contosorestsource" REST APIs to adds the Manifest (*.json / *.yaml) found in the specified folder to the Windows Package Manager REST source.
Add-WinGetManifest -FunctionName "contosorestsource" -Path "C:\AppManifests\Microsoft.PowerToys\PowerToys.json" -SubscriptionName "Visual Studio Subscription"
Connects to Azure and the specified Subscription, then runs the Azure Function "contosorestsource" REST APIs to add the specified Manifest (*.json) to the Windows Package Manager REST source.
Name of the Azure Function that hosts the Windows Package Manager REST source.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Supports input from pipeline. The path to the Manifest file or folder hosting either a JSON or YAML file(s) that will be uploaded to the REST source. This path may contain a single Manifest file, or a folder containing multiple YAML files for a single Manifest. Does not support targeting a single folder containing multiple different Manifests.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
[Optional] The name of the subscription containing the Windows Package Manager REST source.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.