# SkipEnvironmentVariableNameChecks

- Module: [Aspire.Hosting.Azure.AppService](/reference/api/go/aspire.hosting.azure.appservice.md)
- Version: `17.0.0`
- Kind: `method`
- Defined on: `IComputeResource`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Skips validation for environment variable names that Azure App Service may not support.

## Remarks

When running on Azure App Service, environment variable names can't contain hyphens.
This can cause Aspire client integrations that rely on the original environment variable names to fail.
By default, Aspire performs validation to ensure environment variable names are compatible with Azure App Service,
failing to publish if any invalid names are found.

## Definition

```go
func (IComputeResource) SkipEnvironmentVariableNameChecks() IComputeResource
```

## Returns

`IComputeResource` -- The updated compute resource builder.

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

## Applies to

- `CSharpAppResource`
- `ContainerResource`
- `DotnetToolResource`
- `ExecutableResource`
- `ProjectResource`
