我正在尝试使用 CLI 工具将保留的 IP 分配给 VM。运行后 $: azure network nic set [
pawel@LAMP-Test:~$ azure network nic set LAMP-Test FirstReservedIP
info: Executing command network nic set
error: The current cmdlet requires you to log in using Azure Active Directory account, not from a .publishsettings file. Please run 'azure login' or use 'azure account set' to select a correct subscription.
info: Error information has been recorded to /home/pawel/.azure/azure.err
error: network nic set command failed
info: Executing command network nic set
error: The current cmdlet requires you to log in using Azure Active Directory account, not from a .publishsettings file. Please run 'azure login' or use 'azure account set' to select a correct subscription.
info: Error information has been recorded to /home/pawel/.azure/azure.err
error: network nic set command failed
azure network nic set LAMP-Test FirstReservedIP
] 1 FirstReservedIp
我收到以下错误:
当前的 cmdlet 要求您使用 Azure Active Directory 帐户登录,而不是从 .publishsettings 文件登录。请运行“azure login”或使用“azure account set”选择正确的订阅。
有没有办法只使用 .publishsettings 文件来完成这项任务?