Git Product home page Git Product logo

vsts-rm-documentation's People

Contributors

asranja avatar azdev-in avatar azooinmyluggage avatar bentaylorwork avatar markiannucci avatar microsoft-github-policy-service[bot] avatar pavanadepu2 avatar shashban avatar simondel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vsts-rm-documentation's Issues

Secure password

With the actual script,
returns error with:
SPNCreation.ps1 : Cannot bind parameter 'Password'. Cannot convert the "xxxxxxx" value of type "System.String" to type "System.Security.SecureString"

  • CategoryInfo : InvalidArgument: (:) [SPNCreation.ps1], ParameterBindingException
  • FullyQualifiedErrorId : CannotConvertArgumentNoMessage,SPNCreation.ps1

Only changing line 7 works fine

before: (bad)
[String] $password,

after: (worksfine)
[System.Security.SecureString] $password,

New-AzureRmADApplication Contant Error

Could someone help me with this? I am constantly getting an error in AzureRmADApplication (example below)

New-AzureRmADApplication : Run Login-AzureRmAccount to login.
At line:48 char:1

  • New-AzureRmADApplication -DisplayName $displayName -HomePage $homePag ...
  •   + CategoryInfo          : InvalidOperation: (:) [New-AzureRmADApplication], PSInvalidOperationException
      + FullyQualifiedErrorId : InvalidOperation,Microsoft.Azure.Commands.ActiveDirectory.NewAzureADApplicationCommand
    

$env:USERNAME can have invalid characters in it for a URI

Using the Username to generate the URI for the AD Application can result in an error. I had to do some basic cleaning on it:

$userName = $env:USERNAME
$userName = $userName -replace "[' ]"

I'm sure there is a better way to clean the string for the URI. In the end I added a new param to ask for the App Name.

Also the SecureString issue mentioned above. I didn't change the Input, but added this:

$securePassword = ConvertTo-SecureString $password -AsPlainText -Force
$azureAdApplication = New-AzureRmADApplication -DisplayName $displayName -HomePage $homePage -IdentifierUris $identifierUri -Password $securePassword -Verbose

Deprecated parameter in New-AzureRmADApplication call

Input:
$azureAdApplication = New-AzureRmADApplication -DisplayName $displayName -HomePage $homePage -IdentifierUris $identifier Uri -Password $password -Verbose

Output:
WARNING: Parameter 'Password' is obsolete. New-AzureRmADApplication: The parameter "Password" is being changed from a string to a SecureString in an upcoming breaking change release.

Cannot execute SPNCreation.sp1

On azure portal, I have uploaded the SPNCreation.ps1 file to my shell storage account and then executed a Cloud Shell in Powershell mode.
I change directory to C:\users\ContainerAdministrator\CloudDrive and then ran the powershell file that I previously uploaded :
PS C:\users\ContainerAdministrator\CloudDrive> .\SPNCreation.ps1

After entering subscription name and SPN password, the script terminate with a error :

Provide your credentials to access Azure subscription Visual Studio Enterprise
Login-AzureRmAccount : The type initializer for 'Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.WindowsFormsWebAuthenticationDialogBase' threw an exception.: Unable to load DLL 'IEFRAME.dll': The
specified module could not be found. (Exception from HRESULT: 0x8007007E)

So I do not know how to use this script ?

VSTS modal dialog close event

Hi,

I am using microsoft VSTS modal dialog and I want a confirmation message when modal dialog is closed from 'x' (closed button of modal dialog), I get close event which fired after event dialog is closed.

I want an event before closing the dialog. How can I do that?

here is the code:

VSS.getService(VSS.ServiceIds.Dialog).then(function(dialogService) 
{ 
       var contributionId = //id 
       var dialogOptions = { title: "ABC", close: onDialogCloseByCrossButtonClick }; 
       dialogService.openDialog(contributionId, dialogOptions).then(
               function (dialog) {
                    // do something
        });
}

like its appearing in TFS WorkItem window.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.