microsoft / vsts-rm-documentation Goto Github PK
View Code? Open in Web Editor NEWVSTS Release Management Documentation
VSTS Release Management Documentation
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"
Only changing line 7 works fine
before: (bad)
[String] $password,
after: (worksfine)
[System.Security.SecureString] $password,
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
+ CategoryInfo : InvalidOperation: (:) [New-AzureRmADApplication], PSInvalidOperationException
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.Azure.Commands.ActiveDirectory.NewAzureADApplicationCommand
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
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.
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 ?
This repository is currently missing a LICENSE file.
A license helps users understand how to use your project in a compliant manner. You can find the standard MIT license Microsoft uses at: https://github.com/microsoft/repo-templates/blob/main/shared/LICENSE.
If you would like to learn more about open source licenses, please visit the document at https://aka.ms/license (Microsoft-internal guidance).
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.