commit
8b68317817
@ -342,19 +342,13 @@ public class AzureVMManagementServiceDelegate {
|
||||
final StorageManagementClient storageClient = ServiceDelegateHelper.getStorageManagementClient(config);
|
||||
|
||||
rmClient.getResourceGroupsOperations().createOrUpdate(resourceGroupName, new ResourceGroup(location));
|
||||
<<<<<<< HEAD
|
||||
|
||||
=======
|
||||
|
||||
try
|
||||
{
|
||||
>>>>>>> 17b8539365c3ff9c006753579036ecd4440ea752
|
||||
StorageAccountCreateParameters createParams = new StorageAccountCreateParameters();
|
||||
createParams.setLocation(location);
|
||||
createParams.setAccountType(AccountType.StandardLRS);
|
||||
storageClient.getStorageAccountsOperations().create(resourceGroupName, targetStorageAccount, createParams);
|
||||
}catch (Exception e)
|
||||
{
|
||||
try {
|
||||
StorageAccountCreateParameters createParams = new StorageAccountCreateParameters();
|
||||
createParams.setLocation(location);
|
||||
createParams.setAccountType(AccountType.StandardLRS);
|
||||
storageClient.getStorageAccountsOperations().create(resourceGroupName, targetStorageAccount, createParams);
|
||||
} catch (Exception e) {
|
||||
LOGGER.log(Level.INFO, e.getMessage());
|
||||
}
|
||||
// Get the storage account name and key
|
||||
|
Loading…
Reference in New Issue
Block a user