Terminate a Azure Virtual machine and belongings - sql-server

I want to Terminate a Azure Virtual machine and all of it's belongings.
What i have done --
I have stopped the Virtual machine
It seems the by stopping Virtual Machine all of it's belongings are also stopped.
Now my question is --
Since i don't need this Virtual Machine ever,
how can i remove everything which belongs to a Azure Subscription !
Any one knows any solution !

Go to the cloud service which holds the vm. Click on delete button. You will get an option to delete cloud service and its deployment. Just do that.

If you are using azure resource manager deployment model and have logically grouped all the resources for that virtual machine under that group. Deleting the resource group itself will remove everything related to that VM.

Related

SQL Server Linked Server with tnsnames.ora on network share - ORA: 12154

Having an issue getting a SQL Server linked server to Oracle working while using a tnsnames.ora file on a network share.
If I copy the tnsnames.ora file to the local server, the linked servers work fine. However, we keep the file on a network share. My sql service accounts have read access to the share. I configure TNS_ADMIN system variable to the network share, the linked servers no longer work. I get ora-12154: could not resolve the connect identifier specified. tnsping and sqlplus work on the server. When I use process monitor to investigate further, I see:
Operation: createFile
Result: ACCESS DENIED
...
Impersonating: domain\MyLogin
This seems like an issue, but is maybe a false positive? If a process is trying to impersonate my account and access a remote resource it will fail since we don't have Kerberos configured to handle double-hop.
SQLPlus and TNSPing work just fine with the network share configured.
I've looked at this post and tried the items that seemed relevant, but had no success.
Additional Info:
sqlnet.ora has this:
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
I am able to open a file browser as a service account and open the tnsnames file.
I had this same issue while trying to connect a oracle 10g database via my WCF serivce developed in .NET 4.0 framework.
I was having multiple instances of ORACLE installed in my system. So, I modified the ORACLE_HOME to point to the Oracle 10g and it worked.
Also check the following:
Your service name might have an alias, so Make sure that your listener is listening for the same service name that you are using and check for both local and global entries. Check:
$ORACLE_HOME/network/admin/tnsnames.ora
Check your global_name setting with this SQL:
select * from global_name;
Also, Please make sure you add the Key TNS_ADMIN in the registry and create a enviroinment variable with name TNS_ADMIN
Regedit->HKEY_LOCAL_MACHINE->Software->Oracle->RightClick NEW->StringValue and name
Specify the correct path where the oracle is installed for Example
X:oracleproduct32bit10.0.1.0.0NETWORKADMIN
Edit
The below video also looks quite helpful. Please check.
https://www.youtube.com/watch?v=Sec8WG8gQPg
As an Oracle DBA I sometimes have to work with Windows. Maybe you can adopt from my experiences with Oracle on Windows.
Scenario:
An Oracle DB runs under a domain user. I want to restore a database from a backup which is located on a Windows share (sounds like "read" but it obviously isn't). I (or let's say the windows team) did not manage to find the proper way to grant the required permissions.
After many tries, the admins grant "everything" to the entire Oracle server.
Even though the Oracle process runs in a user context we did not find a set of permissions for the user only. Only the permissions for the entire server enabled the restore process to access the data.
From security point of view this is a horrible solution! But maybe it will help you to come closer to a solution (and if so, please share :-)).

Partial Recovery from AD Recyle Bin

I have a small Windows domain which became "a little bit" corrupted over time. Now I want to cleanup using an older VM of a DC (WinSrvr 2008R2) with a healthy AD structure. For this I removed the existing DCs physically from the network without downgrading them to normal servers. Then I started up the virtual DC and created some non-DCs successfully. Existing non-virtual workstations, which had been added to the domain after the reanimated server was sent to sleep, allow successful login. I assume that this is possible because the domain users are allowed to login from anywhere. However, these machines cannot access the new VMs besides the reanimated server because they are not known to the domain which is obvious. Also some services run under some domain identities do not start up because these identities are not known to the reanimated server.
Now I read that since WinSrvr 2008R2 it is possible to restore deleted objects from the AD recyle bin. So my hope is it will be possible to restore the objects (users, groups, computers, an possibly some others) from the AD recycle bin. For this, the following procedure appears feasible to me:
Start one of the isolated DCs leaving it isolated
Remove the objects of interest from AD
Export the recycle bin to a file
Import the recycle bin from this file to the reanimated DC
Recover objects from the recycle bin on the reanimated DC
While all this looks consistent to me, I have no idea how to perform steps 3 and 4. Do there exist any experiences of how to do that? I would be really glad.
Correction:
Login from later added computers is not possible anymore. Probably cached credentials expired.

Installing SQL Server in Hard Drive or in Virtual Box. What is the Difference?

just curious:
I see in my school that all instances of SQL Server ( and other programs) are installed in a Virtual Machine. Is there a reason to install software in a VM instead of directly into the machine's hard drive? I assume it may be a matter of faulty installation of software somehow affecting the host PC , while if there is a problem within the VM, the VM can just be deleted and the problem disappears, without affecting the host. Is this it, or is there more to it?
From a lab administrator's standpoint, it would be FAR easier to administrate multiple VMs in a classroom/lab setting.
Here is one great example (among others):
At the start of the semester, the admin can make a clean install (new OS, new SQL Server, etc.) on a new VM. Once the machine has everything needed, he can take a snapshot of the VM. After that, he can assign you to use that VM to your heart's content: Create DBs, install games, infect the OS, whatever.
When you have finished your studies, the admin can then easily apply the snapshot, and, voila, the VM is back to the original state as when it was given to you earlier. No reformatting, no uninstalling, etc.
Also equally compelling: From that one initial VM image, an admin can clone as many VM copies as needed (one step) without having to go through the minutae of installing/configuring software over and over.

How to clone a full fledged MSCRM 4.0 OnPremise installation?

Is there a clean way to duplicate/clone/copy a full fledged MSCRM 4.0 machine and bring back the copy with new host name?
Lets assume my crm installation runs on a host called crm01. Lets assume furthermore that this machine is a virtual machine. The goal is now to bring back a renamed clone of that machine to live, for instance renamed to crm02.
After cloning that virtual machine, what else do I need to do?
I know that I have to pay attention to SQLServer, Reporting Services, IIS and MSCRM itself, right?
I wouldn't recommend it. Is there any reason you can't bring up your new virtual, install CRM on it, and point it to your existing org?

Unable to modifiy Active Directory from Test/Production servers

OK since I am in a holding pattern on this issue perhaps someone has seen these symptoms and can provide some sage advice. (Note: I have learned only enough Active Directory information to build this feature and I only have read access to the Active Directory.)
I updated the company intranet to allow the automatic entry/modification of employee phone/address information; it uses a web service to connect to the company Active Directory so I can call it from multiple locations in the main application.
The AD has two domains (A and B) in the same forest. Each domain has an ‘ADS update user’ group and an ‘ADSupdate’ account (which belongs to ‘ADS update user’).
Problem: Entries in Domain A update fine for Local Development Servers, Test Servers, and Production Servers. Entries in Domain B update only when run from Local Development Servers. When you run the same code (verified multiple times) on either Test or Production you get a (General access denied error).
The domain name is stored in the employee record so the exact same code is called for all employees.
All Local Development Servers, Test, and Production servers reside in Domain A.
This has the Active Directory Admin for Domain B stumped and to be honest I am thankful that the Local Development Servers are able to update the Active Directory entries in domain B. It proves that the code works at least in one location
I have looked at machine permissions, permissions on the group and user, and IIS and I can spot no significant differences.
Any help would be appreciated…
Is integrated authentication enabled on any of the web service applications?
Are the production application on domain A installed on a domain controller?
Does the updates from the development workstation work when you call the web service from a remote machine?
This was not caused by any code changes. The Production and Test servers were upgraded and run a newer version of IIS (6.0). The newer version of IIS will not work accross Active Directory domains.
My development machine is running the older version of IIS (5.1)
This explains why everthing was working last year and then suddenly stopped working. There are so few employees in the other domain that it was not immediatly noticed.

Resources