Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questa guida descrive come creare e gestire le credenziali utente nelle VM Windows eseguite su Compute Engine.
Creazione delle credenziali Windows
Per creare le credenziali, accedi alla finestra di dialogo Gestisci credenziali Windows:
In Cloud Explorer, fai clic con il tasto destro del mouse sulla VM su cui vuoi creare le credenziali.
Seleziona Gestisci le credenziali Windows.
Fai clic su Aggiungi credenziali.
Inserisci un nome utente.
Inserisci una password o consenti a Visual Studio di crearne una.
Fai clic su Salva.
Queste credenziali vengono criptate sul tuo computer e associate alla VM Windows per cui sono state create.
Eliminazione delle credenziali di Windows
Per eliminare le credenziali esistenti, accedi alla finestra di dialogo Gestisci credenziali Windows:
In Cloud Explorer, fai clic con il tasto destro del mouse sulla VM con le credenziali che vuoi eliminare.
Seleziona Gestisci credenziali Windows.
Seleziona un utente e fai clic su Elimina credenziali.
Fai clic su Elimina.
Utilizzare le credenziali di Windows memorizzate
Puoi utilizzare le credenziali di Windows memorizzate quando crei un file .publishsettings
per la pubblicazione in una VM o quando avvii una nuova sessione di Servizi terminale
con la VM.
Salvataggio di .publishsettings file
Per creare un file .publishsettings per eseguire il deployment dell'app ASP.NET in una VM:
In Cloud Explorer, fai clic con il tasto destro del mouse sulla VM in cui vuoi eseguire il deployment.
Seleziona Salva impostazioni di pubblicazione.
Seleziona le credenziali da utilizzare per creare il file .publishsettings.
Se non vedi le credenziali che vuoi utilizzare, fai clic su Gestisci credenziali Windows per crearne di nuove.
Apertura di una sessione di Desktop remoto
Per accedere a una VM tramite un desktop remoto:
In Cloud Explorer, fai clic con il tasto destro del mouse sulla VM a cui vuoi collegarti.
Seleziona Apri sessione di Desktop remoto.
Seleziona le credenziali che vuoi utilizzare per connetterti alla sessione di desktop remoto.
Se non vedi le credenziali che vuoi utilizzare, fai clic su Gestisci credenziali Windows per crearne di nuove.
Potresti visualizzare avvisi che indicano che non è possibile identificare il publisher della connessione remota.
Questo avviso si verifica perché la sessione viene aperta creando un file di sessione che non è firmato perché viene utilizzato solo per avviare questa sessione. Le credenziali impiegate nel file della sessione sono criptate.
Potrebbe essere visualizzato un altro avviso che ti informa che non è possibile identificare l'identità del computer remoto.
Questo avviso viene visualizzato perché la connessione è protetta utilizzando un certificato autofirmato e, per impostazione predefinita, il computer non considera attendibili i certificati autofirmati. Questo certificato non viene utilizzato per garantire l'identità del server, ma per proteggere la connessione tra il computer e il server.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[],[],null,["# Managing Windows Credentials\n\nThis guide describes how to create and manage user credentials on Windows VMs\nrunning on Compute Engine.\n\nCreating Windows Credentials\n----------------------------\n\nTo create credentials, access the **Manage Windows Credentials** dialog:\n\n1. In the Cloud Explorer, right-click the VM on which you want to\n create the credentials.\n\n2. Select **Manage Windows Credentials**.\n\n3. Click **Add Credentials**.\n\n4. Enter a **Username**.\n\n5. Enter a password, or have Visual Studio create one.\n\n6. Click **Save**.\n\nThese credentials are encrypted on your machine and associated with the Windows\nVM for which they were created.\n| **Note:** If the account already exists, having Visual Studio create a password resets the existing password. Resetting the password can cause the loss of encrypted data secured with the current password, including files and stored passwords. [Learn more](/compute/docs/instances/windows/creating-passwords-for-windows-instances).\n\nDeleting Windows Credentials\n----------------------------\n\nTo delete existing credentials, access the **Manage Windows Credentials**\ndialog:\n\n1. In the Cloud Explorer, right-click the VM with the credentials you\n want to delete.\n\n2. Select **Manage Windows Credential**.\n\n3. Select a user and click **Delete credentials**.\n\n4. Click **Delete**.\n\n| **Important:** Deleting credentials will delete the Windows account and the data associated with the account.\n\nUsing stored Windows Credentials\n--------------------------------\n\nYou can use the stored Windows credentials when creating a `.publishsettings`\nfile for publishing to a VM or when starting a new Terminal Services session\nwith the VM.\n\n### Saving `.publishsettings` files\n\nTo create a `.publishsettings` file to deploy your ASP.NET app to a VM:\n\n1. In the Cloud Explorer, right-click the VM where you want to\n deploy.\n\n2. Select **Save publishing settings**.\n\n3. Select the credentials to use when creating the `.publishsettings` file.\n\n 1. If you do not see the credentials you want to use, then click **Manage Windows Credentials** to [create new credentials](#creating_windows_credentials).\n\n| **Important:** The credentials stored in `.publishsettings` are in plain text. You should delete this file after it is imported into a publish profile and no longer needed. The publish profile stores the credentials encrypted.\n\n### Opening a Remote Desktop session\n\nTo access a VM through a remote desktop:\n\n1. In the Cloud Explorer, right-click the VM to which you want to\n connect.\n\n2. Select **Open Remote Desktop session**.\n\n3. Select the credentials you want to use to connect to the remote desktop\n session.\n\n 1. If you do not see the credentials you want to use, then click **Manage Windows Credentials** to [create new credentials](#creating_windows_credentials).\n\nYou might see warnings indicating that the publisher of the remote connection\ncan't be identified.\n\n\u003cbr /\u003e\n\n\n\u003cbr /\u003e\n\nThis warning is due to the session being opened by creating a session file that\nis not signed because it is only used to start this session. The credentials\nused in the session file are encrypted.\n\nAnother warning might appear informing you that the identity of the\nremote computer cannot be identified.\n\n\u003cbr /\u003e\n\n\n\u003cbr /\u003e\n\nThis warning appears because the connection is secured using a self-signed\ncertificate, and, by default, your computer does not trust self-signed\ncertificates. This certificate is not used to ensure the identity of the server\nbut to secure the connection between your machine and the server."]]