Steps to migrate code that uses Azure Management Libraries for Java from beta 2 to beta 3 …
If this note missed any breaking changes, please open a pull request.
Replace | With | Ref |
---|---|---|
import com.microsoft.azure.Azure |
import com.microsoft.azure.management.Azure |
#1144 |
From | To | Ref |
---|---|---|
Subnet.networkSecurityGroup() |
Subnet.getNetworkSecurityGroup() |
#1140 |
Network.dsnServerIPs() |
Network.dnsServerIps() |
#1140 |
NicIpConfiguration.publicIpAddress() |
NicIpConfiguration.getPublicIpAddress() |
#1083 |
NicIpConfiguration.network() |
NicIpConfiguration.getNetwork() |
#1083 |
NetworkInterface.networkSecurityGroup() |
NetworkInterface.getNetworkSecurityGroup() |
#1065 |
NicIpConfiguration.privateIp() |
NicIpConfiguration.privateIpAddress() |
#1055 |
VirtualMachine.primaryPublicIpAddress() |
VirtualMachine.getPrimaryPublicIpAddress() |
#1090 |
StorageAccount.refreshKeys() |
StorageAccount.getKeys() |
#1090 |
NetworkInterface.primaryNetwork() |
NetworkInterface.getPrimaryNetwork() |
#1090 |
From | To | For Method | Ref |
---|---|---|---|
List |
Map |
NetworkInterface.ipConfigurations() |
#1055 |
List |
Map |
VirtualMachine.resources() |
#1045 |
List |
Map |
NetworkSecurityGroup.securityRules() |
#970 |
List |
Map |
NetworkSecurityGroup.defaultSecurityRules() |
#970 |
There are alternate ways to achieve the same thing:
Drop Method | Use Alternate | Ref |
---|---|---|
NetworkInterface.primarySubnetId() |
NetworkInterface.primaryIpConfiguration().subnetId() |
#1090 |
NicIpConfiguration.subnetId() |
Use NicIpConfiguration.subnetName() for the name of the subnet, and .networkId() for its parent virtual network ID. Or simply call .getNetwork() for the actual associated Network instance and look up the subnet using Network.subnets().get(subnetName) |
#1090 |
NetworkInterface.primaryPublicIpAddress() |
NetworkInterface.primaryIpConfiguration().getPublicIpAddress() |
#1090 |
StorageAccount.keys() |
StorageAccount.getKeys() |
#1090 |
Add another property graphURL=https://graph.windows.net/
to the experimental Azure Auth file #1107.