Azure / service-fabric-mesh-preview

Service Fabric Mesh is the Service Fabric's serverless offering to enable developers to deploy containerized applications without managing infrastructure. Service Fabric Mesh , aka project “SeaBreeze” is currently available in private preview. This repository will be used for tracking bugs/feature requests as GitHub issues and for maintaining the latest documentation.
MIT License
82 stars 12 forks source link

No feedback for error when creating container registry via Visual Studio #132

Open bjorkstromm opened 6 years ago

bjorkstromm commented 6 years ago

I'm following steps here and when creating the Container Registry using Visual Studio, the "Create" button turns deactivated for some time, and then back to "activated". No indication whether the operation was successful or not. image

When inspecting in Portal I can see the error message. image

Attached also as JSON:

{
    "authorization": { ... },
    "caller": "martin.bjorkstrom@[redacted]",
    "channels": "Operation",
    "claims": { ... },
    "correlationId": "67a9f9b9-68b2-4f38-b773-6aec6f26dd2f",
    "description": "",
    "eventDataId": "db2d38c2-c70e-4094-b4c5-14512b66860c",
    "eventName": {
        "value": "EndRequest",
        "localizedValue": "End request"
    },
    "category": {
        "value": "Administrative",
        "localizedValue": "Administrative"
    },
    "eventTimestamp": "2018-06-08T08:55:20.4952198Z",
    "id": "/subscriptions/[redacted]/resourcegroups/sfmeshTutorial1RG/providers/Microsoft.ContainerRegistry/registries/ServiceFabricMesh1ACR1/events/db2d38c2-c70e-4094-b4c5-14512b66860c/ticks/636640449204952198",
    "level": "Error",
    "operationId": "67a9f9b9-68b2-4f38-b773-6aec6f26dd2f",
    "operationName": {
        "value": "Microsoft.ContainerRegistry/registries/write",
        "localizedValue": "Microsoft.ContainerRegistry/registries/write"
    },
    "resourceGroupName": "sfmeshTutorial1RG",
    "resourceProviderName": {
        "value": "Microsoft.ContainerRegistry",
        "localizedValue": "Microsoft.ContainerRegistry"
    },
    "resourceType": {
        "value": "Microsoft.ContainerRegistry/registries",
        "localizedValue": "Microsoft.ContainerRegistry/registries"
    },
    "resourceId": "/subscriptions/[redacted]/resourcegroups/sfmeshTutorial1RG/providers/Microsoft.ContainerRegistry/registries/ServiceFabricMesh1ACR1",
    "status": {
        "value": "Failed",
        "localizedValue": "Failed"
    },
    "subStatus": {
        "value": "Conflict",
        "localizedValue": "Conflict (HTTP Status Code: 409)"
    },
    "submissionTimestamp": "2018-06-08T08:55:45.1480625Z",
    "subscriptionId": "[redacted]",
    "properties": {
        "statusCode": "Conflict",
        "serviceRequestId": null,
        "statusMessage": "{\"error\":{\"code\":\"MissingSubscriptionRegistration\",\"message\":\"The subscription is not registered to use namespace 'Microsoft.ContainerRegistry'. See https://aka.ms/rps-not-found for how to register subscriptions.\",\"details\":[{\"code\":\"MissingSubscriptionRegistration\",\"target\":\"Microsoft.ContainerRegistry\",\"message\":\"The subscription is not registered to use namespace 'Microsoft.ContainerRegistry'. See https://aka.ms/rps-not-found for how to register subscriptions.\"}]}}"
    },
    "relatedEvents": []
}

It would be nice if Visual Studio also presented me with the error message:

The subscription is not registered to use namespace 'Microsoft.ContainerRegistry'. See https://aka.ms/rps-not-found for how to register subscriptions.

BigMorty commented 6 years ago

Thanks @mholo65 for making us aware of this. We have a bug logged to track this issue and will get this fixed soon.

BinWuMSFT commented 6 years ago

@mholo65 After you click "create", is the create dialog gone without showing anything? It gives me the following if the creation turns out to fail. image

bjorkstromm commented 6 years ago

No, the "Create" dialog never disappeared. The only thing happened was that "Create" button in the "Create" dialog went from disabled to enabled.

BigMorty commented 6 years ago

mholo65 - Are you willing to get on a Skype call with us and interactively try to figure out why you are not seeing what we expected? If so, can you send me a couple date/times that would work for you? You can email me mike.morton@microsoft.com.

Thanks, Mike

bjorkstromm commented 6 years ago

@BigMorty sure thing. I've sent you an email.