I'm trying to create a public ip address in Azure with the Python SDK and I can't figure out why am I getting an error. Here's my code :
netclient.public_ip_addresses.create_or_update('testgrp','testsdknic',{'location':'uksouth','sku':'standard','public_ip_allocation_method':'dynamic','public_ip_address_version':'ipv4'})
And this is the error I get :
SerializationError: Unable to build a model: Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get', DeserializationError: Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'
I have tried several things but while I'm succeeding in creating a network interface, I can't create the public IP. Could anyone provide me with some guidance here please ? Many thanks in advance.