Get-AzureRmAutomationSourceControl
Mendapatkan daftar kontrol sumber Azure Automation.
Peringatan
Modul AzureRM PowerShell telah resmi tidak digunakan lagi per 29 Februari 2024. Pengguna disarankan untuk bermigrasi dari AzureRM ke modul Az PowerShell untuk memastikan dukungan dan pembaruan yang berkelanjutan.
Meskipun modul AzureRM mungkin masih berfungsi, modul tersebut tidak lagi dipertahankan atau didukung, menempatkan penggunaan berkelanjutan berdasarkan kebijaksanaan dan risiko pengguna. Silakan merujuk ke sumber daya migrasi kami untuk panduan tentang transisi ke modul Az.
Sintaks
Get-AzureRmAutomationSourceControl
[-SourceType <String>]
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzureRmAutomationSourceControl
-Name <String>
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Get-AzureRmAutomationSourceControl mendapatkan kontrol sumber Automation. Untuk mendapatkan kontrol sumber tertentu, tentukan namanya.
Contoh
Contoh 1
Perintah ini mendapatkan kontrol sumber Automation bernama VSTSNative di akun bernama devAccount.
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...
Parameter
-AutomationAccountName
Nama akun automasi.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan Azure.
Type: | IAzureContextContainer |
Aliases: | AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Nama kontrol sumber.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
Nama grup sumber daya.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SourceType
Jenis kontrol sumber.
Type: | String |
Accepted values: | GitHub, VsoGit, VsoTfvc |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |