Update-​Azure​Website​Repository

Updates the remote repositories of a local git repository for all the slots.

Syntax

Update-AzureWebsiteRepository
      [-Name <String>]
      [-Profile <AzureSMProfile>]
      -PublishingUsername <String>
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

The Update-AzureWebsiteRepository cmdlet updates the remote repositories of a local git repository for all the slots.

Examples

Example 1: Update Website Remote Repositories

PS C:\> Update-AzureWebsiteRepository -Name MyWebsite

Updates the remote repositories of a local git repository for all the slots for website MyWebsite.

Required Parameters

-PublishingUsername

The username you have specified in the Microsoft Azure Portal for Git deployment.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

The name of the website.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type:AzureSMProfile
Position:Named
Default value:None
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:False
Accept pipeline input:False
Accept wildcard characters:False