microsoft / microsoft/powerbi-powershell

DataGateway -OverwriteExistingGateway not working

Open
#388 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
413
Forks
134
Avg merge
33m
Merged PRs (30d)
1

Description

Not sure if this is the write place to post this. When setting the -OverwriteExistingGateway parameter in the DataGateway cmdlet, I get an error that states that the gateway already exists. Setting the parameter should not get this error. If this is the wrong place to post this, please point me in the right direction.

Add-DataGatewayCluster -Name MyLocalGateway -RecoveryKey $RecoverKey -OverwriteExistingGateway

Error:
Add-DataGatewayCluster: Gateway MyLocalGateway already exists

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Add-DataGatewayCluster cmdlet and inspect how the -OverwriteExistingGateway parameter is handled when the named gateway already exists. Reproduce the issue with the provided PowerShell command; done means the command no longer reports that MyLocalGateway already exists when overwrite is requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.