Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.21k stars 3.81k forks source link

[Az.Blueprint] Artifact cmdlets don't return DependsOn #10548

Closed jtuliani closed 4 years ago

jtuliani commented 4 years ago

Description

I am using New-AzBlueprintArtifact to create an artefact. I am specifying DependsOn I can see that DependsOn is working by checking the HTTP traffic using $DebugPreference="continue" (output below) However, the object returned by this cmdlet does not populate the DependsOn property (also in output below)

Likewise, Get-AzBlueprintArtifact doesn't show DependsOn

Steps to reproduce

New-AzBlueprintArtifact -Name "extensions-template" `
    -Type TemplateArtifact `
    -Blueprint $bp `
    -Description "Virtual Machine extensions template" `
    -ResourceGroupName AppRG `
    -TemplateFile "$demoFolder\templates\extensions.json" `
    -TemplateParameterFile "$demoFolder\templates\extensions-params.json" `
    -DependsOn @( "vm-template" )

Environment data

Name                           Value                                                                       
----                           -----                                                                       
PSVersion                      5.1.18362.145                                                               
PSEdition                      Desktop                                                                     
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                     
BuildVersion                   10.0.18362.145                                                              
CLRVersion                     4.0.30319.42000                                                             
WSManStackVersion              3.0                                                                         
PSRemotingProtocolVersion      2.3                                                                         
SerializationVersion           1.1.0.1    

Module versions

PS C:\> (Get-Module  -ListAvailable)

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands                                 
---------- -------    ----                                ----------------                                 
Script     3.19.8.1   ADAL.PS                             {Get-ADALAuthenticationContext, New-ADALUserId...
Script     1.6.4      Az.Accounts                         {Disable-AzDataCollection, Disable-AzContextAu...
Script     1.5.3      Az.Accounts                         {Disable-AzDataCollection, Disable-AzContextAu...
Script     1.3.0      Az.Accounts                         {Disable-AzDataCollection, Disable-AzContextAu...
Script     1.0.1      Az.Aks                              {Get-AzAks, New-AzAks, Remove-AzAks, Import-Az...
Script     1.1.0      Az.AnalysisServices                 {Resume-AzAnalysisServicesServer, Suspend-AzAn...
Script     1.0.0      Az.AnalysisServices                 {Resume-AzAnalysisServicesServer, Suspend-AzAn...
Script     1.1.0      Az.ApiManagement                    {Add-AzApiManagementApiToProduct, Add-AzApiMan...
Script     1.0.0      Az.ApiManagement                    {Add-AzApiManagementRegion, Get-AzApiManagemen...
Script     1.0.0      Az.ApplicationInsights              {Get-AzApplicationInsights, New-AzApplicationI...
Script     1.2.2      Az.Automation                       {Get-AzAutomationHybridWorkerGroup, Remove-AzA...
Script     1.1.0      Az.Automation                       {Get-AzAutomationHybridWorkerGroup, Remove-AzA...
Script     1.1.0      Az.Batch                            {Remove-AzBatchAccount, Get-AzBatchAccount, Ge...
Script     1.0.0      Az.Batch                            {Remove-AzBatchAccount, Get-AzBatchAccount, Ge...
Script     1.0.0      Az.Billing                          {Get-AzBillingInvoice, Get-AzBillingPeriod, Ge...
Script     0.2.7      Az.Blueprint                        {Get-AzBlueprint, Get-AzBlueprintAssignment, N...
Script     1.3.0      Az.Cdn                              {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New...
Script     1.0.1      Az.Cdn                              {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New...
Script     1.1.1      Az.CognitiveServices                {Get-AzCognitiveServicesAccount, Get-AzCogniti...
Script     1.0.0      Az.CognitiveServices                {Get-AzCognitiveServicesAccount, Get-AzCogniti...
Script     2.3.0      Az.Compute                          {Remove-AzAvailabilitySet, Get-AzAvailabilityS...
Script     1.3.0      Az.Compute                          {Remove-AzAvailabilitySet, Get-AzAvailabilityS...
Script     1.0.1      Az.ContainerInstance                {New-AzContainerGroup, Get-AzContainerGroup, R...
Script     1.0.0      Az.ContainerInstance                {New-AzContainerGroup, Get-AzContainerGroup, R...
Script     1.0.1      Az.ContainerRegistry                {New-AzContainerRegistry, Get-AzContainerRegis...
Script     1.1.1      Az.DataFactory                      {Set-AzDataFactoryV2, Update-AzDataFactoryV2, ...
Script     1.0.1      Az.DataFactory                      {Set-AzDataFactoryV2, Update-AzDataFactoryV2, ...
Script     1.0.0      Az.DataLakeAnalytics                {Get-AzDataLakeAnalyticsDataSource, New-AzData...
Script     1.2.1      Az.DataLakeStore                    {Get-AzDataLakeStoreTrustedIdProvider, Remove-...
Script     1.0.2      Az.DataLakeStore                    {Get-AzDataLakeStoreTrustedIdProvider, Remove-...
Script     1.0.0      Az.DeploymentManager                {Get-AzDeploymentManagerArtifactSource, New-Az...
Script     1.0.0      Az.DevTestLabs                      {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoS...
Script     1.1.1      Az.Dns                              {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Re...
Script     1.0.0      Az.Dns                              {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Re...
Script     1.2.0      Az.EventGrid                        {New-AzEventGridTopic, Get-AzEventGridTopic, S...
Script     1.1.0      Az.EventGrid                        {New-AzEventGridTopic, Get-AzEventGridTopic, S...
Script     1.2.0      Az.EventHub                         {New-AzEventHubNamespace, Get-AzEventHubNamesp...
Script     1.0.0      Az.EventHub                         {New-AzEventHubNamespace, Get-AzEventHubNamesp...
Script     1.1.0      Az.FrontDoor                        {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFront...
Script     2.0.0      Az.HDInsight                        {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDe...
Script     1.0.0      Az.HDInsight                        {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDe...
Script     1.1.0      Az.IotHub                           {Add-AzIotHubKey, Get-AzIotHubEventHubConsumer...
Script     1.0.2      Az.IotHub                           {Add-AzIotHubKey, Get-AzIotHubEventHubConsumer...
Script     1.2.0      Az.KeyVault                         {Add-AzKeyVaultCertificate, Update-AzKeyVaultC...
Script     1.0.1      Az.KeyVault                         {Add-AzKeyVaultCertificate, Update-AzKeyVaultC...
Script     1.2.1      Az.LogicApp                         {Get-AzIntegrationAccountAgreement, Get-AzInte...
Script     1.1.0      Az.LogicApp                         {Get-AzIntegrationAccountAgreement, Get-AzInte...
Script     1.1.0      Az.MachineLearning                  {Move-AzMlCommitmentAssociation, Get-AzMlCommi...
Script     1.0.0      Az.MachineLearning                  {Move-AzMlCommitmentAssociation, Get-AzMlCommi...
Script     1.0.0      Az.MarketplaceOrdering              {Get-AzMarketplaceTerms, Set-AzMarketplaceTerms} 
Script     1.1.0      Az.Media                            {Sync-AzMediaServiceStorageKey, Set-AzMediaSer...
Script     1.0.0      Az.Media                            {Sync-AzMediaServiceStorageKeys, Set-AzMediaSe...
Script     1.2.1      Az.Monitor                          {Get-AzMetricDefinition, Get-AzMetric, Remove-...
Script     1.0.0      Az.Monitor                          {Get-AzMetricDefinition, Get-AzMetric, Remove-...
Script     1.10.0     Az.Network                          {Add-AzApplicationGatewayAuthenticationCertifi...
Script     1.1.0      Az.Network                          {Add-AzApplicationGatewayAuthenticationCertifi...
Script     1.1.0      Az.NotificationHubs                 {Get-AzNotificationHub, Get-AzNotificationHubA...
Script     1.0.0      Az.NotificationHubs                 {Get-AzNotificationHub, Get-AzNotificationHubA...
Script     1.3.0      Az.OperationalInsights              {New-AzOperationalInsightsAzureActivityLogData...
Script     1.0.0      Az.OperationalInsights              {New-AzOperationalInsightsAzureActivityLogData...
Script     1.1.1      Az.PolicyInsights                   {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzP...
Script     1.0.0      Az.PolicyInsights                   {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzP...
Script     1.1.0      Az.PowerBIEmbedded                  {Remove-AzPowerBIWorkspaceCollection, Get-AzPo...
Script     1.0.0      Az.PowerBIEmbedded                  {Remove-AzPowerBIWorkspaceCollection, Get-AzPo...
Script     1.4.1      Az.RecoveryServices                 {Get-AzRecoveryServicesBackupProperty, Get-AzR...
Script     1.0.0      Az.RecoveryServices                 {Get-AzRecoveryServicesBackupProperty, Get-AzR...
Script     1.1.0      Az.RedisCache                       {Remove-AzRedisCachePatchSchedule, New-AzRedis...
Script     1.0.0      Az.RedisCache                       {Remove-AzRedisCachePatchSchedule, New-AzRedis...
Script     1.0.1      Az.Relay                            {New-AzRelayNamespace, Get-AzRelayNamespace, S...
Script     1.0.0      Az.Relay                            {New-AzRelayNamespace, Get-AzRelayNamespace, S...
Script     1.5.0      Az.Resources                        {Get-AzProviderOperation, Remove-AzRoleAssignm...
Script     1.1.2      Az.Resources                        {Get-AzProviderOperation, Remove-AzRoleAssignm...
Script     1.2.0      Az.ServiceBus                       {New-AzServiceBusNamespace, Get-AzServiceBusNa...
Script     1.0.0      Az.ServiceBus                       {New-AzServiceBusNamespace, Get-AzServiceBusNa...
Script     1.1.1      Az.ServiceFabric                    {Add-AzServiceFabricApplicationCertificate, Ad...
Script     1.0.1      Az.ServiceFabric                    {Add-AzServiceFabricApplicationCertificate, Ad...
Script     1.0.2      Az.SignalR                          {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKe...
Script     1.12.0     Az.Sql                              {Get-AzSqlDatabaseTransparentDataEncryption, G...
Script     1.2.0      Az.Sql                              {Get-AzSqlDatabaseTransparentDataEncryption, G...
Script     1.4.0      Az.Storage                          {Get-AzStorageAccount, Get-AzStorageAccountKey...
Script     1.0.2      Az.Storage                          {Get-AzStorageAccount, Get-AzStorageAccountKey...
Script     1.0.0      Az.StreamAnalytics                  {Get-AzStreamAnalyticsFunction, Get-AzStreamAn...
Script     1.0.1      Az.TrafficManager                   {Add-AzTrafficManagerCustomHeaderToEndpoint, R...
Script     1.3.0      Az.Websites                         {Get-AzAppServicePlan, Set-AzAppServicePlan, N...
Script     1.1.0      Az.Websites                         {Get-AzAppServicePlan, Set-AzAppServicePlan, N...
Binary     2.0.1.16   AzureAD                             {Add-AzureADApplicationOwner, Get-AzureADAppli...
Script     1.0.1      Microsoft.PowerShell.Operation.V... {Get-OperationValidation, Invoke-OperationVali...
Manifest   1.1.183.17 MSOnline                            {Get-MsolDevice, Remove-MsolDevice, Enable-Mso...
Script     1.1.7.0    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvide...
Binary     1.0.0.1    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvide...
Script     3.4.0      Pester                              {Describe, Context, It, Should...}               
Script     1.6.0      PowerShellGet                       {Install-Module, Find-Module, Save-Module, Upd...
Script     1.0.0.1    PowerShellGet                       {Install-Module, Find-Module, Save-Module, Upd...
Script     2.0.0      PSReadline                          {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHa...
Manifest   1.3.2.4    xWebAdministration                                                                   

    Directory: C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules

ModuleType Version    Name                                ExportedCommands                                 
---------- -------    ----                                ----------------                                 
Manifest   1.0.0.0    AppBackgroundTask                   {Disable-AppBackgroundTaskDiagnosticLog, Enabl...
Manifest   2.0.0.0    AppLocker                           {Get-AppLockerFileInformation, Get-AppLockerPo...
Manifest   1.0.0.0    AppvClient                          {Add-AppvClientConnectionGroup, Add-AppvClient...
Manifest   2.0.1.0    Appx                                {Add-AppxPackage, Get-AppxPackage, Get-AppxPac...
Script     1.0.0.0    AssignedAccess                      {Clear-AssignedAccess, Get-AssignedAccess, Set...
Manifest   1.0.0.0    BitLocker                           {Unlock-BitLocker, Suspend-BitLocker, Resume-B...
Manifest   2.0.0.0    BitsTransfer                        {Add-BitsFile, Complete-BitsTransfer, Get-Bits...
Manifest   1.0.0.0    BranchCache                         {Add-BCDataCacheExtension, Clear-BCCache, Disa...
Manifest   1.0.0.0    CimCmdlets                          {Get-CimAssociatedInstance, Get-CimClass, Get-...
Manifest   1.0        ConfigCI                            {Get-SystemDriver, New-CIPolicyRule, New-CIPol...
Manifest   1.0        ConfigDefender                      {Get-MpPreference, Set-MpPreference, Add-MpPre...
Manifest   1.0        Defender                            {Get-MpPreference, Set-MpPreference, Add-MpPre...
Manifest   1.0.2.0    DeliveryOptimization                {Delete-DeliveryOptimizationCache, Get-Deliver...
Manifest   1.0.0.0    DirectAccessClientComponents        {Disable-DAManualEntryPointSelection, Enable-D...
Script     3.0        Dism                                {Add-AppxProvisionedPackage, Add-WindowsDriver...
Manifest   1.0.0.0    DnsClient                           {Resolve-DnsName, Clear-DnsClientCache, Get-Dn...
Manifest   1.0.0.0    EventTracingManagement              {Start-EtwTraceSession, New-EtwTraceSession, G...
Manifest   2.0.0.0    International                       {Get-WinDefaultInputMethodOverride, Set-WinDef...
Manifest   1.0.0.0    iSCSI                               {Get-IscsiTargetPortal, New-IscsiTargetPortal,...
Script     1.0.0.0    ISE                                 {New-IseSnippet, Import-IseSnippet, Get-IseSni...
Manifest   1.0.0.0    Kds                                 {Add-KdsRootKey, Get-KdsRootKey, Test-KdsRootK...
Manifest   1.0.1.0    Microsoft.PowerShell.Archive        {Compress-Archive, Expand-Archive}               
Manifest   3.0.0.0    Microsoft.PowerShell.Diagnostics    {Get-WinEvent, Get-Counter, Import-Counter, Ex...
Manifest   3.0.0.0    Microsoft.PowerShell.Host           {Start-Transcript, Stop-Transcript}              
Manifest   1.0.0.0    Microsoft.PowerShell.LocalAccounts  {Add-LocalGroupMember, Disable-LocalUser, Enab...
Manifest   3.1.0.0    Microsoft.PowerShell.Management     {Add-Content, Clear-Content, Clear-ItemPropert...
Script     1.0        Microsoft.PowerShell.ODataUtils     Export-ODataEndpointProxy                        
Manifest   3.0.0.0    Microsoft.PowerShell.Security       {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Cre...
Manifest   3.1.0.0    Microsoft.PowerShell.Utility        {Format-List, Format-Custom, Format-Table, For...
Manifest   3.0.0.0    Microsoft.WSMan.Management          {Disable-WSManCredSSP, Enable-WSManCredSSP, Ge...
Manifest   1.0        MMAgent                             {Disable-MMAgent, Enable-MMAgent, Set-MMAgent,...
Manifest   1.0.0.0    MsDtc                               {New-DtcDiagnosticTransaction, Complete-DtcDia...
Manifest   2.0.0.0    NetAdapter                          {Disable-NetAdapter, Disable-NetAdapterBinding...
Manifest   1.0.0.0    NetConnection                       {Get-NetConnectionProfile, Set-NetConnectionPr...
Manifest   1.0.0.0    NetDiagnostics                      Get-NetView                                      
Manifest   1.0.0.0    NetEventPacketCapture               {New-NetEventSession, Remove-NetEventSession, ...
Manifest   2.0.0.0    NetLbfo                             {Add-NetLbfoTeamMember, Add-NetLbfoTeamNic, Ge...
Manifest   1.0        NetLldpAgent                        {Enable-NetLldpAgent, Disable-NetLldpAgent, Ge...
Manifest   1.0.0.0    NetNat                              {Get-NetNat, Get-NetNatExternalAddress, Get-Ne...
Manifest   2.0.0.0    NetQos                              {Get-NetQosPolicy, Set-NetQosPolicy, Remove-Ne...
Manifest   2.0.0.0    NetSecurity                         {Get-DAPolicyChange, New-NetIPsecAuthProposal,...
Manifest   1.0.0.0    NetSwitchTeam                       {New-NetSwitchTeam, Remove-NetSwitchTeam, Get-...
Manifest   1.0.0.0    NetTCPIP                            {Get-NetIPAddress, Get-NetIPInterface, Get-Net...
Manifest   1.0.0.0    NetworkConnectivityStatus           {Get-DAConnectionStatus, Get-NCSIPolicyConfigu...
Manifest   1.0.0.0    NetworkControllerDiagnostics        {Get-NetworkControllerDeploymentInfo, Get-Netw...
Manifest   1.0.0.0    NetworkSwitchManager                {Disable-NetworkSwitchEthernetPort, Enable-Net...
Manifest   1.0.0.0    NetworkTransition                   {Add-NetIPHttpsCertBinding, Disable-NetDnsTran...
Manifest   1.0.0.0    PcsvDevice                          {Get-PcsvDevice, Start-PcsvDevice, Stop-PcsvDe...
Binary     1.0.0.0    PersistentMemory                    {Get-PmemDisk, Get-PmemPhysicalDevice, Get-Pme...
Manifest   1.0.0.0    PKI                                 {Add-CertificateEnrollmentPolicyServer, Export...
Manifest   1.0.0.0    PnpDevice                           {Get-PnpDevice, Get-PnpDeviceProperty, Enable-...
Manifest   1.1        PrintManagement                     {Add-Printer, Add-PrinterDriver, Add-PrinterPo...
Binary     1.0.11     ProcessMitigations                  {Get-ProcessMitigation, Set-ProcessMitigation,...
Script     3.0        Provisioning                        {Install-ProvisioningPackage, Export-Provision...
Manifest   1.1        PSDesiredStateConfiguration         {Set-DscLocalConfigurationManager, Start-DscCo...
Script     1.0.0.0    PSDiagnostics                       {Disable-PSTrace, Disable-PSWSManCombinedTrace...
Binary     1.1.0.0    PSScheduledJob                      {New-JobTrigger, Add-JobTrigger, Remove-JobTri...
Manifest   2.0.0.0    PSWorkflow                          {New-PSWorkflowExecutionOption, New-PSWorkflow...
Manifest   1.0.0.0    PSWorkflowUtility                   Invoke-AsWorkflow                                
Manifest   1.0.0.0    ScheduledTasks                      {Get-ScheduledTask, Set-ScheduledTask, Registe...
Manifest   2.0.0.0    SecureBoot                          {Confirm-SecureBootUEFI, Set-SecureBootUEFI, G...
Manifest   2.0.0.0    SmbShare                            {Get-SmbShare, Remove-SmbShare, Set-SmbShare, ...
Manifest   2.0.0.0    SmbWitness                          {Get-SmbWitnessClient, Move-SmbWitnessClient, ...
Manifest   1.0.0.0    StartLayout                         {Export-StartLayout, Import-StartLayout, Expor...
Manifest   2.0.0.0    Storage                             {Add-InitiatorIdToMaskingSet, Add-PartitionAcc...
Manifest   1.0.0.0    StorageBusCache                     {Clear-StorageBusDisk, Disable-StorageBusCache...
Manifest   2.0.0.0    TLS                                 {New-TlsSessionTicketKey, Enable-TlsSessionTic...
Manifest   1.0.0.0    TroubleshootingPack                 {Get-TroubleshootingPack, Invoke-Troubleshooti...
Manifest   2.0.0.0    TrustedPlatformModule               {Get-Tpm, Initialize-Tpm, Clear-Tpm, Unblock-T...
Binary     2.1.639.0  UEV                                 {Clear-UevConfiguration, Clear-UevAppxPackage,...
Manifest   2.0.0.0    VpnClient                           {Add-VpnConnection, Set-VpnConnection, Remove-...
Manifest   1.0.0.0    Wdac                                {Get-OdbcDriver, Set-OdbcDriver, Get-OdbcDsn, ...
Manifest   2.0.0.0    Whea                                {Get-WheaMemoryPolicy, Set-WheaMemoryPolicy}     
Manifest   1.0.0.0    WindowsDeveloperLicense             {Get-WindowsDeveloperLicense, Unregister-Windo...
Script     1.0        WindowsErrorReporting               {Enable-WindowsErrorReporting, Disable-Windows...
Manifest   1.0.0.0    WindowsSearch                       {Get-WindowsSearchSetting, Set-WindowsSearchSe...
Manifest   1.0.0.0    WindowsUpdate                       Get-WindowsUpdateLog                             
Manifest   1.0.0.2    WindowsUpdateProvider               {Get-WUAVersion, Get-WULastInstallationDate, G...

    Directory: C:\Program Files\Common Files\Skype for Business Online\Modules

ModuleType Version    Name                                ExportedCommands                                 
---------- -------    ----                                ----------------                                 
Manifest   7.0.0.0    LyncOnlineConnector                                                                  
Script     7.0.0.0    SkypeOnlineConnector                {Get-CsPowerShellEndpoint, Get-CsAccessToken, ...

Debug output

DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
PUT

Absolute Uri:
https://management.azure.com//providers/Microsoft.Management/managementGroups/group1/providers/Microsoft.Blu
eprint/blueprints/Demo1/artifacts/extensions-template?api-version=2018-11-01-preview

Headers:
x-ms-client-request-id        : 0517528e-8d95-4872-b729-c18a9af143db
accept-language               : en-US

Body:
{
  "kind": "template",
  "properties": {
    "displayName": "extensions-template",
    "description": "Virtual Machine extensions template",
    "dependsOn": [
      "vm-template"
    ],
    "template": {
      "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
      "contentVersion": "1.0.0.0",
      "parameters": {
        "vmName": {
          "type": "string",
          "metadata": {
            "description": "Name of the virtual machine to apply the VM extensions to."
          }
        }
      },
      "variables": {
        "extensionName": "[concat(parameters('vmName'), '-antimalware')]"
      },
      "resources": [
        {
          "type": "Microsoft.Compute/virtualMachines/extensions",
          "name": "[concat(parameters('vmName'),'/', variables('extensionName'))]",
          "apiVersion": "2017-03-30",
          "location": "[resourceGroup().location]",
          "properties": {
            "publisher": "Microsoft.Azure.Security",
            "type": "IaaSAntimalware",
            "typeHandlerVersion": "1.3",
            "autoUpgradeMinorVersion": true,
            "settings": {
              "AntimalwareEnabled": true,
              "Exclusions": {
                "Extensions": ".log;.ldf",
                "Paths": "D:\\IISlogs;D:\\DatabaseLogs",
                "Processes": "mssence.svc"
              },
              "RealtimeProtectionEnabled": "true",
              "ScheduledScanSettings": {
                "isEnabled": "true",
                "scanType": "Quick",
                "day": "7",
                "time": "120"
              }
            },
            "protectedSettings": null
          }
        }
      ]
    },
    "resourceGroup": "AppRG",
    "parameters": {
      "vmName": {
        "value": "[artifacts('vm-template').outputs.vmName]"
      }
    }
  }
}

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
Created

Headers:
Pragma                        : no-cache
x-ms-request-id               : 21db447f-4b98-489b-82e5-f6a2bb8d2788
x-ms-ratelimit-remaining-tenant-writes: 1198
x-ms-correlation-request-id   : 3aa6c1fd-2935-4370-938d-dbccfcedb4ff
x-ms-routing-request-id       : NORTHEUROPE:20191115T074717Z:3aa6c1fd-2935-4370-938d-dbccfcedb4ff
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Cache-Control                 : no-cache
Date                          : Fri, 15 Nov 2019 07:47:16 GMT
Server                        : Microsoft-HTTPAPI/2.0

Body:
{
  "properties": {
    "template": {
      "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
      "contentVersion": "1.0.0.0",
      "parameters": {
        "vmName": {
          "type": "string",
          "metadata": {
            "description": "Name of the virtual machine to apply the VM extensions to."
          }
        }
      },
      "variables": {
        "extensionName": "[concat(parameters('vmName'), '-antimalware')]"
      },
      "resources": [
        {
          "type": "Microsoft.Compute/virtualMachines/extensions",
          "name": "[concat(parameters('vmName'),'/', variables('extensionName'))]",
          "apiVersion": "2017-03-30",
          "location": "[resourceGroup().location]",
          "properties": {
            "publisher": "Microsoft.Azure.Security",
            "type": "IaaSAntimalware",
            "typeHandlerVersion": "1.3",
            "autoUpgradeMinorVersion": true,
            "settings": {
              "AntimalwareEnabled": true,
              "Exclusions": {
                "Extensions": ".log;.ldf",
                "Paths": "D:\\IISlogs;D:\\DatabaseLogs",
                "Processes": "mssence.svc"
              },
              "RealtimeProtectionEnabled": "true",
              "ScheduledScanSettings": {
                "isEnabled": "true",
                "scanType": "Quick",
                "day": "7",
                "time": "120"
              }
            },
            "protectedSettings": null
          }
        }
      ]
    },
    "parameters": {
      "vmName": {
        "value": "[artifacts('vm-template').outputs.vmName]"
      }
    },
    "dependsOn": [
      "vm-template"
    ],
    "resourceGroup": "AppRG",
    "displayName": "extensions-template",
    "description": "Virtual Machine extensions template"
  },
  "kind": "template",
  "id": "/providers/Microsoft.Management/managementGroups/group1/providers/Microsoft.Blueprint/blueprints/De
mo1/artifacts/extensions-template",
  "type": "Microsoft.Blueprint/blueprints/artifacts",
  "name": "extensions-template"
}

DisplayName   : extensions-template
Description   : Virtual Machine extensions template
DependsOn     : 
Template      : {$schema, contentVersion, parameters, variables...}
Parameters    : {[vmName, Microsoft.Azure.Commands.Blueprint.Models.PSParameterValue]}
ResourceGroup : AppRG
Id            : /providers/Microsoft.Management/managementGroups/group1/providers/Microsoft.Blueprint/bluep
                rints/Demo1/artifacts/extensions-template
Type          : Microsoft.Blueprint/blueprints/artifacts
Name          : extensions-template

DEBUG: AzureQoSEvent: CommandName - New-AzBlueprintArtifact; IsSuccess - True; Duration - 00:00:00.5821996; 
Exception - ;
DEBUG: Finish sending metric.
DEBUG: 07:47:14 - NewAzureRMBlueprintArtifact end processing.
DEBUG: 07:47:14 - NewAzureRMBlueprintArtifact end processing.

Error output

n/a
alex-frankel commented 4 years ago

Hi @jtuliani - we are taking a look now. Apologies as these issues seemed to not be getting routed appropriately.

adlandfield commented 4 years ago

Assigned in error. Please remove me.

From: Alex Frankel notifications@github.com Sent: Friday, February 7, 2020 2:09 PM To: Azure/azure-powershell azure-powershell@noreply.github.com Cc: Anne Landfield Anne.Landfield@microsoft.com; Assign assign@noreply.github.com Subject: Re: [Azure/azure-powershell] [Az.Blueprint] Artifact cmdlets don't return DependsOn (#10548)

Assigned #10548https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-powershell%2Fissues%2F10548&data=02%7C01%7Canne.landfield%40microsoft.com%7C39d6b57749394618ec2308d7ac1a676b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637167101710252452&sdata=M5rMMbHiZvtD%2BQCUNShT48sRn7Mg7O7oQw4d%2FIBtgbE%3D&reserved=0 to @adlandfieldhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fadlandfield&data=02%7C01%7Canne.landfield%40microsoft.com%7C39d6b57749394618ec2308d7ac1a676b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637167101710252452&sdata=FFYMwKEKA9ppiSvkoPfL9VkA8sPBXxk4Rgfqy7IAgTQ%3D&reserved=0.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-powershell%2Fissues%2F10548%3Femail_source%3Dnotifications%26email_token%3DAKMSFQWJETNU2T4YFORIW33RBXLZTA5CNFSM4JNW7PR2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOWP3HL3Q%23event-3019273710&data=02%7C01%7Canne.landfield%40microsoft.com%7C39d6b57749394618ec2308d7ac1a676b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637167101710262446&sdata=BhwVEaUmI%2FIxBsXyqCrMUZxQJZgayU4om3CNi%2FR3ecU%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKMSFQXOO5SN43WB37GXSJ3RBXLZTANCNFSM4JNW7PRQ&data=02%7C01%7Canne.landfield%40microsoft.com%7C39d6b57749394618ec2308d7ac1a676b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637167101710262446&sdata=Mfzhh3Fav5PV8fv4dgnUuI6nqMAWs37FbiqKVvKSSrs%3D&reserved=0.

alex-frankel commented 4 years ago

The fix for this has been checked in. It will go out in the next release of the Az.Blueprint module in ~2 weeks