< Back

Save-AzureRmApiManagementTenantGitConfiguration

Tue Jan 29, 2019 9:30 pm

NAME Save-AzureRmApiManagementTenantGitConfiguration



SYNOPSIS

Saves changes by creating a commit for current configuration.





SYNTAX

Save-AzureRmApiManagementTenantGitConfiguration -Branch <String> -Context <PsApiManagementContext> [-DefaultProfile <IAzureContextContainer>]

[-Force] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Save-AzureRmApiManagementTenantGitConfiguration cmdlet saves the changes by creating a commit that contains the current configuration snapshot

to a branch in the repository.





PARAMETERS

-Branch <String>

Specifies the name of the Git branch in which to commit the current configuration snapshot.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Context <PsApiManagementContext>

Specifies a PsApiManagementContext object.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Force [<SwitchParameter>]

Specifies that this cmdlet commits the current configuration database to the Git repository, even if the Git repository has newer changes that

are overwritten.



Required? false

Position? named

Default value False

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-PassThru [<SwitchParameter>]

Indicates that this cmdlet returns a PsApiManagementOperationResult object.



Required? false

Position? named

Default value False

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperationResult







NOTES









Example 1: Save changes to configuration



PS C:\\>$apimContext = New-AzureRmApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"

PS C:\\>Save-AzureRmApiManagementTenantGitConfiguration -Context $apimContext -Branch 'master' -PassThru



This command saves the changes by creating a commit with the current configuration snapshot to the specified branch in the repository.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... figuration

Publish-AzureRmApiManagementTenantGitConfiguration