en-US/about_AzDoGitRepository.help.txt

.NAME
    AzDoGitRepository
 
.SYNOPSIS
    This class represents an Azure DevOps Git repository.
 
.DESCRIPTION
    The AzDoGitRepository class is a DSC resource that allows you to manage Azure DevOps Git repositories.
    It inherits from the AzDevOpsDscResourceBase class.
 
.PARAMETER ProjectName
    Required - System.String
    The name of the Azure DevOps project where the Git repository is located.
 
.PARAMETER RepositoryName
    Key - System.String
 
.PARAMETER SourceRepository
    Write - System.String
    The source repository URL.
 
.EXAMPLE 1
 
This example shows how to add the Git Repository
 
Configuration Example
{
 
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'
 
    node localhost
    {
        AzDoGitRepository 'AddGitRepository'
        {
            Ensure = 'Present'
            ProjectName = 'Test Project'
            RepositoryName = 'Test Repository'
        }
    }
}
 
.EXAMPLE 2
 
This example shows how to update the Git Repository
 
 
.EXAMPLE 3
 
This example shows how to remove a Git Repository.
 
Configuration Example
{
 
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'
 
    node localhost
    {
        AzDoGitRepository 'RemoveGitRepository'
        {
            Ensure = 'Absent'
            ProjectName = 'Test Project'
            RepositoryName = 'Test Repository'
        }
    }
}