Install-AzsUpdate

Apply a specific update at an update location.

Syntax

Install-AzsUpdate
       -Name <String>
       [-ResourceGroupName <String>]
       [-Location <String>]
       [-AsJob]
       [-Force]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]
Install-AzsUpdate
       [-AsJob]
       -ResourceId <String>
       [-Force]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]

Description

Apply a specific update at an update location. After invoked, Get-AzsUpdateRun may be used to modify the progress of the update.

Examples

EXAMPLE 1

Get-AzsUpdate -Name Microsoft1.0.180305.1 | Install-AzsUpdate

Apply a specific update at an update location.

Parameters

-AsJob

Run asynchronous as a job and return the job object.

Type:SwitchParameter
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

Flag to remove the item without confirmation.

Type:SwitchParameter
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Location

The name of the update location.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Name of the update.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceGroupName

The resource group the resource is located under.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceId

The resource id.

Type:String
Aliases:id
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
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
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.AzureStack.Management.Update.Admin.Models.Update