createResourceGroup method

Future<CreateGroupResponse> createResourceGroup(
  1. String groupName,
  2. String location
)

Implementation

Future<CreateGroupResponse> createResourceGroup(String groupName, String location) async {
  try {
    final request = CreateGroupRequest()
      ..groupName = groupName
      ..location = location;

    return await _client.createGroup(request);
  } catch (e) {
    print('Caught error in createGroup: $e');
    rethrow;
  }
}