external help file | Module Name | online version | schema |
---|---|---|---|
Microsoft.WinGet.Source-help.xml |
Microsoft.WinGet.Source |
2.0.0 |
Creates a Windows Package Manager REST source in Azure for storage of Windows Package Manager package Manifests.
New-WinGetSource [-Name] <String> [[-ResourceGroup] <String>]
[[-SubscriptionName] <String>] [[-Region] <String>] [[-ParameterOutput] <String>]
[[-RestSourcePath] <String>] [[-ImplementationPerformance] <String>] [-ShowConnectionInstructions]
[<CommonParameters>]
Creates a Windows Package Manager REST source in Azure for storage of Windows Package Manager package Manifests.
The following Azure Modules are used by this script: Az.Resources Az.Accounts Az.Websites Az.Functions
New-WinGetSource -Name "contosorestsource"
Creates the Windows Package Manager REST source in Azure with resources named "contosorestsource" in the westus region of Azure with the basic level performance.
New-WinGetSource -Name "contosorestsource" -ResourceGroup "WinGet" -SubscriptionName "Visual Studio Subscription" -Region "westus" -ParameterOutput "C:\WinGet" -ImplementationPerformance "Basic" -ShowConnectionInstructions
Creates the Windows Package Manager REST source in Azure with resources named "contosorestsource" in the westus region of Azure with the basic level performance in the "Visual Studio Subscription" Subscription. Displays the required command to connect the WinGet client to the new REST source after the repository has been created.
The name of the objects that will be created
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
[Optional] The Name of the Resource Group that the Windows Package Manager REST source will reside. All Azure resources will be created in in this Resource Group (Default: WinGetRestSource) (Default: WinGetRestSource)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: WinGetRestSource
Accept pipeline input: False
Accept wildcard characters: False
[Optional] The name of the subscription that will be used to host the Windows Package Manager REST source.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
[Optional] The Azure location where objects will be created in. (Default: westus)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: westus
Accept pipeline input: False
Accept wildcard characters: False
[Optional] The directory where Parameter objects will be created in. (Default: Current Directory)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: $(Get-Location).Path
Accept pipeline input: False
Accept wildcard characters: False
[Optional] Path to the compiled REST API Zip file. (Default: .\Library\RestAPI\WinGet.RestSource.Functions.zip)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 7
Default value: "$PSScriptRoot\Library\RestAPI\WinGet.RestSource.Functions.zip"
Accept pipeline input: False
Accept wildcard characters: False
[Optional] ["Demo", "Basic", "Enhanced"] specifies the performance of the resources to be created for the Windows Package Manager REST source.
Preference | Description |
---|---|
Demo | Specifies lowest cost for demonstrating the Windows Package Manager REST source. Uses free-tier options when available. |
Basic | Specifies a basic functioning Windows Package Manager REST source. |
Enhanced | Specifies a higher tier functionality with data replication across multiple data centers. |
(Default: Basic)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 8
Default value: Basic
Accept pipeline input: False
Accept wildcard characters: False
[Optional] If specified, the instructions for connecting to the Windows Package Manager REST source. (Default: False)
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
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.