# WithNoManagedIdentity

- Module: [Aspire.Hosting.Azure.Sandboxes](/reference/api/go/aspire.hosting.azure.sandboxes.md)
- Version: `17.0.0-preview.1.26565.2`
- Kind: `method`
- Defined on: [`AzureSandboxGroupResource`](/reference/api/go/aspire.hosting.azure.sandboxes/azuresandboxgroupresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Clears the managed identities explicitly configured for sandbox workloads.

## Remarks

Workload identities requested by individual compute resources are added to the sandbox group during
deployment preparation. Image pulls require a separate user-assigned identity. Aspire creates one by
default for new groups; callers can select one with `WithAcrPullIdentity` and must do so for existing groups.

## Definition

```go
func (AzureSandboxGroupResource) WithNoManagedIdentity() AzureSandboxGroupResource
```

## Returns

[`AzureSandboxGroupResource`](/reference/api/go/aspire.hosting.azure.sandboxes/azuresandboxgroupresource.md) -- The resource builder.

Returns a handle; failures surface later via `Err()`.

## Applies to

- [`AzureSandboxGroupResource`](/reference/api/go/aspire.hosting.azure.sandboxes/azuresandboxgroupresource.md)
