Skip to content

Commit

Permalink
Release 1.36.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xseeseesee committed Jan 15, 2021
1 parent 6837003 commit 01862ac
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 4 deletions.
Binary file removed Asset/NetworkTestCertificate1.pfx
Binary file not shown.
Binary file removed Asset/NetworkTestCertificate2.pfx
Binary file not shown.
Binary file removed Asset/SampleTestCertificate.pfx
Binary file not shown.
13 changes: 12 additions & 1 deletion Common/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,16 @@ public static string CreateRandomName(string namePrefix)
return SdkContext.RandomResourceName(namePrefix, 30);
}

public static string CreatePassword()
{
return SdkContext.RandomResourceName("Pa5$", 15);
}

public static string CreateUsername()
{
return "tirekicker";
}

public static void PrintAvailabilitySet(IAvailabilitySet resource)
{
Utilities.Log(new StringBuilder().Append("Availability Set: ").Append(resource.Id)
Expand Down Expand Up @@ -3066,6 +3076,7 @@ public static string PostAddress(string url, string body, IDictionary<string, st

public static void DeprovisionAgentInLinuxVM(string host, int port, string userName, string password)
{
Utilities.Log("is mocked:" + IsRunningMocked);
if (!IsRunningMocked)
{
Console.WriteLine("Trying to de-provision: " + host);
Expand All @@ -3081,7 +3092,7 @@ public static void DeprovisionAgentInLinuxVM(string host, int port, string userN
public static string GetArmTemplate(string templateFileName)
{
var adminUsername = "tirekicker";
var adminPassword = "12NewPA$$w0rd!";
var adminPassword = CreatePassword();
var hostingPlanName = SdkContext.RandomResourceName("hpRSAT", 24);
var webAppName = SdkContext.RandomResourceName("wnRSAT", 24);
var armTemplateString = File.ReadAllText(Path.Combine(Utilities.ProjectPath, "Asset", templateFileName));
Expand Down
4 changes: 2 additions & 2 deletions ManageVirtualMachineScaleSetAsync.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.19" />
<PackageReference Include="Microsoft.Azure.Management.Fluent" Version="1.30.0" />
<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.20" />
<PackageReference Include="Microsoft.Azure.Management.Fluent" Version="1.36.1" />
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.1" />
<PackageReference Include="CoreFTP" Version="1.2.0" />
<PackageReference Include="Microsoft.Azure.ServiceBus" Version="0.0.2-preview" />
Expand Down
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public async static Task RunSampleAsync(IAzure azure)
var natPool60XXto23 = "natPool60XXto23";
var vmssName = SdkContext.RandomResourceName("vmss", 24);

var userName = "tirekicker";
var userName = Utilities.CreateUsername();
var sshKey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCfSPC2K7LZcFKEO+/t3dzmQYtrJFZNxOsbVgOVKietqHyvmYGHEC0J2wPdAqQ/63g/hhAEFRoyehM+rbeDri4txB3YFfnOK58jqdkyXzupWqXzOrlKY4Wz9SKjjN765+dqUITjKRIaAip1Ri137szRg71WnrmdP3SphTRlCx1Bk2nXqWPsclbRDCiZeF8QOTi4JqbmJyK5+0UqhqYRduun8ylAwKKQJ1NJt85sYIHn9f1Rfr6Tq2zS0wZ7DHbZL+zB5rSlAr8QyUdg/GQD+cmSs6LvPJKL78d6hMGk84ARtFo4A79ovwX/Fj01znDQkU6nJildfkaolH2rWFG/qttD azjava@javalib.Com";

var apacheInstallScript = "https://raw.githubusercontent.com/Azure/azure-libraries-for-net/master/Samples/Asset/install_apache.sh";
Expand Down

0 comments on commit 01862ac

Please sign in to comment.