Get-AzElasticResubscribeOrganization
Resubscribe the Elasticsearch Organization.
Syntax
ResubscribeExpanded (Default)
Get-AzElasticResubscribeOrganization
-MonitorName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-OrganizationId <String>]
[-PlanId <String>]
[-ResourceGroup <String>]
[-TargetSubscriptionId <String>]
[-Term <String>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[<CommonParameters>]
ResubscribeViaJsonString
Get-AzElasticResubscribeOrganization
-MonitorName <String>
-ResourceGroupName <String>
-JsonString <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[<CommonParameters>]
ResubscribeViaJsonFilePath
Get-AzElasticResubscribeOrganization
-MonitorName <String>
-ResourceGroupName <String>
-JsonFilePath <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[<CommonParameters>]
Resubscribe
Get-AzElasticResubscribeOrganization
-MonitorName <String>
-ResourceGroupName <String>
-Body <IResubscribeProperties>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[<CommonParameters>]
ResubscribeViaIdentityExpanded
Get-AzElasticResubscribeOrganization
-InputObject <IElasticIdentity>
[-OrganizationId <String>]
[-PlanId <String>]
[-ResourceGroup <String>]
[-TargetSubscriptionId <String>]
[-Term <String>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[<CommonParameters>]
ResubscribeViaIdentity
Get-AzElasticResubscribeOrganization
-InputObject <IElasticIdentity>
-Body <IResubscribeProperties>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[<CommonParameters>]
Description
Resubscribe the Elasticsearch Organization.
Examples
Example 1: Resubscribe an Elastic organization to a new Azure subscription
Get-AzElasticResubscribeOrganization -ResourceGroupName "myResourceGroup" -MonitorName "myElasticMonitor" -TargetSubscriptionId "87654321-4321-4321-4321-210987654321"
Id : /subscriptions/87654321-4321-4321-4321-210987654321/resourceGroups/myResourceGroup/providers/Microsoft.Elastic/monitors/myElasticMonitor/resubscribe
Name : myElasticMonitor
Type : Microsoft.Elastic/monitors/resubscribe
Status : InProgress
TargetSubscriptionId : 87654321-4321-4321-4321-210987654321
Message : Resubscription initiated successfully
This command resubscribes the specified Elastic monitor to a new Azure subscription, moving the marketplace subscription to the target subscription.
Example 2: Resubscribe using pipeline from Get-AzElasticMonitor
Get-AzElasticMonitor -ResourceGroupName "myResourceGroup" -Name "myElasticMonitor" | Get-AzElasticResubscribeOrganization -TargetSubscriptionId "87654321-4321-4321-4321-210987654321"
Id : /subscriptions/87654321-4321-4321-4321-210987654321/resourceGroups/myResourceGroup/providers/Microsoft.Elastic/monitors/myElasticMonitor/resubscribe
Name : myElasticMonitor
Type : Microsoft.Elastic/monitors/resubscribe
Status : InProgress
TargetSubscriptionId : 87654321-4321-4321-4321-210987654321
Message : Resubscription initiated successfully
This command resubscribes an Elastic monitor to a new subscription by piping the monitor object from Get-AzElasticMonitor.
Parameters
-AsJob
Run the command as a job
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Body
Resubscribe Properties
Parameter properties
Type: Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IResubscribeProperties
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
Resubscribe
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
ResubscribeViaIdentity
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: cf
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Parameter properties
Type: PSObject
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzureRMContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Identity Parameter
Type: IElasticIdentity
Default value: None
Supports wildcards: False
DontShow: False
ResubscribeViaIdentityExpanded
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
ResubscribeViaIdentity
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-JsonFilePath
Path of Json file supplied to the Resubscribe operation
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ResubscribeViaJsonFilePath
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-JsonString
Json string supplied to the Resubscribe operation
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ResubscribeViaJsonString
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-MonitorName
Monitor resource name
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ResubscribeExpanded
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
ResubscribeViaJsonString
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
ResubscribeViaJsonFilePath
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Resubscribe
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-NoWait
Run the command asynchronously
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-OrganizationId
Organization Id of the Elastic Organization that needs to be resubscribed
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ResubscribeExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
ResubscribeViaIdentityExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-PlanId
Newly selected plan Id to create the new Marketplace subscription for Resubscribe
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ResubscribeExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
ResubscribeViaIdentityExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceGroup
Newly selected Azure resource group in which the new Marketplace subscription will be created for Resubscribe
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ResubscribeExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
ResubscribeViaIdentityExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceGroupName
The name of the resource group.
The name is case insensitive.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ResubscribeExpanded
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
ResubscribeViaJsonString
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
ResubscribeViaJsonFilePath
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Resubscribe
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-SubscriptionId
The ID of the target subscription.
The value must be an UUID.
Parameter properties
Type: String [ ]
Default value: (Get-AzContext).Subscription.Id
Supports wildcards: False
DontShow: False
Parameter sets
ResubscribeExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
ResubscribeViaJsonString
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
ResubscribeViaJsonFilePath
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Resubscribe
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-TargetSubscriptionId
Newly selected Azure Subscription Id in which the new Marketplace subscription will be created for Resubscribe
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ResubscribeExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
ResubscribeViaIdentityExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Term
Newly selected term to create the new Marketplace subscription for Resubscribe
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ResubscribeExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
ResubscribeViaIdentityExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: wi
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IResubscribeProperties
Outputs