Azure / azure-powershell

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

Import-AzBlueprintWithArtifact not importing Artifacts #9720

Closed mrptsai closed 5 years ago

mrptsai commented 5 years ago

Description

When importing a Blueprint from a directory containing the Parent and Artifacts JSON files, only the Resource Group(s) are imported not the Artifacts such as Templates or Policies

Steps to reproduce

Import-AzBlueprintWithArtifact -Name WebApp-Demo -ManagementGroupId Development -InputPath /Users/Test/Repos/Blueprints/WebApp-Demo -Force

Environment data

Name                                          Value
----                                             -----
PSVersion                                   6.2.2
PSEdition                                    Core
GitCommitId                               6.2.2
OS                                               Darwin 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64
Platform                                      Unix
PSCompatibleVersions              {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion     2.3
SerializationVersion                   1.1.0.1
WSManStackVersion                 3.0

Module versions

    Directory: /usr/local/share/powershell/Modules

ModuleType Version    Name                                PSEdition ExportedCommands
---------- -------    ----                                --------- ----------------
Script     2.1.0      Az                                  Core,Desk 
Script     1.6.0      Az.Accounts                         Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollectio…
Script     1.0.1      Az.Aks                              Core,Desk {Get-AzAks, New-AzAks, Remove-AzAks, Import-AzAksCredential…}
Script     1.1.0      Az.AnalysisServices                 Core,Desk {Resume-AzAnalysisServicesServer, Suspend-AzAnalysisServicesServer, Get-AzAn…
Script     1.1.0      Az.ApiManagement                    Core,Desk {Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzA…
Script     1.0.0      Az.ApplicationInsights              Core,Desk {Get-AzApplicationInsights, New-AzApplicationInsights, Remove-AzApplicationI…
Script     1.2.2      Az.Automation                       Core,Desk {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Ge…
Script     1.1.0      Az.Batch                            Core,Desk {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBat…
Script     1.0.0      Az.Billing                          Core,Desk {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzC…
Script     0.2.2      Az.Blueprint                        Core,Desk {Get-AzBlueprint, Get-AzBlueprintAssignment, New-AzBlueprintAssignment, Remo…
Script     1.2.0      Az.Cdn                              Core,Desk {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnPro…
Script     1.1.1      Az.CognitiveServices                Core,Desk {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCo…
Script     2.1.0      Az.Compute                          Core,Desk {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Upd…
Script     1.0.1      Az.ContainerInstance                Core,Desk {New-AzContainerGroup, Get-AzContainerGroup, Remove-AzContainerGroup, Get-Az…
Script     1.0.1      Az.ContainerRegistry                Core,Desk {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistr…
Script     1.1.1      Az.DataFactory                      Core,Desk {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-Az…
Script     1.0.0      Az.DataLakeAnalytics                Core,Desk {Get-AzDataLakeAnalyticsDataSource, New-AzDataLakeAnalyticsCatalogCredential…
Script     1.2.1      Az.DataLakeStore                    Core,Desk {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvid…
Script     1.0.0      Az.DeploymentManager                Core,Desk {Get-AzDeploymentManagerArtifactSource, New-AzDeploymentManagerArtifactSourc…
Script     1.0.0      Az.DevTestLabs                      Core,Desk {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutdownPolicy, Get-AzDtlAutoSt…
Script     1.1.0      Az.Dns                              Core,Desk {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove-AzDnsRecordSet, Set-AzDns…
Script     1.1.1      Az.EventGrid                        Core,Desk {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEve…
Script     1.1.0      Az.EventHub                         Core,Desk {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, …
Script     1.0.0      Az.FrontDoor                        Core,Desk {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor, Remove-AzFrontDoor…}
Script     2.0.0      Az.HDInsight                        Core,Desk {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob,…
Script     1.1.0      Az.IotHub                           Core,Desk {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionS…
Script     1.2.0      Az.KeyVault                         Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCer…
Script     1.2.1      Az.LogicApp                         Core,Desk {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-Az…
Script     1.1.0      Az.MachineLearning                  Core,Desk {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlComm…
Script     1.0.0      Az.MarketplaceOrdering              Core,Desk {Get-AzMarketplaceTerms, Set-AzMarketplaceTerms}
Script     1.1.0      Az.Media                            Core,Desk {Sync-AzMediaServiceStorageKey, Set-AzMediaServiceKey, Get-AzMediaServiceKey…
Script     1.2.1      Az.Monitor                          Core,Desk {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile…
Script     1.8.1      Az.Network                          Core,Desk {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGateway…
Script     1.1.0      Az.NotificationHubs                 Core,Desk {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotifi…
Script     1.2.0      Az.OperationalInsights              Core,Desk {New-AzOperationalInsightsAzureActivityLogDataSource, New-AzOperationalInsig…
Script     1.1.0      Az.PolicyInsights                   Core,Desk {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolic…
Script     1.1.0      Az.PowerBIEmbedded                  Core,Desk {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollection, Get-…
Script     1.4.0      Az.RecoveryServices                 Core,Desk {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRe…
Script     1.1.0      Az.RedisCache                       Core,Desk {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedi…
Script     1.0.1      Az.Relay                            Core,Desk {New-AzRelayNamespace, Get-AzRelayNamespace, Set-AzRelayNamespace, Remove-Az…
Script     1.4.0      Az.Resources                        Core,Desk {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New…
Script     1.1.0      Az.ServiceBus                       Core,Desk {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNames…
Script     1.0.1      Az.ServiceFabric                    Core,Desk {Add-AzServiceFabricApplicationCertificate, Add-AzServiceFabricClientCertifi…
Script     1.0.2      Az.SignalR                          Core,Desk {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey…}
Script     1.10.0     Az.Sql                              Core,Desk {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDat…
Script     1.3.0      Az.Storage                          Core,Desk {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-Az…
Script     1.0.0      Az.StreamAnalytics                  Core,Desk {Get-AzStreamAnalyticsFunction, Get-AzStreamAnalyticsDefaultFunctionDefiniti…
Script     1.0.1      Az.TrafficManager                   Core,Desk {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHe…
Script     1.2.1      Az.Websites                         Core,Desk {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-Az…
Script     4.7.0      Pester                              Desk      {Describe, Context, It, Should…}
Script     0.7.3      posh-git                            Desk      {Invoke-NullCoalescing, Add-PoshGitToProfile, Get-PromptPath, Write-GitStatu…
Script     1.18.1     PSScriptAnalyzer                    Desk      {Get-ScriptAnalyzerRule, Invoke-ScriptAnalyzer, Invoke-Formatter}
Binary     0.8.1      SHiPS                               Desk      
Script     0.0.2      Trackyon.Utils                      Desk      {Backup-Location, Get-OperatingSystem, New-Directory, Set-As…}
Script     6.2.9      VSTeam                              Desk      {Add-VSTeam, Add-VSTeamAccessControlEntry, Add-VSTeamAzureRMServiceEndpoint,…
Script     1.0.0      WindowsCompatibility                Core      {Initialize-WinSession, Add-WinFunction, Invoke-WinCommand, Get-WinModule…}

    Directory: /usr/local/microsoft/powershell/6/Modules

ModuleType Version    Name                                PSEdition ExportedCommands
---------- -------    ----                                --------- ----------------
Manifest   1.2.3.0    Microsoft.PowerShell.Archive        Desk      {Compress-Archive, Expand-Archive}
Manifest   6.1.0.0    Microsoft.PowerShell.Host           Core      {Start-Transcript, Stop-Transcript}
Manifest   6.1.0.0    Microsoft.PowerShell.Management     Core      {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path…}
Manifest   6.1.0.0    Microsoft.PowerShell.Security       Core      {Get-Credential, Get-ExecutionPolicy, Set-ExecutionPolicy, ConvertFrom-Secur…
Manifest   6.1.0.0    Microsoft.PowerShell.Utility        Core      {Export-Alias, Get-Alias, Import-Alias, New-Alias…}
Script     1.3.2      PackageManagement                   Desk      {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}
Script     2.1.3      PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}
Script     0.0        PSDesiredStateConfiguration         Desk      {GetPatterns, Get-CompatibleVersionAddtionaPropertiesStr, ValidateNodeResour…
Script     2.0.0      PSReadLine                          Desk      {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHan…
Binary     1.1.2      ThreadJob                           Desk      Start-ThreadJob

Debug output

DEBUG: 10:20:02 pm - ImportAzureRmBlueprint begin processing with ParameterSet 'ImportBlueprint'.
DEBUG: 10:20:02 pm - using account id 'paul.r.towler@outlook.com'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'paul.r.towler@outlook.com', environment: 'AzureCloud', tenant: 'bf1e9d54-1c48-4ee1-a470-0d8fdb5b9e5d'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: 'bf1e9d54-1c48-4ee1-a470-0d8fdb5b9e5d', Endpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using context with Authority 'https://login.microsoftonline.com/bf1e9d54-1c48-4ee1-a470-0d8fdb5b9e5d/', CorrelationId: '00000000-0000-0000-0000-000000000000', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using AdalConfiguration with Domain: 'bf1e9d54-1c48-4ee1-a470-0d8fdb5b9e5d', AdEndpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirectUri: urn:ietf:wg:oauth:2.0:oob
DEBUG: [ADAL]: Information: 2019-07-25T12:20:02.5314400Z: 8dd6ff26-1067-466d-b529-6bc931b897d1 - LoggerBase.cs: ADAL PCL.CoreCLR with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2019-07-25T12:20:02.5318460Z: 8dd6ff26-1067-466d-b529-6bc931b897d1 - LoggerBase.cs: ADAL PCL.CoreCLR with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2019-07-25T12:20:02.5321470Z: 8dd6ff26-1067-466d-b529-6bc931b897d1 - LoggerBase.cs: === Token Acquisition started: 
    CacheType: null
    Authentication Target: User
    , Authority Host: login.microsoftonline.com

DEBUG: [ADAL]: Information: 2019-07-25T12:20:02.5324330Z: 8dd6ff26-1067-466d-b529-6bc931b897d1 - LoggerBase.cs: === Token Acquisition started:
    Authority: https://login.microsoftonline.com/bf1e9d54-1c48-4ee1-a470-0d8fdb5b9e5d/
    Resource: https://management.core.windows.net/
    ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
    CacheType: null
    Authentication Target: User

DEBUG: [ADAL]: Verbose: 2019-07-25T12:20:02.5327470Z: 8dd6ff26-1067-466d-b529-6bc931b897d1 - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Verbose: 2019-07-25T12:20:02.5330210Z: 8dd6ff26-1067-466d-b529-6bc931b897d1 - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Verbose: 2019-07-25T12:20:02.5333040Z: 8dd6ff26-1067-466d-b529-6bc931b897d1 - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Verbose: 2019-07-25T12:20:02.5335500Z: 8dd6ff26-1067-466d-b529-6bc931b897d1 - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Information: 2019-07-25T12:20:02.5338080Z: 8dd6ff26-1067-466d-b529-6bc931b897d1 - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2019-07-25T12:20:02.5340810Z: 8dd6ff26-1067-466d-b529-6bc931b897d1 - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2019-07-25T12:20:02.5343630Z: 8dd6ff26-1067-466d-b529-6bc931b897d1 - LoggerBase.cs: 165.28117565 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2019-07-25T12:20:02.5346320Z: 8dd6ff26-1067-466d-b529-6bc931b897d1 - LoggerBase.cs: 165.28117565 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2019-07-25T12:20:02.5348990Z: 8dd6ff26-1067-466d-b529-6bc931b897d1 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2019-07-25T12:20:02.5352440Z: 8dd6ff26-1067-466d-b529-6bc931b897d1 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2019-07-25T12:20:02.5355810Z: 8dd6ff26-1067-466d-b529-6bc931b897d1 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 25/7/19 3:05:19 pm +00:00

DEBUG: [ADAL]: Information: 2019-07-25T12:20:02.5358790Z: 8dd6ff26-1067-466d-b529-6bc931b897d1 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 25/7/19 3:05:19 pm +00:00Access Token Hash: 9VueSnSRi7zKsqxt7PW7PUoXf4m2cEhduXnCPorrNCQ=
     User id: 514de40f-b0e8-428e-bf79-3ff34468eba6

DEBUG: [ADAL]: Information: 2019-07-25T12:20:02.5361830Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Serializing token cache with 4 items.

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '07/25/2019 15:05:19 +00:00', MultipleResource? 'True', Tenant: 'bf1e9d54-1c48-4ee1-a470-0d8fdb5b9e5d', UserId: 'paul.r.towler@outlook.com'
DEBUG: [Common.Authentication]: User info for token DisplayId: 'paul.r.towler@outlook.com', Name: Paul Towler, IdProvider: 'live.com', Uid: '514de40f-b0e8-428e-bf79-3ff34468eba6'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '07/25/2019 15:05:19 +00:00' Comparing to '07/25/2019 12:20:02 +00:00' With threshold '00:05:00', calculated time until token expiry: '02:45:16.8673080'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions/23b21251-6970-41ef-bdbd-f831b3d61b7e/providers/Microsoft.Blueprint/register?api-version=2018-05-01

Headers:
x-ms-client-request-id        : 3ef47715-181b-4e3a-9c78-cdc548374997
Accept-Language               : en-US

Body:

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

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-request-id               : a44f8bac-6e64-4c0c-926c-b441525f0767
x-ms-correlation-request-id   : a44f8bac-6e64-4c0c-926c-b441525f0767
x-ms-routing-request-id       : WESTUS2:20190725T122007Z:a44f8bac-6e64-4c0c-926c-b441525f0767
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Date                          : Thu, 25 Jul 2019 12:20:06 GMT

Body:
{
  "id": "/subscriptions/23b21251-6970-41ef-bdbd-f831b3d61b7e/providers/Microsoft.Blueprint",
  "namespace": "Microsoft.Blueprint",
  "authorizations": [
    {
      "applicationId": "f71766dc-90d9-4b7d-bd9d-4499c4331c3f",
      "roleDefinitionId": "cb180127-cf6d-4672-9e75-e29a487f9658"
    }
  ],
  "resourceTypes": [
    {
      "resourceType": "blueprints",
      "locations": [],
      "apiVersions": [
        "2018-11-01-preview",
        "2018-11-01-alpha",
        "2017-11-11-preview",
        "2017-11-11-alpha"
      ]
    },
    {
      "resourceType": "blueprints/artifacts",
      "locations": [],
      "apiVersions": [
        "2018-11-01-preview",
        "2018-11-01-alpha",
        "2017-11-11-preview",
        "2017-11-11-alpha"
      ]
    },
    {
      "resourceType": "blueprints/versions",
      "locations": [],
      "apiVersions": [
        "2018-11-01-preview",
        "2018-11-01-alpha",
        "2017-11-11-preview",
        "2017-11-11-alpha"
      ]
    },
    {
      "resourceType": "blueprints/versions/artifacts",
      "locations": [],
      "apiVersions": [
        "2018-11-01-preview",
        "2018-11-01-alpha",
        "2017-11-11-preview",
        "2017-11-11-alpha"
      ]
    },
    {
      "resourceType": "blueprintAssignments",
      "locations": [],
      "apiVersions": [
        "2018-11-01-preview",
        "2018-11-01-alpha",
        "2017-11-11-preview",
        "2017-11-11-alpha"
      ],
      "capabilities": "SystemAssignedResourceIdentity"
    },
    {
      "resourceType": "blueprintAssignments/operations",
      "locations": [],
      "apiVersions": [
        "2017-11-11-preview",
        "2017-11-11-alpha"
      ]
    },
    {
      "resourceType": "blueprintAssignments/assignmentOperations",
      "locations": [],
      "apiVersions": [
        "2018-11-01-preview",
        "2018-11-01-alpha"
      ]
    },
    {
      "resourceType": "operations",
      "locations": [],
      "apiVersions": [
        "2018-11-01-preview",
        "2018-11-01-alpha",
        "2017-11-11-preview",
        "2017-11-11-alpha"
      ]
    }
  ],
  "registrationState": "Registered"
}

DEBUG: [Common.Authentication]: Authenticating using Account: 'paul.r.towler@outlook.com', environment: 'AzureCloud', tenant: 'bf1e9d54-1c48-4ee1-a470-0d8fdb5b9e5d'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: 'bf1e9d54-1c48-4ee1-a470-0d8fdb5b9e5d', Endpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using context with Authority 'https://login.microsoftonline.com/bf1e9d54-1c48-4ee1-a470-0d8fdb5b9e5d/', CorrelationId: '00000000-0000-0000-0000-000000000000', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using AdalConfiguration with Domain: 'bf1e9d54-1c48-4ee1-a470-0d8fdb5b9e5d', AdEndpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirectUri: urn:ietf:wg:oauth:2.0:oob
DEBUG: [ADAL]: Information: 2019-07-25T12:20:07.1614250Z: c5ed0a0a-6089-473c-bad7-1dd2748f1351 - LoggerBase.cs: ADAL PCL.CoreCLR with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2019-07-25T12:20:07.1618370Z: c5ed0a0a-6089-473c-bad7-1dd2748f1351 - LoggerBase.cs: ADAL PCL.CoreCLR with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2019-07-25T12:20:07.1621680Z: c5ed0a0a-6089-473c-bad7-1dd2748f1351 - LoggerBase.cs: === Token Acquisition started: 
    CacheType: null
    Authentication Target: User
    , Authority Host: login.microsoftonline.com

DEBUG: [ADAL]: Information: 2019-07-25T12:20:07.1624920Z: c5ed0a0a-6089-473c-bad7-1dd2748f1351 - LoggerBase.cs: === Token Acquisition started:
    Authority: https://login.microsoftonline.com/bf1e9d54-1c48-4ee1-a470-0d8fdb5b9e5d/
    Resource: https://management.core.windows.net/
    ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
    CacheType: null
    Authentication Target: User

DEBUG: [ADAL]: Verbose: 2019-07-25T12:20:07.1628030Z: c5ed0a0a-6089-473c-bad7-1dd2748f1351 - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Verbose: 2019-07-25T12:20:07.1630900Z: c5ed0a0a-6089-473c-bad7-1dd2748f1351 - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Verbose: 2019-07-25T12:20:07.1634140Z: c5ed0a0a-6089-473c-bad7-1dd2748f1351 - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Verbose: 2019-07-25T12:20:07.1637140Z: c5ed0a0a-6089-473c-bad7-1dd2748f1351 - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Information: 2019-07-25T12:20:07.1640440Z: c5ed0a0a-6089-473c-bad7-1dd2748f1351 - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2019-07-25T12:20:07.1643250Z: c5ed0a0a-6089-473c-bad7-1dd2748f1351 - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2019-07-25T12:20:07.1646130Z: c5ed0a0a-6089-473c-bad7-1dd2748f1351 - LoggerBase.cs: 165.2040048 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2019-07-25T12:20:07.1649120Z: c5ed0a0a-6089-473c-bad7-1dd2748f1351 - LoggerBase.cs: 165.2040048 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2019-07-25T12:20:07.1651900Z: c5ed0a0a-6089-473c-bad7-1dd2748f1351 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2019-07-25T12:20:07.1654810Z: c5ed0a0a-6089-473c-bad7-1dd2748f1351 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2019-07-25T12:20:07.1657890Z: c5ed0a0a-6089-473c-bad7-1dd2748f1351 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 25/7/19 3:05:19 pm +00:00

DEBUG: [ADAL]: Information: 2019-07-25T12:20:07.1661270Z: c5ed0a0a-6089-473c-bad7-1dd2748f1351 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 25/7/19 3:05:19 pm +00:00Access Token Hash: 9VueSnSRi7zKsqxt7PW7PUoXf4m2cEhduXnCPorrNCQ=
     User id: 514de40f-b0e8-428e-bf79-3ff34468eba6

DEBUG: [ADAL]: Information: 2019-07-25T12:20:07.1664340Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Serializing token cache with 4 items.

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '07/25/2019 15:05:19 +00:00', MultipleResource? 'True', Tenant: 'bf1e9d54-1c48-4ee1-a470-0d8fdb5b9e5d', UserId: 'paul.r.towler@outlook.com'
DEBUG: [Common.Authentication]: User info for token DisplayId: 'paul.r.towler@outlook.com', Name: Paul Towler, IdProvider: 'live.com', Uid: '514de40f-b0e8-428e-bf79-3ff34468eba6'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '07/25/2019 15:05:19 +00:00' Comparing to '07/25/2019 12:20:07 +00:00' With threshold '00:05:00', calculated time until token expiry: '02:45:12.2349720'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com//providers/Microsoft.Management/managementGroups/6581f60a-76a7-45eb-80ce-d1191556567a/providers/Microsoft.Blueprint/blueprints/Small_ISO27001_Shared-Services?api-version=2018-11-01-preview

Headers:
x-ms-client-request-id        : 49eb1cb9-9112-4143-90ea-0cb3060e63d4
Accept-Language               : en-US

Body:

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

Status Code:
NotFound

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
x-ms-request-id               : fa1aba38-14e1-4b9a-838d-85da4bcff556
Server                        : Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-tenant-reads: 11998
x-ms-correlation-request-id   : bdb56890-b436-453d-b260-24d6afa985e9
x-ms-routing-request-id       : WESTUS2:20190725T122008Z:bdb56890-b436-453d-b260-24d6afa985e9
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Date                          : Thu, 25 Jul 2019 12:20:07 GMT

Body:
{
  "error": {
    "code": "BlueprintNotFound",
    "message": "Blueprint 'Small_ISO27001_Shared-Services' could not be found in management group '6581f60a-76a7-45eb-80ce-d1191556567a'."
  }
}

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '07/25/2019 15:05:19 +00:00', MultipleResource? 'True', Tenant: 'bf1e9d54-1c48-4ee1-a470-0d8fdb5b9e5d', UserId: 'paul.r.towler@outlook.com'
DEBUG: [Common.Authentication]: User info for token DisplayId: 'paul.r.towler@outlook.com', Name: Paul Towler, IdProvider: 'live.com', Uid: '514de40f-b0e8-428e-bf79-3ff34468eba6'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '07/25/2019 15:05:19 +00:00' Comparing to '07/25/2019 12:20:08 +00:00' With threshold '00:05:00', calculated time until token expiry: '02:45:11.2089530'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
PUT

Absolute Uri:
https://management.azure.com//providers/Microsoft.Management/managementGroups/6581f60a-76a7-45eb-80ce-d1191556567a/providers/Microsoft.Blueprint/blueprints/Small_ISO27001_Shared-Services?api-version=2018-11-01-preview

Headers:
x-ms-client-request-id        : 91f25681-fbad-47ff-9825-602436968095
Accept-Language               : en-US

Body:
{
  "properties": {
    "displayName": "ISO 27001: Shared Services",
    "description": "Deploys and configures Azure infrastructure and policies mapped to specific ISO controls.",
    "targetScope": "subscription",
    "parameters": {
      "ISO27001Policy_deployLogAnalyticsAgentforWindowsVMs_listOfImageIdToInclude": {
        "type": "array",
        "metadata": {
          "displayName": "Optional: List of VM images that have supported Windows OS to add to scope"
        },
        "defaultValue": [],
        "allowedValues": []
      },
      "ISO27001Policy_deployLogAnalyticsAgentforLinuxVMs_listOfImageIdToInclude": {
        "type": "array",
        "metadata": {
          "displayName": "Optional: List of VM images that have supported Linux OS to add to scope"
        },
        "defaultValue": [],
        "allowedValues": []
      },
      "ISO27001Policy_deployLogAnalyticsAgentforWindowsVMScaleSets_listOfImageIdToInclude": {
        "type": "array",
        "metadata": {
          "displayName": "Optional: List of VM images that have supported Windows OS to add to scope"
        },
        "defaultValue": [],
        "allowedValues": []
      },
      "ISO27001Policy_deployLogAnalyticsAgentforLinuxVMScaleSets_listOfImageIdToInclude": {
        "type": "array",
        "metadata": {
          "displayName": "Optional: List of VM images that have supported Linux OS to add to scope"
        },
        "defaultValue": [],
        "allowedValues": []
      },
      "blueprintInitiativeForISO27001_listOfResourceTypesWithDiagnosticLogsEnabled": {
        "type": "array",
        "metadata": {
          "displayName": "Resource types to audit diagnostic logs (Policy: Blueprint initiative for ISO 27001)"
        },
        "defaultValue": [
          "Microsoft.AnalysisServices/servers",
          "Microsoft.ApiManagement/service",
          "Microsoft.Network/applicationGateways",
          "Microsoft.Automation/automationAccounts",
          "Microsoft.ContainerInstance/containerGroups",
          "Microsoft.ContainerRegistry/registries",
          "Microsoft.ContainerService/managedClusters",
          "Microsoft.Batch/batchAccounts",
          "Microsoft.Cdn/profiles/endpoints",
          "Microsoft.CognitiveServices/accounts",
          "Microsoft.DocumentDB/databaseAccounts",
          "Microsoft.DataFactory/factories",
          "Microsoft.DataLakeAnalytics/accounts",
          "Microsoft.DataLakeStore/accounts",
          "Microsoft.EventGrid/eventSubscriptions",
          "Microsoft.EventGrid/topics",
          "Microsoft.EventHub/namespaces",
          "Microsoft.Network/expressRouteCircuits",
          "Microsoft.Network/azureFirewalls",
          "Microsoft.HDInsight/clusters",
          "Microsoft.Devices/IotHubs",
          "Microsoft.KeyVault/vaults",
          "Microsoft.Network/loadBalancers",
          "Microsoft.Logic/integrationAccounts",
          "Microsoft.Logic/workflows",
          "Microsoft.DBforMySQL/servers",
          "Microsoft.Network/networkInterfaces",
          "Microsoft.Network/networkSecurityGroups",
          "Microsoft.DBforPostgreSQL/servers",
          "Microsoft.PowerBIDedicated/capacities",
          "Microsoft.Network/publicIPAddresses",
          "Microsoft.RecoveryServices/vaults",
          "Microsoft.Cache/redis",
          "Microsoft.Relay/namespaces",
          "Microsoft.Search/searchServices",
          "Microsoft.ServiceBus/namespaces",
          "Microsoft.SignalRService/SignalR",
          "Microsoft.Sql/servers/databases",
          "Microsoft.Sql/servers/elasticPools",
          "Microsoft.StreamAnalytics/streamingjobs",
          "Microsoft.TimeSeriesInsights/environments",
          "Microsoft.Network/trafficManagerProfiles",
          "Microsoft.Compute/virtualMachines",
          "Microsoft.Compute/virtualMachineScaleSets",
          "Microsoft.Network/virtualNetworks",
          "Microsoft.Network/virtualNetworkGateways"
        ],
        "allowedValues": [
          "Microsoft.AnalysisServices/servers",
          "Microsoft.ApiManagement/service",
          "Microsoft.Network/applicationGateways",
          "Microsoft.Automation/automationAccounts",
          "Microsoft.ContainerInstance/containerGroups",
          "Microsoft.ContainerRegistry/registries",
          "Microsoft.ContainerService/managedClusters",
          "Microsoft.Batch/batchAccounts",
          "Microsoft.Cdn/profiles/endpoints",
          "Microsoft.CognitiveServices/accounts",
          "Microsoft.DocumentDB/databaseAccounts",
          "Microsoft.DataFactory/factories",
          "Microsoft.DataLakeAnalytics/accounts",
          "Microsoft.DataLakeStore/accounts",
          "Microsoft.EventGrid/eventSubscriptions",
          "Microsoft.EventGrid/topics",
          "Microsoft.EventHub/namespaces",
          "Microsoft.Network/expressRouteCircuits",
          "Microsoft.Network/azureFirewalls",
          "Microsoft.HDInsight/clusters",
          "Microsoft.Devices/IotHubs",
          "Microsoft.KeyVault/vaults",
          "Microsoft.Network/loadBalancers",
          "Microsoft.Logic/integrationAccounts",
          "Microsoft.Logic/workflows",
          "Microsoft.DBforMySQL/servers",
          "Microsoft.Network/networkInterfaces",
          "Microsoft.Network/networkSecurityGroups",
          "Microsoft.DBforPostgreSQL/servers",
          "Microsoft.PowerBIDedicated/capacities",
          "Microsoft.Network/publicIPAddresses",
          "Microsoft.RecoveryServices/vaults",
          "Microsoft.Cache/redis",
          "Microsoft.Relay/namespaces",
          "Microsoft.Search/searchServices",
          "Microsoft.ServiceBus/namespaces",
          "Microsoft.SignalRService/SignalR",
          "Microsoft.Sql/servers/databases",
          "Microsoft.Sql/servers/elasticPools",
          "Microsoft.StreamAnalytics/streamingjobs",
          "Microsoft.TimeSeriesInsights/environments",
          "Microsoft.Network/trafficManagerProfiles",
          "Microsoft.Compute/virtualMachines",
          "Microsoft.Compute/virtualMachineScaleSets",
          "Microsoft.Network/virtualNetworks",
          "Microsoft.Network/virtualNetworkGateways"
        ]
      },
      "organization": {
        "type": "string",
        "metadata": {
          "displayName": "Organization name (e.g. Contoso), must be unique"
        },
        "defaultValue": "contoso"
      },
      "keyvault_jumpbox-local-admin-user-password": {
        "type": "string",
        "metadata": {
          "displayName": "Jumpbox admin ssh key or password",
          "description": "Jumpbox admin user's ssh key or password"
        },
        "allowedValues": []
      },
      "keyvault_ad-domain-admin-user-password": {
        "type": "string",
        "metadata": {
          "displayName": "Domain admin password",
          "description": "Domain admin user's password"
        },
        "allowedValues": []
      },
      "keyvault_deployment-user-object-id": {
        "type": "string",
        "metadata": {
          "displayName": "AAD object ID",
          "description": "AAD object ID of the user that requires access to Key Vault. To retrieve this value go to Microsoft Azure Portal > Azure Active Directory > Users > (user) and copy the User’s Object ID"
        },
        "allowedValues": []
      },
      "jumpbox_jumpbox-local-admin-username": {
        "type": "string",
        "metadata": {
          "displayName": "Jumpbox admin username",
          "description": "The username used to access jumpbox VMs"
        },
        "defaultValue": "jb-admin-user",
        "allowedValues": []
      },
      "jumpbox_jumpbox-local-admin-password": {
        "type": "secureString",
        "metadata": {
          "displayName": "Jumpbox admin password",
          "description": "The Key Vault Resource ID and Key Vault Secret Name where the Jumpbox admin password is stored. If Linux is selected as Jumpbox OS, this value will be a public SSH Key, otherwise this value will be a User's Password. Secret name has to match the value specified in Key Vault template - Jumpbox admin username. To learn more on how to use SecureStrings in Azure Blueprints, go to: https://aka.ms/blueprintsecrets"
        },
        "allowedValues": []
      },
      "jumpbox_jumpbox-os": {
        "type": "string",
        "metadata": {
          "displayName": "Jumpbox Operating System",
          "description": "Choose between Linux or Windows"
        },
        "defaultValue": "Windows",
        "allowedValues": [
          "Windows",
          "Linux"
        ]
      },
      "jumpbox_logs-retention-in-days": {
        "type": "int",
        "metadata": {
          "displayName": "Log retention in days",
          "description": "Specifies the number of days that logs will be kept for; a value of 0 will retain data indefinitely"
        },
        "defaultValue": 365,
        "allowedValues": []
      },
      "active-directory-domain-services_domain-name": {
        "type": "string",
        "metadata": {
          "displayName": "Domain name",
          "description": "AD domain name"
        },
        "defaultValue": "contoso.com",
        "allowedValues": []
      },
      "active-directory-domain-services_ad-domain-admin-username": {
        "type": "string",
        "metadata": {
          "displayName": "Domain admin username",
          "description": "Domain user that has privileges to join a VM into a Domain"
        },
        "defaultValue": "domain-admin-user",
        "allowedValues": []
      },
      "active-directory-domain-services_ad-domain-admin-password": {
        "type": "secureString",
        "metadata": {
          "displayName": "Domain admin password",
          "description": "The Key Vault Resource ID and Key Vault Secret Name where the Domain admin password is stored. Secret name has to match the value specified in Key Vault template - Domain admin username. To learn more on how to use SecureStrings in Azure Blueprints, go to: https://aka.ms/blueprintsecrets"
        },
        "allowedValues": []
      },
      "active-directory-domain-services_logs-retention-in-days": {
        "type": "int",
        "metadata": {
          "displayName": "Log retention in days",
          "description": "Specifies the number of days that logs will be kept for; a value of 0 will retain data indefinitely"
        },
        "defaultValue": 365,
        "allowedValues": []
      },
      "resource-group-location": {
        "type": "string",
        "metadata": {
          "displayName": "Shared services location"
        },
        "defaultValue": "westus2",
        "allowedValues": [
          "eastasia",
          "southeastasia",
          "centralus",
          "eastus",
          "eastus2",
          "westus",
          "northcentralus",
          "southcentralus",
          "northeurope",
          "westeurope",
          "japanwest",
          "japaneast",
          "brazilsouth",
          "australiaeast",
          "australiasoutheast",
          "southindia",
          "centralindia",
          "westindia",
          "canadacentral",
          "canadaeast",
          "uksouth",
          "ukwest",
          "westcentralus",
          "westus2",
          "koreacentral",
          "koreasouth",
          "francecentral",
          "francesouth",
          "australiacentral",
          "australiacentral2"
        ]
      }
    },
    "resourceGroups": {
      "ResourceGroup": {
        "name": "[concat(parameters('organization'),'-sharedsvcs-log-rg')]",
        "location": "[parameters('resource-group-location')]",
        "metadata": {
          "displayName": "Log Analytics resource group"
        },
        "dependsOn": []
      },
      "ResourceGroup2": {
        "name": "[concat(parameters('organization'),'-sharedsvcs-net-rg')]",
        "location": "[parameters('resource-group-location')]",
        "metadata": {
          "displayName": "Network resource group"
        },
        "dependsOn": []
      },
      "ResourceGroup3": {
        "name": "[concat(parameters('organization'),'-sharedsvcs-kv-rg')]",
        "location": "[parameters('resource-group-location')]",
        "metadata": {
          "displayName": "Key Vault resource group"
        },
        "dependsOn": []
      },
      "ResourceGroup4": {
        "name": "[concat(parameters('organization'),'-sharedsvcs-jb-rg')]",
        "location": "[parameters('resource-group-location')]",
        "metadata": {
          "displayName": "Jumpbox resource group"
        },
        "dependsOn": []
      },
      "ResourceGroup5": {
        "name": "[concat(parameters('organization'),'-sharedsvcs-adds-rg')]",
        "location": "[parameters('resource-group-location')]",
        "metadata": {
          "displayName": "Active Directory Domain Services resource group"
        },
        "dependsOn": []
      }
    }
  }
}

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

Status Code:
Created

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
x-ms-request-id               : c54378cd-3f6d-40b6-b2f0-d7d5fd82375f
Server                        : Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-tenant-writes: 1199
x-ms-correlation-request-id   : ecf21cf0-74cd-49da-9d8d-df197185f11c
x-ms-routing-request-id       : WESTUS2:20190725T122008Z:ecf21cf0-74cd-49da-9d8d-df197185f11c
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Date                          : Thu, 25 Jul 2019 12:20:08 GMT

Body:
{
  "properties": {
    "parameters": {
      "ISO27001Policy_deployLogAnalyticsAgentforWindowsVMs_listOfImageIdToInclude": {
        "type": "array",
        "metadata": {
          "displayName": "Optional: List of VM images that have supported Windows OS to add to scope"
        },
        "defaultValue": [],
        "allowedValues": []
      },
      "ISO27001Policy_deployLogAnalyticsAgentforLinuxVMs_listOfImageIdToInclude": {
        "type": "array",
        "metadata": {
          "displayName": "Optional: List of VM images that have supported Linux OS to add to scope"
        },
        "defaultValue": [],
        "allowedValues": []
      },
      "ISO27001Policy_deployLogAnalyticsAgentforWindowsVMScaleSets_listOfImageIdToInclude": {
        "type": "array",
        "metadata": {
          "displayName": "Optional: List of VM images that have supported Windows OS to add to scope"
        },
        "defaultValue": [],
        "allowedValues": []
      },
      "ISO27001Policy_deployLogAnalyticsAgentforLinuxVMScaleSets_listOfImageIdToInclude": {
        "type": "array",
        "metadata": {
          "displayName": "Optional: List of VM images that have supported Linux OS to add to scope"
        },
        "defaultValue": [],
        "allowedValues": []
      },
      "blueprintInitiativeForISO27001_listOfResourceTypesWithDiagnosticLogsEnabled": {
        "type": "array",
        "metadata": {
          "displayName": "Resource types to audit diagnostic logs (Policy: Blueprint initiative for ISO 27001)"
        },
        "defaultValue": [
          "Microsoft.AnalysisServices/servers",
          "Microsoft.ApiManagement/service",
          "Microsoft.Network/applicationGateways",
          "Microsoft.Automation/automationAccounts",
          "Microsoft.ContainerInstance/containerGroups",
          "Microsoft.ContainerRegistry/registries",
          "Microsoft.ContainerService/managedClusters",
          "Microsoft.Batch/batchAccounts",
          "Microsoft.Cdn/profiles/endpoints",
          "Microsoft.CognitiveServices/accounts",
          "Microsoft.DocumentDB/databaseAccounts",
          "Microsoft.DataFactory/factories",
          "Microsoft.DataLakeAnalytics/accounts",
          "Microsoft.DataLakeStore/accounts",
          "Microsoft.EventGrid/eventSubscriptions",
          "Microsoft.EventGrid/topics",
          "Microsoft.EventHub/namespaces",
          "Microsoft.Network/expressRouteCircuits",
          "Microsoft.Network/azureFirewalls",
          "Microsoft.HDInsight/clusters",
          "Microsoft.Devices/IotHubs",
          "Microsoft.KeyVault/vaults",
          "Microsoft.Network/loadBalancers",
          "Microsoft.Logic/integrationAccounts",
          "Microsoft.Logic/workflows",
          "Microsoft.DBforMySQL/servers",
          "Microsoft.Network/networkInterfaces",
          "Microsoft.Network/networkSecurityGroups",
          "Microsoft.DBforPostgreSQL/servers",
          "Microsoft.PowerBIDedicated/capacities",
          "Microsoft.Network/publicIPAddresses",
          "Microsoft.RecoveryServices/vaults",
          "Microsoft.Cache/redis",
          "Microsoft.Relay/namespaces",
          "Microsoft.Search/searchServices",
          "Microsoft.ServiceBus/namespaces",
          "Microsoft.SignalRService/SignalR",
          "Microsoft.Sql/servers/databases",
          "Microsoft.Sql/servers/elasticPools",
          "Microsoft.StreamAnalytics/streamingjobs",
          "Microsoft.TimeSeriesInsights/environments",
          "Microsoft.Network/trafficManagerProfiles",
          "Microsoft.Compute/virtualMachines",
          "Microsoft.Compute/virtualMachineScaleSets",
          "Microsoft.Network/virtualNetworks",
          "Microsoft.Network/virtualNetworkGateways"
        ],
        "allowedValues": [
          "Microsoft.AnalysisServices/servers",
          "Microsoft.ApiManagement/service",
          "Microsoft.Network/applicationGateways",
          "Microsoft.Automation/automationAccounts",
          "Microsoft.ContainerInstance/containerGroups",
          "Microsoft.ContainerRegistry/registries",
          "Microsoft.ContainerService/managedClusters",
          "Microsoft.Batch/batchAccounts",
          "Microsoft.Cdn/profiles/endpoints",
          "Microsoft.CognitiveServices/accounts",
          "Microsoft.DocumentDB/databaseAccounts",
          "Microsoft.DataFactory/factories",
          "Microsoft.DataLakeAnalytics/accounts",
          "Microsoft.DataLakeStore/accounts",
          "Microsoft.EventGrid/eventSubscriptions",
          "Microsoft.EventGrid/topics",
          "Microsoft.EventHub/namespaces",
          "Microsoft.Network/expressRouteCircuits",
          "Microsoft.Network/azureFirewalls",
          "Microsoft.HDInsight/clusters",
          "Microsoft.Devices/IotHubs",
          "Microsoft.KeyVault/vaults",
          "Microsoft.Network/loadBalancers",
          "Microsoft.Logic/integrationAccounts",
          "Microsoft.Logic/workflows",
          "Microsoft.DBforMySQL/servers",
          "Microsoft.Network/networkInterfaces",
          "Microsoft.Network/networkSecurityGroups",
          "Microsoft.DBforPostgreSQL/servers",
          "Microsoft.PowerBIDedicated/capacities",
          "Microsoft.Network/publicIPAddresses",
          "Microsoft.RecoveryServices/vaults",
          "Microsoft.Cache/redis",
          "Microsoft.Relay/namespaces",
          "Microsoft.Search/searchServices",
          "Microsoft.ServiceBus/namespaces",
          "Microsoft.SignalRService/SignalR",
          "Microsoft.Sql/servers/databases",
          "Microsoft.Sql/servers/elasticPools",
          "Microsoft.StreamAnalytics/streamingjobs",
          "Microsoft.TimeSeriesInsights/environments",
          "Microsoft.Network/trafficManagerProfiles",
          "Microsoft.Compute/virtualMachines",
          "Microsoft.Compute/virtualMachineScaleSets",
          "Microsoft.Network/virtualNetworks",
          "Microsoft.Network/virtualNetworkGateways"
        ]
      },
      "organization": {
        "type": "string",
        "metadata": {
          "displayName": "Organization name (e.g. Contoso), must be unique"
        },
        "defaultValue": "contoso"
      },
      "keyvault_jumpbox-local-admin-user-password": {
        "type": "string",
        "metadata": {
          "displayName": "Jumpbox admin ssh key or password",
          "description": "Jumpbox admin user's ssh key or password"
        },
        "allowedValues": []
      },
      "keyvault_ad-domain-admin-user-password": {
        "type": "string",
        "metadata": {
          "displayName": "Domain admin password",
          "description": "Domain admin user's password"
        },
        "allowedValues": []
      },
      "keyvault_deployment-user-object-id": {
        "type": "string",
        "metadata": {
          "displayName": "AAD object ID",
          "description": "AAD object ID of the user that requires access to Key Vault. To retrieve this value go to Microsoft Azure Portal > Azure Active Directory > Users > (user) and copy the User’s Object ID"
        },
        "allowedValues": []
      },
      "jumpbox_jumpbox-local-admin-username": {
        "type": "string",
        "metadata": {
          "displayName": "Jumpbox admin username",
          "description": "The username used to access jumpbox VMs"
        },
        "defaultValue": "jb-admin-user",
        "allowedValues": []
      },
      "jumpbox_jumpbox-local-admin-password": {
        "type": "secureString",
        "metadata": {
          "displayName": "Jumpbox admin password",
          "description": "The Key Vault Resource ID and Key Vault Secret Name where the Jumpbox admin password is stored. If Linux is selected as Jumpbox OS, this value will be a public SSH Key, otherwise this value will be a User's Password. Secret name has to match the value specified in Key Vault template - Jumpbox admin username. To learn more on how to use SecureStrings in Azure Blueprints, go to: https://aka.ms/blueprintsecrets"
        },
        "allowedValues": []
      },
      "jumpbox_jumpbox-os": {
        "type": "string",
        "metadata": {
          "displayName": "Jumpbox Operating System",
          "description": "Choose between Linux or Windows"
        },
        "defaultValue": "Windows",
        "allowedValues": [
          "Windows",
          "Linux"
        ]
      },
      "jumpbox_logs-retention-in-days": {
        "type": "int",
        "metadata": {
          "displayName": "Log retention in days",
          "description": "Specifies the number of days that logs will be kept for; a value of 0 will retain data indefinitely"
        },
        "defaultValue": 365,
        "allowedValues": []
      },
      "active-directory-domain-services_domain-name": {
        "type": "string",
        "metadata": {
          "displayName": "Domain name",
          "description": "AD domain name"
        },
        "defaultValue": "contoso.com",
        "allowedValues": []
      },
      "active-directory-domain-services_ad-domain-admin-username": {
        "type": "string",
        "metadata": {
          "displayName": "Domain admin username",
          "description": "Domain user that has privileges to join a VM into a Domain"
        },
        "defaultValue": "domain-admin-user",
        "allowedValues": []
      },
      "active-directory-domain-services_ad-domain-admin-password": {
        "type": "secureString",
        "metadata": {
          "displayName": "Domain admin password",
          "description": "The Key Vault Resource ID and Key Vault Secret Name where the Domain admin password is stored. Secret name has to match the value specified in Key Vault template - Domain admin username. To learn more on how to use SecureStrings in Azure Blueprints, go to: https://aka.ms/blueprintsecrets"
        },
        "allowedValues": []
      },
      "active-directory-domain-services_logs-retention-in-days": {
        "type": "int",
        "metadata": {
          "displayName": "Log retention in days",
          "description": "Specifies the number of days that logs will be kept for; a value of 0 will retain data indefinitely"
        },
        "defaultValue": 365,
        "allowedValues": []
      },
      "resource-group-location": {
        "type": "string",
        "metadata": {
          "displayName": "Shared services location"
        },
        "defaultValue": "westus2",
        "allowedValues": [
          "eastasia",
          "southeastasia",
          "centralus",
          "eastus",
          "eastus2",
          "westus",
          "northcentralus",
          "southcentralus",
          "northeurope",
          "westeurope",
          "japanwest",
          "japaneast",
          "brazilsouth",
          "australiaeast",
          "australiasoutheast",
          "southindia",
          "centralindia",
          "westindia",
          "canadacentral",
          "canadaeast",
          "uksouth",
          "ukwest",
          "westcentralus",
          "westus2",
          "koreacentral",
          "koreasouth",
          "francecentral",
          "francesouth",
          "australiacentral",
          "australiacentral2"
        ]
      }
    },
    "resourceGroups": {
      "ResourceGroup": {
        "name": "[concat(parameters('organization'),'-sharedsvcs-log-rg')]",
        "location": "[parameters('resource-group-location')]",
        "metadata": {
          "displayName": "Log Analytics resource group"
        },
        "dependsOn": []
      },
      "ResourceGroup2": {
        "name": "[concat(parameters('organization'),'-sharedsvcs-net-rg')]",
        "location": "[parameters('resource-group-location')]",
        "metadata": {
          "displayName": "Network resource group"
        },
        "dependsOn": []
      },
      "ResourceGroup3": {
        "name": "[concat(parameters('organization'),'-sharedsvcs-kv-rg')]",
        "location": "[parameters('resource-group-location')]",
        "metadata": {
          "displayName": "Key Vault resource group"
        },
        "dependsOn": []
      },
      "ResourceGroup4": {
        "name": "[concat(parameters('organization'),'-sharedsvcs-jb-rg')]",
        "location": "[parameters('resource-group-location')]",
        "metadata": {
          "displayName": "Jumpbox resource group"
        },
        "dependsOn": []
      },
      "ResourceGroup5": {
        "name": "[concat(parameters('organization'),'-sharedsvcs-adds-rg')]",
        "location": "[parameters('resource-group-location')]",
        "metadata": {
          "displayName": "Active Directory Domain Services resource group"
        },
        "dependsOn": []
      }
    },
    "targetScope": "subscription",
    "status": {
      "timeCreated": "2019-07-25T22:20:08+10:00",
      "lastModified": "2019-07-25T22:20:08.5391497+10:00"
    },
    "displayName": "ISO 27001: Shared Services",
    "description": "Deploys and configures Azure infrastructure and policies mapped to specific ISO controls."
  },
  "id": "/providers/Microsoft.Management/managementGroups/6581f60a-76a7-45eb-80ce-d1191556567a/providers/Microsoft.Blueprint/blueprints/Small_ISO27001_Shared-Services",
  "type": "Microsoft.Blueprint/blueprints",
  "name": "Small_ISO27001_Shared-Services"
}

DEBUG: AzureQoSEvent: CommandName - Import-AzBlueprintWithArtifact; IsSuccess - True; Duration - 00:00:06.1502881; Exception - ;
DEBUG: Finish sending metric.
DEBUG: 10:20:10 pm - ImportAzureRmBlueprint end processing.
DEBUG: 10:20:10 pm - ImportAzureRmBlueprint end processing.

Error output

No Errors
markcowl commented 5 years ago

@filizt can you take a look?

snarkywolverine commented 5 years ago

@mrptsai Can you please share the file/folder hierarchy of the Blueprint you are trying to import?

mrptsai commented 5 years ago

image

snarkywolverine commented 5 years ago

Can you try placing the artifacts in an artifacts subfolder, rather than in the same folder as the blueprint definition?

alex-frankel commented 5 years ago

I think we can close this. The issue is because the artifact files (everything but blueprint.json) are not in the artifacts folder. If that ends up not being the issue, we can re-open.

Paul - we recently introduced these cmdlets which work differently than the Manage-AzureRMBlueprint script that I believe you were using before.

mrptsai commented 5 years ago
    Ok Alex. Sorry, I been rather busy and haven’t been able to test. 

Thanks.

    Kind regards,

Paul Towler

On Tue, Jul 30, 2019 at 7:38 AM +1000, "Alex Frankel" notifications@github.com wrote:

Closed #9720.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

alex-frankel commented 5 years ago

All good - keep us posted :)