New-AzMarketplacePrivateStoreCollectionOfferMultiContext
Upsert an offer with multiple context details.
Syntax
New-AzMarketplacePrivateStoreCollectionOfferMultiContext
-OfferId <String>
-CollectionId <String>
-PrivateStoreId <String>
[-ETag <String>]
[-PlansContext <IContextAndPlansDetails[]>]
[-PropertiesOfferId <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzMarketplacePrivateStoreCollectionOfferMultiContext
-OfferId <String>
-CollectionId <String>
-PrivateStoreInputObject <IMarketplaceIdentity>
[-ETag <String>]
[-PlansContext <IContextAndPlansDetails[]>]
[-PropertiesOfferId <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzMarketplacePrivateStoreCollectionOfferMultiContext
-OfferId <String>
-CollectionInputObject <IMarketplaceIdentity>
[-ETag <String>]
[-PlansContext <IContextAndPlansDetails[]>]
[-PropertiesOfferId <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzMarketplacePrivateStoreCollectionOfferMultiContext
-OfferId <String>
-InputObject <IMarketplaceIdentity>
[-ETag <String>]
[-PlansContext <IContextAndPlansDetails[]>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Upsert an offer with multiple context details.
Examples
Example 1: Upsert an offer with multiple contexts
$plan1 = @{
context = "1f58b5dd-313c-42ed-84fc-f1e351bba7fb"
planId = "plan1"
}
$plan2 = @{
context = "ab3de7bc-7a6e-4e9f-a34a-f6922df453e4"
planId = "plan2"
}
$plans = @($plan1,$plan2)
New-AzMarketplacePrivateStoreCollectionOfferMultiContext -CollectionId fdb889a1-cf3e-49f0-95b8-2bb012fa01f1 -PrivateStoreId a260d38c-96cf-492d-a340-404d0c4b3ad6 -OfferId test_pmc2pc1.vm_4plans -PlansContext $plans
Upsert an offer with multiple context details.
Parameters
-CollectionId
The collection ID
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CollectionInputObject
Identity Parameter
Type: | IMarketplaceIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ETag
The offer's eTag.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Identity Parameter
Type: | IMarketplaceIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-OfferId
The offer ID to update or delete
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PlansContext
.
Type: | IContextAndPlansDetails[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PrivateStoreId
The store ID - must use the tenant ID
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PrivateStoreInputObject
Identity Parameter
Type: | IMarketplaceIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PropertiesOfferId
The offer ID which contains the plans.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Outputs
Azure PowerShell