Get-AzAppServicePlanManagedInstance
Gets worker instances in a Managed Instance App Service plan.
Syntax
S1 (Default)
Get-AzAppServicePlanManagedInstance
[-ResourceGroupName] <String>
[-Name] <String>
[-InstanceName <String>]
[-DefaultProfile <IAzureContextContainer>]
[-AcquirePolicyToken]
[-ChangeReference <String>]
[<CommonParameters>]
S2
Get-AzAppServicePlanManagedInstance
[-AppServicePlan] <PSAppServicePlan>
[-InstanceName <String>]
[-DefaultProfile <IAzureContextContainer>]
[-AcquirePolicyToken]
[-ChangeReference <String>]
[<CommonParameters>]
Description
The Get-AzAppServicePlanManagedInstance cmdlet retrieves the worker names, IP addresses, and statuses for a Managed Instance App Service plan.
Specify -InstanceName to retrieve one worker by its case-insensitive name.
An error is returned if the specified worker is not present.
Examples
Example 1: List the instances in a Managed Instance plan
Get-AzAppServicePlanManagedInstance -ResourceGroupName "ContosoRG" -Name "ContosoManagedPlan"
This command returns the worker instances and their private IP addresses.
Example 2: Retrieve one instance using a plan from the pipeline
Get-AzAppServicePlan -ResourceGroupName "ContosoRG" -Name "ContosoManagedPlan" |
Get-AzAppServicePlanManagedInstance -InstanceName "WORKER1"
This command retrieves WORKER1 from the plan.
Use its IPAddress property with a configured Azure Bastion or RDP client.
Parameters
-AcquirePolicyToken
Acquire an Azure Policy token automatically for this resource operation.
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
-AppServicePlan
The App Service plan object identifying the plan whose workers are retrieved.
Use Get-AzAppServicePlan to retrieve the object.
Parameter properties
Type: PSAppServicePlan
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
S2
Position: 0
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-ChangeReference
The change reference resource ID for this resource operation.
Parameter properties
Type: String
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
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: IAzureContextContainer
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzContext, 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
-InstanceName
The name of the worker to retrieve.
Omit this parameter to list all workers in the plan.
Parameter properties
Type: String
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
-Name
The name of the Managed Instance App Service plan.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
S1
Position: 1
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceGroupName
The resource group containing the Managed Instance App Service plan.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
S1
Position: 0
Mandatory: True
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 .
Outputs