Skip to content

Commit 8ed5ca0

Browse files
committed
Update for resource manager and profile changes
2 parents da70c2d + d512e5c commit 8ed5ca0

File tree

183 files changed

+93144
-27824
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+93144
-27824
lines changed

ChangeLog.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@
102102
- Please refer to the migration guide for more information
103103

104104
#### AzureRM.Profile
105+
* Enable context autosave by default
106+
* Create a context for each subscription when running `Connect-AzureRmAccount` with no previous context
105107
* Add USGovernmentOperationalInsightsEndpoint and USGovernmentOperationalInsightsEndpointResourceId properties to Azure environment for US Gov.
106108

107109
#### AzureRM.RecoveryServices.SiteRecovery
@@ -114,6 +116,18 @@
114116
#### AzureRM.Resources
115117
* Remove obsolete parameter -AtScopeAndBelow from Get-AzureRmRoledefinition call
116118
* Include assignments to deleted USers/Groups/ServicePrincipals in Get-AzureRmRoleAssignment result
119+
* Add Tab completers for Scope and ResourceType
120+
* Add convenience cmdlet for creating ServicePrincipals
121+
* Merge Get- and Find- functionality in Get-AzureRmResource
122+
* Add AD Cmdlets:
123+
- Remove-AzureRmADGroupMember
124+
- Get-AzureRmADGroup
125+
- New-AzureRmADGroup
126+
- Remove-AzureRmADGroup
127+
- Remove-AzureRmADUser
128+
- Update-AzureRmADApplication
129+
- Update-AzureRmADServicePrincipal
130+
- Update-AzureRmADUser
117131

118132
#### AzureRM.ServiceFabric
119133
* Update default Linux image version sku

src/Common/Commands.Common.Authentication/AzureSessionInitializer.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,17 @@ static ContextAutosaveSettings InitializeSessionSettings(IDataStore store, strin
9797
result.Mode = settings.Mode;
9898
result.ContextFile = settings.ContextFile ?? result.ContextFile;
9999
}
100+
else
101+
{
102+
string directoryPath = Path.GetDirectoryName(profileDirectory);
103+
if (!store.DirectoryExists(directoryPath))
104+
{
105+
store.CreateDirectory(directoryPath);
106+
}
107+
string autoSavePath = Path.Combine(profileDirectory, settingsFile);
108+
store.WriteFile(autoSavePath, JsonConvert.SerializeObject(result));
109+
result.Mode = ContextSaveMode.CurrentUser;
110+
}
100111
}
101112
catch
102113
{
@@ -191,7 +202,7 @@ public override System.Diagnostics.TraceLevel AuthenticationLegacyTraceLevel
191202
}
192203
set
193204
{
194-
205+
195206
}
196207
}
197208

src/Common/Commands.Common.Graph.RBAC/ActiveDirectory/ActiveDirectoryBaseCmdlet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ private void HandleException(Exception exception)
7474
throw exception;
7575
}
7676
}
77-
77+
7878

7979
private Exception ParseResponse(GraphErrorException graphEx) {
8080
int exceptionMessageIndex = graphEx.Response.Content.IndexOf("\"value\":", StringComparison.CurrentCultureIgnoreCase);
81-
if (exceptionMessageIndex > 0)
81+
if (exceptionMessageIndex > 0)
8282
{
8383
string substring = graphEx.Response.Content.Substring(exceptionMessageIndex+9);
8484
// the start index is added 9, so as to remove the delimiter \"value\":\

0 commit comments

Comments
 (0)