如何使用Python在Azure中导入NetworManangementClient?

时间:2018-07-27 19:53:50

标签: python azure azure-virtual-machine azure-cloud-services azure-cli

我想使用Python SDK获得Azure中NIC接口的公共IP。因此,我需要导入NetworkManagemenClient。

但是当我执行以下操作时:

“从azure.mgmt.compute导入NetworkManagementClient”或“从azure.mgmt.resource导入NetworkManagementClient”

我无法导入。

任何修复程序?

1 个答案:

答案 0 :(得分:0)

根据定义,您不能从计算或资源名称空间导入NetworkManagementClient。 令您惊讶的是,我感到很惊讶?

#ifndef PERSON_H
#define PERSON_H
#include <string>
#include <vector>
#include <ctime>



class Person
{

private:

    //id, age, name, and date of Person object creation shall be assigned in constructor. The vector 'log' shall be empty at start. 
    int id; 
    int age; 
    std::string name; 
    std::vector<Record> log;
    time_t t;
    struct tm * timeStruct;

public:
    Person();
    ~Person();

};

#endif // PERSON_H

https://docs.microsoft.com/python/api/overview/azure/network

相关问题