< Back
Set-AzureBlueprint
Post
NAME Set-AzureBlueprint
SYNOPSIS
Add a folder containing a Azure Blueprint and Azure Blueprint Artifacts as an Azure Blueprint
SYNTAX
Set-AzureBlueprint [-BlueprintFolder] <DirectoryInfo> [-Passthru] [<CommonParameters>]
DESCRIPTION
Add a collection of JSON artifacts to Azure Blueprint. The Name of the folder containing the Blueprint JSON files
will be the name of the Blueprint.
All templates with 'kind' attributes become artifacts. Omit the 'kind' attribute on one of the templates - usualy
the one declaring the main resource groups - to make it the root Blueprint
PARAMETERS
-BlueprintFolder <DirectoryInfo>
Name of the folder containing the Blueprint and artifacts
Required? true
Position? 0
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Passthru [<SwitchParameter>]
Passes the created template to thje pipeline
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
System.Object
NOTES
-------------------------- Example 1 --------------------------
Get-ChildItem C:\\Blueprints\\AxTest
Directory: C:\\Dev\\AxBlueprint\\AxTest
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 11/3/2018 1:12 PM 1142 Blueprint.json
-a---- 11/3/2018 9:51 AM 387 Management-RBAC-Contributor.json
-a---- 11/3/2018 9:51 AM 375 Management-RBAC-Owner.json
-a---- 11/3/2018 9:58 AM 425 Network-Policy-RestrictNSG.json
-a---- 11/3/2018 1:14 PM 384 Network-RBAC-Contributor.json
-a---- 11/3/2018 1:14 PM 372 Network-RBAC-Owner.json
-a---- 11/3/2018 10:02 AM 1541 Network-Template-VNet.json
-a---- 11/3/2018 1:16 PM 407 Subscription-Policy-AllowedLocations.json
PS C:\\> Set-AzureBlueprint -BlueprintFolder C:\\Blueprints\\AxTest
Creates a Blueprint called AxTest and adds the artifacts accordingly.
RELATED LINKS
SYNOPSIS
Add a folder containing a Azure Blueprint and Azure Blueprint Artifacts as an Azure Blueprint
SYNTAX
Set-AzureBlueprint [-BlueprintFolder] <DirectoryInfo> [-Passthru] [<CommonParameters>]
DESCRIPTION
Add a collection of JSON artifacts to Azure Blueprint. The Name of the folder containing the Blueprint JSON files
will be the name of the Blueprint.
All templates with 'kind' attributes become artifacts. Omit the 'kind' attribute on one of the templates - usualy
the one declaring the main resource groups - to make it the root Blueprint
PARAMETERS
-BlueprintFolder <DirectoryInfo>
Name of the folder containing the Blueprint and artifacts
Required? true
Position? 0
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Passthru [<SwitchParameter>]
Passes the created template to thje pipeline
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
System.Object
NOTES
-------------------------- Example 1 --------------------------
Get-ChildItem C:\\Blueprints\\AxTest
Directory: C:\\Dev\\AxBlueprint\\AxTest
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 11/3/2018 1:12 PM 1142 Blueprint.json
-a---- 11/3/2018 9:51 AM 387 Management-RBAC-Contributor.json
-a---- 11/3/2018 9:51 AM 375 Management-RBAC-Owner.json
-a---- 11/3/2018 9:58 AM 425 Network-Policy-RestrictNSG.json
-a---- 11/3/2018 1:14 PM 384 Network-RBAC-Contributor.json
-a---- 11/3/2018 1:14 PM 372 Network-RBAC-Owner.json
-a---- 11/3/2018 10:02 AM 1541 Network-Template-VNet.json
-a---- 11/3/2018 1:16 PM 407 Subscription-Policy-AllowedLocations.json
PS C:\\> Set-AzureBlueprint -BlueprintFolder C:\\Blueprints\\AxTest
Creates a Blueprint called AxTest and adds the artifacts accordingly.
RELATED LINKS