Skip to content

Commit a24262c

Browse files
solankisamirshahabhijeet
authored andcommitted
- If ApiId is not provided, generate it.
1 parent c8fba12 commit a24262c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/ImportAzureApiManagementApi.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ public class ImportAzureApiManagementApi : AzureApiManagementCmdletBase
8383

8484
public override void ExecuteApiManagementCmdlet()
8585
{
86+
ApiId = ApiId ?? Guid.NewGuid().ToString("N");
87+
8688
if (ParameterSetName.Equals(FromLocalFile))
8789
{
8890
Client.ApiImportFromFile(Context, ApiId, SpecificationFormat, SpecificationPath, Path, WsdlServiceName, WsdlEndpointName);

0 commit comments

Comments
 (0)