Get-AzDeploymentScript
Mendapatkan atau mencantumkan skrip penyebaran.
Sintaks
Get-AzDeploymentScript
[[-ResourceGroupName] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzDeploymentScript
[-ResourceGroupName] <String>
[-Name] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzDeploymentScript
[-Id] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Get-AzDeploymentScript mendapatkan skrip penyebaran tunggal atau daftar skrip penyebaran.
Contoh
Contoh 1
Get-AzDeploymentScript
Mencantumkan skrip penyebaran dalam langganan dalam konteks pengguna saat ini.
Contoh 2
Get-AzDeploymentScript -ResourceGroupName DS-TestRg
Mencantumkan skrip penyebaran dalam grup sumber daya DS-TestRg.
Contoh: 3
Get-AzDeploymentScript -Name MyDeploymentScript -ResourceGroupName DS-TestRg
Mendapatkan skrip penyebaran dengan nama MyDeploymentScript dalam grup sumber daya DS-TestRG.
Contoh 4
Get-AzDeploymentScript -Id "/subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Resources/deploymentScripts/{deploymentScriptName}"
Mendapatkan skrip penyebaran dengan Id sumber daya yang diberikan.
Parameter
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Id sumber daya yang sepenuhnya memenuhi syarat dari skrip penyebaran. Contoh: /subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Resources/deploymentScripts/{deploymentScriptName}
| Type: | String |
| Aliases: | ResourceId |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Nama skrip penyebaran
| Type: | String |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Nama grup sumber daya.
| Type: | String |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Input
Output
Saran dan Komentar
Kirim dan lihat umpan balik untuk