neilpeterson / azure-blueprints-pipeline-tasks

MIT License
17 stars 16 forks source link

Issue: Assignment failures with assigned .via pipeline #8

Closed neilpeterson closed 5 years ago

neilpeterson commented 5 years ago

The assignment is created however the results fail. This only appears to happen .via a pipeline assignment and does not fail every time.

When using the script outside of a pipeline, things work fine.

neilpeterson commented 5 years ago

Here is the associate activity log. I see a response of 201, so looks good to me.

{
    "authorization": {
        "action": "Microsoft.Blueprint/blueprintAssignments/write",
        "scope": "/subscriptions/3762d87c-0000-0000-0000-29e5e859edaf"
    },
    "caller": "32c30029-9f8d-4e45-81f1-6fcbadc4e8cd",
    "channels": "Operation",
    "claims": {
        "aud": "https://management.core.windows.net/",
        "iss": "https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/",
        "iat": "1555521275",
        "nbf": "1555521275",
        "exp": "1555525175",
        "aio": "42ZgYPi+I+D7WX/B9ht3bgi7dLtoAwA=",
        "appid": "e2f9793d-9417-4dd9-accb-f06e96aae1c9",
        "appidacr": "1",
        "http://schemas.microsoft.com/identity/claims/identityprovider": "https://sts.windows.net/72f988bf-0000-0000-0000-2d7cd011db47/",
        "http://schemas.microsoft.com/identity/claims/objectidentifier": "32c30029-9f8d-4e45-81f1-6fcbadc4e8cd",
        "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "32c30029-9f8d-4e45-81f1-6fcbadc4e8cd",
        "http://schemas.microsoft.com/identity/claims/tenantid": "72f988bf-0000-0000-0000-2d7cd011db47",
        "uti": "ug5pOuWi10CgYvzNJCxjAA",
        "ver": "1.0"
    },
    "correlationId": "228e4f10-b977-47df-9ef5-df922924c628",
    "description": "",
    "eventDataId": "1944e705-c19f-43c4-ba13-a962c5671989",
    "eventName": {
        "value": "EndRequest",
        "localizedValue": "End request"
    },
    "category": {
        "value": "Administrative",
        "localizedValue": "Administrative"
    },
    "eventTimestamp": "2019-04-17T17:19:39.3627608Z",
    "id": "/subscriptions/3762d87c-0000-0000-0000-29e5e859edaf/providers/Microsoft.Blueprint/blueprintAssignments/blueprints-demo/events/1944e705-c19f-43c4-ba13-a962c5671989/ticks/636911183793627608",
    "level": "Informational",
    "operationId": "228e4f10-b977-47df-9ef5-df922924c628",
    "operationName": {
        "value": "Microsoft.Blueprint/blueprintAssignments/write",
        "localizedValue": "Create or update blueprint artifacts"
    },
    "resourceProviderName": {
        "value": "Microsoft.Blueprint",
        "localizedValue": "Microsoft.Blueprint"
    },
    "resourceType": {
        "value": "Microsoft.Blueprint/blueprintAssignments",
        "localizedValue": "Microsoft.Blueprint/blueprintAssignments"
    },
    "resourceId": "/subscriptions/3762d87c-0000-0000-0000-29e5e859edaf/providers/Microsoft.Blueprint/blueprintAssignments/blueprints-demo",
    "status": {
        "value": "Accepted",
        "localizedValue": "Accepted"
    },
    "subStatus": {
        "value": "Created",
        "localizedValue": "Created (HTTP Status Code: 201)"
    },
    "submissionTimestamp": "2019-04-17T17:19:51.0643586Z",
    "subscriptionId": "3762d87c-0000-0000-0000-29e5e859edaf",
    "properties": {
        "statusCode": "Created",
        "serviceRequestId": "f126af22-00d6-4542-a49f-687cd0ddff6e"
    },
    "relatedEvents": []
}
neilpeterson commented 5 years ago

This is on the Blueprints side. Waiting for response from product group.

ajf214 commented 5 years ago

Are you still seeing this issue since updating the API version?

neilpeterson commented 5 years ago

@ajf214 I am still seeing the issue, confirmed on version 1.1.7 of the tasks. Here is the API version in code.

https://github.com/neilpeterson/azure-blueprints-pipeline-tasks/blob/master/assignBlueprint/helperFunctions.psm1#L4

Thanks

neilpeterson commented 5 years ago

Closing this issue in favor of:

https://github.com/neilpeterson/azure-blueprints-pipeline-tasks/issues/23