---
title: "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/regenerateAuthKeys"
method: POST
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/regenerateAuthKeys"
tags: ["SqlMigrationServices"]
---

# POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/regenerateAuthKeys

`POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/regenerateAuthKeys`

Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime.

## Path parameters

- `sqlMigrationServiceName` string, required

## Parameters

- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/ResourceGroupNameParameter` — unresolved $ref

## Request body

- RegenAuthKeys — An authentication key to regenerate.
  - `keyName` string — The name of authentication key to generate.
  - `authKey1` string, password — The first authentication key.
  - `authKey2` string, password — The second authentication key.

## Response `200`

Azure operation completed successfully.

- RegenAuthKeys — An authentication key to regenerate.
  - `keyName` string — The name of authentication key to generate.
  - `authKey1` string, password — The first authentication key.
  - `authKey2` string, password — The second authentication key.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.dev/azure/apis/azure-database-migration-service-classic-resource-provider.md) · [All operations](https://skmtc.dev/azure/apis/azure-database-migration-service-classic-resource-provider/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/azure-database-migration-service-classic-resource-provider/revisions/a034b56d69ce/schema)
