Get-AzureRmAutomationSourceControl
Lekéri az Azure Automation-forrásvezérlők listáját.
Figyelmeztetés
Az AzureRM PowerShell-modul 2024. február 29-én hivatalosan elavult. Javasoljuk a felhasználóknak, hogy migráljanak az AzureRM-ből az Az PowerShell-modulba a folyamatos támogatás és frissítések biztosítása érdekében.
Bár az AzureRM-modul továbbra is működik, a továbbiakban nem tart fenn vagy nem támogatott, így a folyamatos használatot a felhasználó saját belátása szerint és kockázatára teheti. Az Az modulra való áttéréshez tekintse meg a migrálási erőforrásainkat.
Syntax
Get-AzureRmAutomationSourceControl
[-SourceType <String>]
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzureRmAutomationSourceControl
-Name <String>
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
A Get-AzureRmAutomationSourceControl parancsmag automatizálási forrásvezérlőket kap. Egy adott forrásvezérlő lekéréséhez adja meg a nevét.
Példák
1. példa
Ez a parancs lekéri a VSTSNative nevű Automation-forrásvezérlőt a devAccount nevű fiókban.
PS C:\> Get-AzureRmAutomationSourceControl -ResourceGroupName "rg1" `
-AutomationAccountName "devAccount" `
-Name "VSTSNative"
Name SourceType Branch FolderPath AutoSync PublishRunbook RepoUrl
---- ---------- ------ ---------- -------- -------------- -------
VSTSNative VsoTfvc /MyRunbooks False True https://contoso.visualstudio.com/_git/Fin...
Paraméterek
-AutomationAccountName
Az automation-fiók neve.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
Az Azure-ral való kommunikációhoz használt hitelesítő adatok, fiók, bérlő és előfizetés.
Type: | IAzureContextContainer |
Aliases: | AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
A forrásvezérlő neve.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
Az erőforráscsoport neve.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SourceType
A forrásvezérlő típusa.
Type: | String |
Accepted values: | GitHub, VsoGit, VsoTfvc |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |