Skip to content

Commit 24d0cd3

Browse files
committed
Fixed job account already exists error in New-JobAccount
1 parent 34df641 commit 24d0cd3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ResourceManager/Sql/Commands.Sql/JobAccount/Cmdlet/NewAzureSqlJobAccount.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,14 @@ public class NewAzureSqlJobAccount : AzureSqlJobAccountCmdletBase
6868
{
6969
try
7070
{
71-
ModelAdapter.GetJobAccount(this.ResourceGroupName, this.ServerName, this.JobAccountName);
71+
WriteDebugWithTimestamp("JobAccountName: {0}", JobAccountName);
72+
ModelAdapter.GetJobAccount(this.ResourceGroupName, this.ServerName, this.JobAccountName, this.clientRequestId);
7273
}
7374
catch (CloudException ex)
7475
{
7576
if (ex.Response.StatusCode == System.Net.HttpStatusCode.NotFound)
7677
{
77-
// This is what we want. We looked and there is no server with this name.
78+
// This is what we want. We looked and there is no job account with this name.
7879
return null;
7980
}
8081

0 commit comments

Comments
 (0)