Skip to content

Commit

Permalink
Increment version for resourcemanager releases (#23670)
Browse files Browse the repository at this point in the history
* Increment package version after release of Azure.ResourceManager

* update version

Co-authored-by: m-nash <prognash@gmail.com>
  • Loading branch information
azure-sdk and m-nash authored Aug 31, 2021
1 parent 0d28825 commit 03e7ee9
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 11 deletions.
2 changes: 1 addition & 1 deletion eng/Packages.Data.props
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@

<!-- Packages intended for Management libraries only -->
<ItemGroup Condition="'$(IsMgmtSubLibrary)' == 'true'">
<PackageReference Update="Azure.ResourceManager" Version="1.0.0-beta.1" />
<PackageReference Update="Azure.ResourceManager" Version="1.0.0-beta.2" />
</ItemGroup>

<!-- Packages intended for Extensions libraries only -->
Expand Down
3 changes: 2 additions & 1 deletion sdk/compute/Azure.ResourceManager.Compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ ResourceGroupContainer rgContainer = subscription.GetResourceGroups();
// With the container, we can create a new resource group with an specific name
string rgName = "myRgName";
Location location = Location.WestUS2;
ResourceGroup resourceGroup = await rgContainer.CreateOrUpdateAsync(rgName, new ResourceGroupData(location));
ResourceGroupCreateOrUpdateOperation lro = await rgContainer.CreateOrUpdateAsync(rgName, new ResourceGroupData(location));
ResourceGroup resourceGroup = lro.Value;
```

```C# Snippet:Managing_Availability_Set_CreateAnAvailabilitySet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ ResourceGroupContainer rgContainer = subscription.GetResourceGroups();
// With the container, we can create a new resource group with an specific name
string rgName = "myRgName";
Location location = Location.WestUS2;
ResourceGroup resourceGroup = await rgContainer.CreateOrUpdateAsync(rgName, new ResourceGroupData(location));
ResourceGroupCreateOrUpdateOperation lro = await rgContainer.CreateOrUpdateAsync(rgName, new ResourceGroupData(location));
ResourceGroup resourceGroup = lro.Value;
```

Now that we have the resource group created, we can manage the disks inside this resource group.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ ResourceGroupContainer rgContainer = subscription.GetResourceGroups();
// With the container, we can create a new resource group with an specific name
string rgName = "myRgName";
Location location = Location.WestUS2;
ResourceGroup resourceGroup = await rgContainer.CreateOrUpdateAsync(rgName, new ResourceGroupData(location));
ResourceGroupCreateOrUpdateOperation lro = await rgContainer.CreateOrUpdateAsync(rgName, new ResourceGroupData(location));
ResourceGroup resourceGroup = lro.Value;
```

Now that we have the resource group created, we can manage the virtual machines inside this resource group.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void CreateCommonClient()
protected async Task<ResourceGroup> CreateResourceGroupAsync()
{
var resourceGroupName = Recording.GenerateAssetName("testRG-");
return await DefaultSubscription.GetResourceGroups().CreateOrUpdateAsync(
var rgOp = await DefaultSubscription.GetResourceGroups().CreateOrUpdateAsync(
resourceGroupName,
new ResourceGroupData(DefaultLocation)
{
Expand All @@ -42,6 +42,7 @@ protected async Task<ResourceGroup> CreateResourceGroupAsync()
{ "test", "env" }
}
});
return rgOp.Value;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public async Task CreateResourceGroup()
// With the container, we can create a new resource group with an specific name
string rgName = "myRgName";
Location location = Location.WestUS2;
ResourceGroup resourceGroup = await rgContainer.CreateOrUpdateAsync(rgName, new ResourceGroupData(location));
ResourceGroupCreateOrUpdateOperation lro = await rgContainer.CreateOrUpdateAsync(rgName, new ResourceGroupData(location));
ResourceGroup resourceGroup = lro.Value;
#endregion
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public async Task CreateAvailabilitySet()
// With the container, we can create a new resource group with an specific name
string rgName = "myRgName";
Location location = Location.WestUS2;
ResourceGroup resourceGroup = await rgContainer.CreateOrUpdateAsync(rgName, new ResourceGroupData(location));
ResourceGroupCreateOrUpdateOperation rgLro = await rgContainer.CreateOrUpdateAsync(rgName, new ResourceGroupData(location));
ResourceGroup resourceGroup = rgLro.Value;
#region Snippet:Managing_Availability_Set_CreateAnAvailabilitySet
AvailabilitySetContainer availabilitySetContainer = resourceGroup.GetAvailabilitySets();
string availabilitySetName = "myAvailabilitySet";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ protected async Task<GenericResource> CreateVirtualNetwork()
{ "subnets", subnets }
}
};
return await _genericResourceContainer.CreateOrUpdateAsync(vnetId, input);
var operation = await _genericResourceContainer.CreateOrUpdateAsync(vnetId, input);
return operation.Value;
}

protected ResourceIdentifier GetSubnetId(GenericResource vnet)
Expand All @@ -79,7 +80,8 @@ private async Task<GenericResource> CreateSubnet(ResourceIdentifier vnetId)
{ "addressPrefixes", new List<string>() { "10.0.2.0/24" } }
}
};
return await _genericResourceContainer.CreateOrUpdateAsync(subnetId, input);
var operation = await _genericResourceContainer.CreateOrUpdateAsync(subnetId, input);
return operation.Value;
}

private async Task<GenericResource> CreateNetworkInterface(ResourceIdentifier subnetId)
Expand All @@ -105,7 +107,8 @@ private async Task<GenericResource> CreateNetworkInterface(ResourceIdentifier su
}
}
};
return await _genericResourceContainer.CreateOrUpdateAsync(nicId, input);
var operation = await _genericResourceContainer.CreateOrUpdateAsync(nicId, input);
return operation.Value;
}

protected async Task<GenericResource> CreateBasicDependenciesOfVirtualMachineAsync()
Expand Down
10 changes: 10 additions & 0 deletions sdk/resourcemanager/Azure.ResourceManager/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Release History

## 1.0.0-beta.3 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 1.0.0-beta.2 (2021-08-30)

### Breaking Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.0.0-beta.2</Version>
<Version>1.0.0-beta.3</Version>
<PackageId>Azure.ResourceManager</PackageId>
<Description>
Azure management SDK for Azure resources.
Expand Down

0 comments on commit 03e7ee9

Please sign in to comment.