问题描述
我想使用Az Powershell命令从apim中删除操作。有人知道吗? 我正在查看Remove-AzApiManagementOperation的文档 这是给出的示例:
Remove-AzApiManagementOperation -Context $apimContext -ApiId "0123456789" -OperationId "9876543210" -Force
我试图使用以下代码来获取operationID,但它始终会出错:
Get-AzApiManagementOperation -Context $apimContext -ApiId $APIId -OperationId "Operation003"
这里的操作名称是“ Operation003”吗?我如何找到给我的手术起的名字。 我所看到的只是我的Api ...这是“ MyTestService”,而我的操作是“ CreateCustomer”
有人成功吗?任何信息表示赞赏。 谢谢
更新:我尝试过
$ AllOperations = Get-AzApiManagementOperation -Context $ ApiMgmtContext -ApiId $ ExistingAzureApi.ApiId 写入主机$ AllOperations
在输出中,我看到的只是 Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperation
如何在PS中获取此对象的属性? $ AllOperations.OperationCollection [0] .Name ????
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)