Skip to content

Cannot deploy on Private Network: Failed to create Aml RP virtual workspace due to System.Exception: Failed async operation #309

@DarylGraves

Description

@DarylGraves

I am trying to follow the code here to deploy AI Foundry in a private network. It doesn't work.

I have tried this on two subscriptions:

  • A work subscription where a Vnet has already been set up so I updated the parameters accordingly.
  • My own personal subscription which was completely empty before this deployment - I didn't change nay of the parameters for this.

Both seem to fail on the same modules:

Image

The error I receive is as follows:

{
  "code": "DeploymentFailed",
  "target": "/subscriptions/redacted/resourceGroups/Test-AiFoundry/providers/Microsoft.Resources/deployments/aiservicesznbv-znbv-deployment",
  "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
  "details": [
    {
      "code": "ResourceDeploymentFailure",
      "target": "/subscriptions/redacted/resourceGroups/Test-AiFoundry/providers/Microsoft.CognitiveServices/accounts/aiservicesznbv",
      "message": "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'."
    }
  ]
}

If I go to the Activity Logs I get more info:

"properties": {
        "statusCode": "OK",
        "statusMessage": "\"{\\\"provisioningState\\\":\\\"Failed\\\",\\\"error\\\":\\\"{\\\\\\\"code\\\\\\\":\\\\\\\"DeploymentFailed\\\\\\\",\\\\\\\"target\\\\\\\":\\\\\\\"/subscriptions/redacted/resourceGroups/Test-AiFoundry/providers/Microsoft.Resources/deployments/aiFoundry-od4beeqvyz2yi\\\\\\\",\\\\\\\"message\\\\\\\":\\\\\\\"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.\\\\\\\",\\\\\\\"details\\\\\\\":[{\\\\\\\"code\\\\\\\":\\\\\\\"ResourceDeploymentFailure\\\\\\\",\\\\\\\"target\\\\\\\":\\\\\\\"/subscriptions/redacted/resourceGroups/Test-AiFoundry/providers/Microsoft.Resources/deployments/aiservicesznbv-znbv-deployment\\\\\\\",\\\\\\\"message\\\\\\\":\\\\\\\"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.\\\\\\\",\\\\\\\"details\\\\\\\":[{\\\\\\\"code\\\\\\\":\\\\\\\"DeploymentFailed\\\\\\\",\\\\\\\"target\\\\\\\":\\\\\\\"/subscriptions/redacted/resourceGroups/Test-AiFoundry/providers/Microsoft.Resources/deployments/aiservicesznbv-znbv-deployment\\\\\\\",\\\\\\\"message\\\\\\\":\\\\\\\"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.\\\\\\\",\\\\\\\"details\\\\\\\":[{\\\\\\\"code\\\\\\\":\\\\\\\"ResourceDeploymentFailure\\\\\\\",\\\\\\\"target\\\\\\\":\\\\\\\"/subscriptions/redacted/resourceGroups/Test-AiFoundry/providers/Microsoft.CognitiveServices/accounts/aiservicesznbv\\\\\\\",\\\\\\\"message\\\\\\\":\\\\\\\"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.\\\\\\\",\\\\\\\"details\\\\\\\":[{\\\\\\\"code\\\\\\\":\\\\\\\"OperationError\\\\\\\",\\\\\\\"message\\\\\\\":\\\\\\\"Failed to Create the resource. Provisioning state: Failed\\\\\\\",\\\\\\\"details\\\\\\\":[{\\\\\\\"code\\\\\\\":\\\\\\\"ResourceProviderError\\\\\\\",\\\\\\\"message\\\\\\\":\\\\\\\"Failed to create Aml RP virtual workspace due to System.Exception: Failed async operation {\\\\\\\\n  \\\\\\\\\\\\\\\"status\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\"Failed\\\\\\\\\\\\\\\",\\\\\\\\n  \\\\\\\\\\\\\\\"error\\\\\\\\\\\\\\\": {\\\\\\\\n    \\\\\\\\\\\\\\\"code\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\"InternalServerError\\\\\\\\\\\\\\\",\\\\\\\\n    \\\\\\\\\\\\\\\"message\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\"Object reference not set to an instance of an object.\\\\\\\\\\\\\\\"\\\\\\\\n  }\\\\\\\\n}\\\\\\\\n   at Microsoft.CognitiveServices.ResourceProvider.AmlRp.AsyncOperationHelper.PollUntilCompleteAsync[T](TraceContext traceContext, HttpResponseMessage response, HttpClient httpClient, Int32 timeoutInMin, CancellationToken cancellationToken) in /__w/1/s/src/Common/ResourceProvider/AmlRp/AsyncOperationHelper.cs:line 117\\\\\\\\n   at Microsoft.CognitiveServices.ResourceProvider.AmlRp.AmlRpClient.PutAmlRpVirtualHubAsync(TraceContext traceContext, Dictionary`2 headers, ResourceIdentityInArm resourceIdentity, String primaryUserAssignedIdentity, String internalId, KeyVaultProperties keyVaultProperties, String subscriptionId, String resourceGroupName, String workspaceName, List`1 networkInjections, PublicNetworkAccessType publicNetworkAccessType, CancellationToken cancellationToken) in /__w/1/s/src/Common/ResourceProvider/AmlRp/AmlRpClient.cs:line 119\\\\\\\\n   at Microsoft.CognitiveServices.ResourceProvider.AmlRp.AmlRpService.PutAmlRpWorkspaceAsync(TraceContext traceContext, ResourceRequestContext requestContext, WorkerMessageRequestContext workerMessageRequestContext, IResourceEntity insertedResourceEntity, CancellationToken cancellationToken) in /__w/1/s/src/Common/ResourceProvider/AmlRp/AmlRpService.cs:line 124\\\\\\\\n   at Microsoft.CognitiveServices.ResourceProvider.Worker.MessageProcessor.ProcessInternalAsync(TraceContext traceContext, RpWorkerQueueMessage message, CancellationToken cancellationToken) in /__w/1/s/src/ResourceProvider/Rp.WorkerRole/AccountProvisioning/MessageProcessor.cs:line 223\\\\\\\"}]}]}]}]}]}\\\"}\"",

Any help would be most appreciated, thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions