Get-AzureRmDeploymentManagerArtifactSource

Gets an artifact source.

Syntax

Get-AzureRmDeploymentManagerArtifactSource
   [-ResourceGroupName] <String>
   [-Name] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzureRmDeploymentManagerArtifactSource
   [-ResourceId] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzureRmDeploymentManagerArtifactSource
   [-ArtifactSource] <PSArtifactSource>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzureRmDeploymentManagerArtifactSource cmdlet gets an artifact source, and returns an object that represents that artifact source. Specify the artifact source by its name and resource group name. Alternately, you can provide the ArtifactSource object or the ResourceId.

You can modify this object locally, and then apply changes to the artifact source by using the Set-AzureRmDeploymentManagerArtifactSource cmdlet.

Examples

Example 1: Get an artifact source

PS C:\> Get-AzureRmDeploymentManagerArtifactSource -ResourceGroupName "ContosoResourceGroup" -Name "ContosoArtifactSource"

This command gets an artifact source named ContosoArtifactSource in ContosoResourceGroup.

Example 2: Get an artifact source using the resource identifier

PS C:\> Get-AzureRmDeploymentManagerArtifactSource -ResourceId "/subscriptions/subscriptionId/resourcegroups/ContosoResourceGroup/providers/Microsoft.DeploymentManager/artifactSources/ContosoArtifactSource"

This command gets an artifact source named ContosoArtifactSource in ContosoResourceGroup.

Example 3: Get an artifact source using an object returned by New-AzureRmDeploymentManagerArtifactSource

PS C:\> Get-AzureRmDeploymentManagerArtifactSource -ArtifactSource $artifactSourceObject

This command gets an artifact source whose name and ResourceGroup match the Name and ResourceGroupName properties of the $artifactSourceObject, respectively.

Parameters

-ArtifactSource

Artifact Source object.

Type:Microsoft.Azure.Commands.DeploymentManager.Models.PSArtifactSource
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

The name of the artifact source.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceGroupName

The resource group.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceId

The resource identifier.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Azure.Commands.DeploymentManager.Models.PSArtifactSource