Skip to content

Commit 809f69b

Browse files
{APIManagement} Fix Azure#17991: Fix Path mandatory bug 'Import-AzureApiManagementApi' cmdlet (#20462)
* {ApiManagement} Fix #16868: Update description of ResourceId param 'New-AzApiManagementBackend' and 'Set-AzApiManagementBackend' cmdlet Fixes #17991 * Update ChangeLog.md * Create ChangeLog.md * Update src/ApiManagement/ApiManagement/ChangeLog.md Co-authored-by: Jin Lei <[email protected]> Co-authored-by: Jin Lei <[email protected]>
1 parent 6718afe commit 809f69b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/ApiManagement/ApiManagement.ServiceManagement/ApiManagementClient.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,8 @@ public void ApiImportFromUrl(
12001200

12011201
string soapApiType = GetApiTypeForImport(specificationFormat, apiType);
12021202

1203+
apiPath = apiPath ?? string.Empty;
1204+
12031205
var createOrUpdateContract = new ApiCreateOrUpdateParameter()
12041206
{
12051207
Format = contentFormat,
@@ -4494,4 +4496,4 @@ public void GatewayHostnameConfigurationRemove(string resourceGroupName, string
44944496
#endregion
44954497

44964498
}
4497-
}
4499+
}

src/ApiManagement/ApiManagement/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020
## Upcoming Release
2121
* Updated description of ResourceId param 'New-AzApiManagementBackend' and 'Set-AzApiManagementBackend' cmdlet [#16868]
22+
* Fixed Path mandatory bug 'Import-AzureApiManagementApi' cmdlet [#17991]
2223

2324
## Version 4.0.1
2425
* Upgraded AutoMapper to Microsoft.Azure.PowerShell.AutoMapper 6.2.2 with fix [#18721]

0 commit comments

Comments
 (0)