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 c0dc9de commit d78bcff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
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 ManageSqlImportExportDatabase.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 @@ -16,7 +16,7 @@ public class Program
private static readonly string sqlServerName = SdkContext.RandomResourceName("sqlserver", 20);
private static readonly string rgName = SdkContext.RandomResourceName("rgsql", 20);
private static readonly string administratorLogin = "sqladmin3423";
private static readonly string administratorPassword = "myS3cureP@ssword";
private static readonly string administratorPassword = Utilities.CreatePassword();
private static readonly string storageName = SdkContext.RandomResourceName("sqlserver", 20);
private static readonly string dbFromSampleName = "db-from-sample";

Expand Down

0 comments on commit d78bcff

Please sign in to comment.