< Back

Publish-AzureRmApiManagementTenantGitConfiguration

Tue Jan 29, 2019 9:30 pm

NAME Publish-AzureRmApiManagementTenantGitConfiguration



SYNOPSIS

Publishes changes from a Git branch to the configuration database.





SYNTAX

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

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





DESCRIPTION

The Publish-AzureRmApiManagementTenantGitConfiguration cmdlet publishes the changes from a Git branch to the configuration database. You can

alternatively validate the changes in a Git branch without publishing.





PARAMETERS

-Branch <String>

Specifies the name of the Git branch from which this cmdlet deploys the configuration to the configuration database.



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>]

Indicates that this cmdlet deletes subscriptions to products that are deleted in this update.



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



-ValidateOnly [<SwitchParameter>]

Indicates that this cmdlet validates the changes in the specified Git branch. It does not publish to the configuration database.



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: Deploy Git changes



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

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



This command publishes the changes from the specified branch to the configuration database.





Example 2: Validate Git changes



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

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



This command validates the changes in the Git branch against the configuration database. It does not publish changes.







RELATED LINKS

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

Save-AzureRmApiManagementTenantGitConfiguration